RaylightAPI

Remakes

Make an open editor tab the builder

Picks one of your connected editor tabs with the remake's project open and makes it the builder: it gets a fresh builder token (any earlier one stops working), shows the build, and answers every lab call. Attaching again moves the builder to the freshest tab. With no such tab the call answers 409 no_tab with the project link: open it in the browser and retry.

POST/v1/remakes/{id}/attach

API key with the remake scope.

Parameters

FieldInTypeDescription
idrequiredpathuuidThe remake id.

Responses

200The tab is the builder.
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 connected tab of yours has the project open (code no_tab), or the remake ended (code stage).
429Rate limited, or a monthly cap reached.
504The tab did not answer (code tab_timeout).

200 response body

FieldTypeDescription
attachedrequiredenum
gpuRendererrequiredstring | null

Example

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