RaylightAPI

Remakes

Run one op in the builder tab

Relays one op (applyEdits, renderStills, shotDetails, seek, canvas, getProject, seedLibrary, swapImageSources, flushSave) to the builder tab and answers what the tab answered. A renderStills call whose worst-case answer is over the bridge's budget is refused with 413 too_large; split the times across calls.

POST/v1/remakes/{id}/lab

API key with the remake scope.

Parameters

FieldInTypeDescription
idrequiredpathuuidThe remake id.

Request body

application/json

FieldTypeDescription
oprequiredenumOne of: applyEdits, renderStills, shotDetails, seek, canvas, getProject, seedLibrary, swapImageSources, flushSave
argsobject
timeoutMsinteger

Responses

200The op's result.
400Invalid request.
401Missing, invalid or revoked key.
403The key lacks the scope, or the key's owner has view-only access to the workspace (code forbidden).
404Not found.
409No builder tab is connected (code tab_gone: reopen the project and attach again), another tab took over mid-call (code detached), or the remake ended (code stage).
413The answer could be over the budget (code too_large).
422The op threw in the page (code lab_error).
429Rate limited, or a monthly cap reached.
504The tab did not answer in time (code tab_timeout).

200 response body

FieldTypeDescription
resultany

Example

curl
curl -X POST https://api.raylight.app/v1/remakes/$ID/lab \  -H "Authorization: Bearer $RAYLIGHT_API_KEY" \  -H "Content-Type: application/json" \  -d '"string"'