RaylightAPI

Remakes

Sign the library uploads

Signed uploads for the files that feed the motion library (the source, the study, the plan applied, backdrops, glitches, the report and the side by side), stored privately. Answers no uploads when you or the workspace turned data sharing off.

POST/v1/remakes/{id}/outputs

API key with the remake scope.

Parameters

FieldInTypeDescription
idrequiredpathuuidThe remake id.

Request body

application/json

FieldTypeDescription
filesrequiredobject[]
files[].namerequiredenumOne of: source.mp4, source.mov, source.webm, study.json, plan.applied.json, backdrops.json, glitches.json, report.md, side-by-side.mp4
files[].bytesrequiredinteger
files[].sha256requiredstring
files[].mimerequiredstring

Responses

200One upload per file, or none.
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.
409The remake is not at a stage that takes this call, or it already ended (code stage).
413A file is over its size cap.
429Rate limited, or a monthly cap reached.

200 response body

FieldTypeDescription
uploadsrequiredobject[]
uploads[].namerequiredenumOne of: source.mp4, source.mov, source.webm, study.json, plan.applied.json, backdrops.json, glitches.json, report.md, side-by-side.mp4
uploads[].uploadrequiredobject
uploads[].upload.kindrequiredenumOne of: standard, tus
uploads[].upload.uploadUrlurl
uploads[].upload.endpointurl
uploads[].upload.signaturestring
uploads[].upload.apiKeystring
uploads[].upload.bucketstring
uploads[].upload.objectNamestring
uploads[].upload.contentTypestring
uploads[].upload.chunkSizeinteger

Example

curl
curl -X POST https://api.raylight.app/v1/remakes/$ID/outputs \  -H "Authorization: Bearer $RAYLIGHT_API_KEY" \  -H "Content-Type: application/json" \  -d '{  "files": [    {      "name": "source.mp4",      "bytes": 1,      "sha256": "<sha256>",      "mime": "<mime>"    }  ]}'