Update timeline placement
Move, trim, switch mode/audio, set time-lapse retime, or update look transitions and zoom keyframes on an existing timeline placement oid. Supports compare-and-swap expectedEditVersion. Costs 0 credits.
Request examples
curl -sS -X POST "https://hitfactorapp.com/api/v1/editor/placements/update" \
-H "Content-Type: application/json" \
-H "x-api-key: $HITFACTOR_API_KEY" \
-d '{
"sessionId": "edsess_01j9example0000000000000",
"oid": "br_01j9example",
"startSeconds": 0,
"lengthSeconds": 0.85,
"clipStartSeconds": 0
}'const response = await fetch("https://hitfactorapp.com/api/v1/editor/placements/update", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": process.env.HITFACTOR_API_KEY!,
},
body: JSON.stringify({
"sessionId": "edsess_01j9example0000000000000",
"oid": "br_01j9example",
"startSeconds": 0,
"lengthSeconds": 0.85,
"clipStartSeconds": 0
}),
})
const { data, meta } = await response.json()
console.log(data, meta)curl -sS -X POST "https://hitfactorapp.com/api/v1/mcp" \
-H "Content-Type: application/json" \
-H "x-api-key: $HITFACTOR_API_KEY" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "editor_update_placement",
"arguments": {
"sessionId": "edsess_01j9example0000000000000",
"oid": "br_01j9example",
"startSeconds": 0,
"lengthSeconds": 0.85,
"clipStartSeconds": 0
}
}
}'Parameters
Idempotency-KeyheaderstringUnique retry key (up to 255 characters). Replaying the same key and body returns the original response with 0 extra credits charged.
maxLength: 255Request body
Send a JSON object with Content-Type: application/json. Unknown keys are rejected with 400 invalid_input.
sessionIdstringrequiredminLength: 1oidstringrequiredminLength: 1maxLength: 100startSecondsnumbermin: 0lengthSecondsnumbermax: 600clipStartSecondsnumbermin: 0mode"overlay" | "split"audio"A" | "B"retimeobjectnullableShow object fields
speed"fit" | numberrequiredrampInnumbermin: 0max: 10rampOutnumbermin: 0max: 10lookobjectnullableShow object fields
in"fade" | "zoom" | "slide" | "cut"out"fade" | "zoom" | "slide" | "cut"frame"full" | "card"zoomobject[]nullableminItems: 1maxItems: 24Show item fields
tnumberrequiredmin: 0scalenumberrequiredmin: 1max: 8xnumberrequiredmin: 0max: 1920ynumberrequiredmin: 0max: 1080ease"inOut" | "linear" | "in" | "out"expectedEditVersionintegermax: 9007199254740991Response (200 OK)
Every successful response wraps the payload in data alongside billing and request metadata in meta.
placementobjectrequiredShow object fields
oidstringrequiredsrcstringrequiredanchornumberrequiredlennumberrequiredatnumberaudiostringmodestringbehindbooleanretimeobjectShow object fields
speed"fit" | numberrequiredrampInnumbermin: 0max: 10rampOutnumbermin: 0max: 10lookobjectShow object fields
in"fade" | "zoom" | "slide" | "cut"out"fade" | "zoom" | "slide" | "cut"frame"full" | "card"zoomobject[]nullableminItems: 1maxItems: 24Show item fields
tnumberrequiredmin: 0scalenumberrequiredmin: 1max: 8xnumberrequiredmin: 0max: 1920ynumberrequiredmin: 0max: 1080ease"inOut" | "linear" | "in" | "out"startSecondsnumbereditVersionintegerrequiredmin: -9007199254740991max: 9007199254740991editUrlstring (uri)requirednullableExample 200 response
{
"data": {
"placement": {
"oid": "br_01j9example",
"src": "example_src",
"anchor": 0.85,
"len": 0.85,
"at": 0.85,
"audio": "example_audio",
"mode": "example_mode",
"behind": true
},
"editVersion": -9007199254740991,
"editUrl": "https://hitfactorapp.com/acme/videos/proj_01j9example0000000000000/edit"
},
"meta": {
"requestId": "req_01j9example0000000000000",
"creditsCharged": 1,
"creditsRemaining": 499,
"replayed": false
}
}Error responses
400invalid_input401Missing or invalid API key402insufficient_credits403insufficient_scope404operation_not_found409channel_sync_pending or idempotency_conflict429rate_limited