{"openapi":"3.1.0","info":{"title":"Video","version":"0.37.0"},"paths":{"/api/projects":{"get":{"summary":"List Projects","operationId":"list_projects_api_projects_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create Project","operationId":"create_project_api_projects_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewProject"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{pid}":{"get":{"summary":"Get Project","operationId":"get_project_api_projects__pid__get","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"integer","title":"Pid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{pid}/clips":{"post":{"summary":"Add Clip","description":"Register one file. mode=local: it stays on the editor's computer (only picks and analysis come\nto the cloud). mode=upload: open (or resume) a resumable upload. The same content twice is one clip,\nand a file already uploaded to any project is reused without uploading again.","operationId":"add_clip_api_projects__pid__clips_post","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"integer","title":"Pid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewClip"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/clips/{cid}/local-analysis":{"post":{"summary":"Local Analysis","description":"Analysis worked out in the browser for a clip that stays on the editor's computer.","operationId":"local_analysis_api_clips__cid__local_analysis_post","parameters":[{"name":"cid","in":"path","required":true,"schema":{"type":"integer","title":"Cid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocalAnalysis"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/clips/{cid}/thumbs":{"post":{"summary":"Local Thumbs","description":"The 8-frame strip for a clip that stays on the editor's computer (a few KB of stills, not footage),\nso the bin and timeline show pictures after a reload.","operationId":"local_thumbs_api_clips__cid__thumbs_post","parameters":[{"name":"cid","in":"path","required":true,"schema":{"type":"integer","title":"Cid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Thumbs"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/clips/{cid}/uploaded":{"post":{"summary":"Clip Uploaded","operationId":"clip_uploaded_api_clips__cid__uploaded_post","parameters":[{"name":"cid","in":"path","required":true,"schema":{"type":"integer","title":"Cid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/clips/{cid}/reingest":{"post":{"summary":"Reingest","operationId":"reingest_api_clips__cid__reingest_post","parameters":[{"name":"cid","in":"path","required":true,"schema":{"type":"integer","title":"Cid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/clips/{cid}/analysis":{"get":{"summary":"Clip Analysis","operationId":"clip_analysis_api_clips__cid__analysis_get","parameters":[{"name":"cid","in":"path","required":true,"schema":{"type":"integer","title":"Cid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cuts/{kid}":{"put":{"summary":"Save Cut","operationId":"save_cut_api_cuts__kid__put","parameters":[{"name":"kid","in":"path","required":true,"schema":{"type":"integer","title":"Kid"}},{"name":"rev","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rev"}},{"name":"force","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Edl"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cuts/{kid}/render":{"post":{"summary":"Render Cut","description":"Freeze this draft as vN, start the render, and open vN+1 as the new draft (same edit).","operationId":"render_cut_api_cuts__kid__render_post","parameters":[{"name":"kid","in":"path","required":true,"schema":{"type":"integer","title":"Kid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cuts/{kid}/notes":{"post":{"summary":"Add Note","operationId":"add_note_api_cuts__kid__notes_post","parameters":[{"name":"kid","in":"path","required":true,"schema":{"type":"integer","title":"Kid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/brands/{slug}":{"get":{"summary":"Brand","description":"Act branding. Interim copy in the bucket (brands/<slug>.json) until Marketing's brand route is live (#14357).","operationId":"brand_api_brands__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cuts/{kid}/package":{"get":{"summary":"Package","description":"Everything another editor needs: links to the untouched originals (valid 7 days) and the edit lists.","operationId":"package_api_cuts__kid__package_get","parameters":[{"name":"kid","in":"path","required":true,"schema":{"type":"integer","title":"Kid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cuts/{kid}/package/{name}":{"get":{"summary":"Package File","operationId":"package_file_api_cuts__kid__package__name__get","parameters":[{"name":"kid","in":"path","required":true,"schema":{"type":"integer","title":"Kid"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{pid}/moment-text":{"put":{"summary":"Set Moment Text","operationId":"set_moment_text_api_projects__pid__moment_text_put","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"integer","title":"Pid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MomentText"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{pid}/moments":{"post":{"summary":"Add Moment","operationId":"add_moment_api_projects__pid__moments_post","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"integer","title":"Pid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MomentIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/moments/{mid}/duplicate":{"post":{"summary":"Duplicate Moment","description":"Ben 11-01: copy clip 2 as \"2.1\", right after it, to pull another moment out of the same take.","operationId":"duplicate_moment_api_moments__mid__duplicate_post","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"integer","title":"Mid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/moments/{mid}":{"put":{"summary":"Edit Moment","operationId":"edit_moment_api_moments__mid__put","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"integer","title":"Mid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MomentIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/moments/{mid}/caption-notes":{"put":{"summary":"Set Caption Notes","description":"Ben 11-02: a place per clip to jot notes and ideas for its post caption. Not part of the cut, so saving\nnotes never makes an export out of date.","operationId":"set_caption_notes_api_moments__mid__caption_notes_put","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"integer","title":"Mid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaptionNotes"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/moments/{mid}/hide":{"post":{"summary":"Hide Moment","description":"Out of the folder. Its rendered videos are kept (never deleted from here).","operationId":"hide_moment_api_moments__mid__hide_post","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"integer","title":"Mid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/moments/{mid}/render":{"post":{"summary":"Render Moment","description":"Each render is a new version of this moment; earlier ones are never changed.","operationId":"render_moment_api_moments__mid__render_post","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"integer","title":"Mid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/projects/{pid}/moments/export":{"post":{"summary":"Export Moments","description":"Render every kept clip whose newest render no longer matches it (or that has none).","operationId":"export_moments_api_projects__pid__moments_export_post","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"integer","title":"Pid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/moments/{mid}/socials/{variant}":{"post":{"summary":"Moment Variant To Socials","description":"An extra version of the newest render (e.g. \"hook\": text on screen for 3 s, Socials #14408) as its own clip\non Socials' shelf: source_ref + \":hook\", label + \" · hook\". The plain version stays as it is.","operationId":"moment_variant_to_socials_api_moments__mid__socials__variant__post","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"integer","title":"Mid"}},{"name":"variant","in":"path","required":true,"schema":{"type":"string","title":"Variant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/moments/{mid}/socials":{"post":{"summary":"Moment To Socials","description":"Put the newest finished version of this clip on Socials' media shelf (not posted; Ben schedules it there).","operationId":"moment_to_socials_api_moments__mid__socials_post","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"integer","title":"Mid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/version":{"get":{"summary":"Version","operationId":"version_api_version_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/health":{"get":{"summary":"Health","operationId":"health_api_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/me":{"get":{"summary":"Me","operationId":"me_api_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/":{"get":{"summary":"Home","operationId":"home__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/p/{pid}":{"get":{"summary":"Editor","operationId":"editor_p__pid__get","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"integer","title":"Pid"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"CaptionNotes":{"properties":{"text":{"type":"string","maxLength":4000,"title":"Text"}},"type":"object","required":["text"],"title":"CaptionNotes"},"Edl":{"properties":{"shots":{"items":{"$ref":"#/components/schemas/Shot"},"type":"array","title":"Shots","default":[]},"sounds":{"items":{"$ref":"#/components/schemas/Sound"},"type":"array","title":"Sounds","default":[]},"graphics":{"additionalProperties":true,"type":"object","title":"Graphics","default":{}},"selects":{"items":{"$ref":"#/components/schemas/Shot"},"type":"array","title":"Selects","default":[]}},"type":"object","title":"Edl"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"LocalAnalysis":{"properties":{"duration":{"type":"number","exclusiveMinimum":0.0,"title":"Duration"},"width":{"type":"integer","minimum":0.0,"title":"Width"},"height":{"type":"integer","minimum":0.0,"title":"Height"},"analysis":{"additionalProperties":true,"type":"object","title":"Analysis"}},"type":"object","required":["duration","width","height","analysis"],"title":"LocalAnalysis"},"MomentIn":{"properties":{"clip_id":{"type":"integer","title":"Clip Id"},"in":{"type":"number","minimum":0.0,"title":"In"},"out":{"type":"number","exclusiveMinimum":0.0,"title":"Out"},"loop":{"type":"boolean","title":"Loop","default":false},"fit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fit"},"crop_x":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Crop X"},"crop_path":{"anyOf":[{"items":{"items":{"type":"number"},"type":"array"},"type":"array"},{"type":"null"}],"title":"Crop Path"},"label":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Label"},"kept":{"type":"boolean","title":"Kept","default":true},"segments":{"anyOf":[{"items":{"$ref":"#/components/schemas/Segment"},"type":"array","maxItems":60},{"type":"null"}],"title":"Segments"}},"type":"object","required":["clip_id","in","out"],"title":"MomentIn"},"MomentText":{"properties":{"text":{"type":"string","maxLength":120,"title":"Text"}},"type":"object","required":["text"],"title":"MomentText"},"NewClip":{"properties":{"file_name":{"type":"string","maxLength":300,"minLength":1,"title":"File Name"},"size":{"type":"integer","exclusiveMinimum":0.0,"title":"Size"},"fingerprint":{"type":"string","pattern":"^[0-9a-f]{64}$","title":"Fingerprint"},"recorded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Recorded At"},"content_type":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Content Type"},"mode":{"type":"string","pattern":"^(upload|local)$","title":"Mode","default":"upload"}},"type":"object","required":["file_name","size","fingerprint"],"title":"NewClip"},"NewProject":{"properties":{"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"artist_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artist Slug"},"booking_entry_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Booking Entry Id"},"show_label":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Show Label"}},"type":"object","required":["title"],"title":"NewProject"},"NoteIn":{"properties":{"body":{"type":"string","maxLength":2000,"minLength":1,"title":"Body"},"at_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"At Seconds"},"clip_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Clip Id"}},"type":"object","required":["body"],"title":"NoteIn"},"Segment":{"properties":{"in":{"type":"number","minimum":0.0,"title":"In"},"out":{"type":"number","exclusiveMinimum":0.0,"title":"Out"},"v":{"type":"string","pattern":"^(cut|dissolve|dip)$","title":"V","default":"cut"},"a":{"type":"string","pattern":"^(dip|cross)$","title":"A","default":"dip"},"ms":{"type":"integer","maximum":2000.0,"minimum":0.0,"title":"Ms","default":500},"clip_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Clip Id"}},"type":"object","required":["in","out"],"title":"Segment","description":"One piece of a clip; v/a/ms = the transition INTO this piece (ignored on the first)."},"Shot":{"properties":{"clip_id":{"type":"integer","title":"Clip Id"},"in":{"type":"number","minimum":0.0,"title":"In"},"out":{"type":"number","exclusiveMinimum":0.0,"title":"Out"},"fit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fit"},"crop_x":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Crop X"},"crop_path":{"anyOf":[{"items":{"items":{"type":"number"},"type":"array"},"type":"array"},{"type":"null"}],"title":"Crop Path"},"xfade_ms":{"anyOf":[{"type":"integer","maximum":500.0,"minimum":0.0},{"type":"null"}],"title":"Xfade Ms"},"grid":{"type":"boolean","title":"Grid","default":true},"nudge":{"type":"integer","title":"Nudge","default":0},"out_kind":{"type":"string","title":"Out Kind","default":"beat"},"look":{"anyOf":[{"type":"string","pattern":"^camcorder$"},{"type":"null"}],"title":"Look"},"brighten":{"type":"integer","maximum":3.0,"minimum":0.0,"title":"Brighten","default":0},"bonus":{"type":"boolean","title":"Bonus","default":false},"mute":{"type":"boolean","title":"Mute","default":false},"zoom":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.5},{"type":"null"}],"title":"Zoom"}},"type":"object","required":["clip_id","in","out"],"title":"Shot"},"Sound":{"properties":{"clip_id":{"type":"integer","title":"Clip Id"},"in":{"type":"number","minimum":0.0,"title":"In"},"out":{"type":"number","exclusiveMinimum":0.0,"title":"Out"},"at":{"type":"number","minimum":0.0,"title":"At"},"gain_db":{"type":"number","maximum":6.0,"minimum":-30.0,"title":"Gain Db","default":0},"env":{"items":{"items":{"type":"number"},"type":"array"},"type":"array","maxItems":200,"title":"Env","default":[]},"lane":{"type":"integer","maximum":1.0,"minimum":0.0,"title":"Lane","default":0},"fade_in":{"type":"number","maximum":10.0,"minimum":0.0,"title":"Fade In","default":0.15},"fade_out":{"type":"number","maximum":10.0,"minimum":0.0,"title":"Fade Out","default":0.15}},"type":"object","required":["clip_id","in","out","at"],"title":"Sound","description":"Extra sound under the cut (Ben 10-29: crowd noise at the end, \"100 people in a club, not an arena\")."},"Thumbs":{"properties":{"jpeg_base64":{"type":"string","maxLength":400000,"title":"Jpeg Base64"}},"type":"object","required":["jpeg_base64"],"title":"Thumbs"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}