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}/outputsAPI key with the remake scope.
Parameters
| Field | In | Type | Description |
|---|---|---|---|
idrequired | path | uuid | The remake id. |
Request body
application/json
| Field | Type | Description |
|---|---|---|
filesrequired | object[] | |
files[].namerequired | enum | One of: source.mp4, source.mov, source.webm, study.json, plan.applied.json, backdrops.json, glitches.json, report.md, side-by-side.mp4 |
files[].bytesrequired | integer | |
files[].sha256required | string | |
files[].mimerequired | string |
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
| Field | Type | Description |
|---|---|---|
uploadsrequired | object[] | |
uploads[].namerequired | enum | One of: source.mp4, source.mov, source.webm, study.json, plan.applied.json, backdrops.json, glitches.json, report.md, side-by-side.mp4 |
uploads[].uploadrequired | object | |
uploads[].upload.kindrequired | enum | One of: standard, tus |
uploads[].upload.uploadUrl | url | |
uploads[].upload.endpoint | url | |
uploads[].upload.signature | string | |
uploads[].upload.apiKey | string | |
uploads[].upload.bucket | string | |
uploads[].upload.objectName | string | |
uploads[].upload.contentType | string | |
uploads[].upload.chunkSize | integer |
Example
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>" } ]}'