Skip to content
OpenPostDocs
OpenPostDocs
Video Projects

Apply a versioned Video Project mutation batch

Disjoint stale changes rebase. Overlapping targets create a named conflict branch.

POST/video-projects/{id}/mutations

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Video project ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/video-projects/string/mutations" \  -H "Content-Type: application/json" \  -d '{    "base_revision": 1,    "mutation_id": "string",    "operations": [      {        "kind": "set",        "path": "string",        "target": "string"      }    ],    "workspace_id": "string"  }'
{  "$schema": "https://example.com/api/v1/schemas/VideoProjectMutationResponse.json",  "conflict_id": "string",  "conflict_name": "string",  "outcome": "applied",  "overlap_targets": [    "string"  ],  "project": {    "$schema": "https://example.com/api/v1/schemas/VideoProjectResponse.json",    "attention_reason": "string",    "created_at": "string",    "created_by_user_id": "string",    "document": {      "property1": null,      "property2": null    },    "head_revision": 0,    "id": "string",    "name": "string",    "preview_object_key": "string",    "retention_expires_at": "string",    "sync_status": "pending",    "trashed_at": "string",    "updated_at": "string",    "updated_by_user_id": "string",    "workspace_id": "string"  },  "revision": 0}