Update a project
PATCH
https://api.vidmoat.com/v1/projects/{id}Rename, or change output settings: aspect ratio, frame rate, background, width and height. Timeline edits go through commands.
Path parameters#
idstringrequiredThe project id.
Body#
namestringUp to 80 characters. Must not be empty.aspectRatioenumAlso sets width and height (for example9:16is 1080x1920).One of16:9,9:16,1:1,4:5,4:3,21:9fpsnumber1 to 120.backgroundstringCSS colour.widthintegerPixels. Applied afteraspectRatio.heightintegerPixels. Applied afteraspectRatio.
Response#
Returns 200.
Response fields#
projectobjectSummary view, after the change.resultsarrayOne entry per command:{ op, ok, error?, data? }. A failed command is reported here, not as an HTTP error.verificationobjectWhat happened:accepted(count),failed([{ op, error }]),blocked,layoutwarnings, andoutcome(executed,needs-repairorblocked).
Errors#
Besides the errors any request can get (authentication, rate limits):
| Status | Code | When |
|---|---|---|
| 404 | not_found | No such project, or it is not yours. The two are indistinguishable on purpose. |
| 400 | invalid_request | No supported field was sent, or name is empty. |
| 409 | invalid_request | The project changed while the batch ran (conflictCode: "stale_rev", with rev) or is locked by an expert handoff (help_handoff_locked). Re-read the project and retry. |