Renduo
Api referenceTemplates

Activate a template version

Rolls back to a previously published version: activates it and disables the currently active one. Idempotent — activating the version that is already active succeeds without changing anything. Only versions that were fully published (active/disabled) can be activated. Required scope: templates:write.

POST
/v1/templates/{id}/versions/{version}/activate
AuthorizationBearer <token>

Renduo API key sent as Authorization: Bearer rnd_live_XXXXXXXXXXXX (or rnd_test_... in test mode). See GET /v1/auth/me.

In: header

Path Parameters

id*string
Formatuuid
version*integer
Range1 <= value

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/templates/497f6eca-6276-4993-bfeb-53cbbbba6f08/versions/1/activate"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "slug": "string",  "activeVersion": 0,  "previousActiveVersion": 0}
{  "error": "string",  "message": "string",  "details": {},  "requestId": "string"}
{  "error": "string",  "message": "string",  "details": {},  "requestId": "string"}
{  "error": "string",  "message": "string",  "details": {},  "requestId": "string"}