palbaseDocs

Palbase Machines · API

POST/machines/{name}/rollback

Return to a build

Returns the machine to one of its builds that succeeded: a new version, rolled out beside the one that serves. The only change of what a machine runs not made by a push. Emits machine.updated.

Called by your server, with the project's secret key.

Path

namestring · requiredThe machine's name: lowercase letters, digits and dashes, starting with a letter and not ending with a dash, 32 at most.

Request body

buildstring (uuid) · required
curl
curl -X POST "https://<your-ref>.palbase.studio/machines/<name>/rollback" \
  -H "apikey: $PALBASE_SECRET_KEY" \
  -H "content-type: application/json" \
  -d '{"build":"00000000-0000-0000-0000-000000000000"}'

Responses

200The machine, rolling out to the build

400Validation failed or a required field is missing

401Missing or invalid API key

403Not the project's secret key; or the request requires elevated owner authentication (`owner_only`, `insufficient_user_authentication`).

404The project has no machine of this name

409The project already has a machine of this name, or has as many machines as it may

429Over the project's request limit, or its machine time for this period is used up

503Temporarily unavailable; retrying is safe after Retry-After

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation RollbackMachine of machines's contract.