Palbase Machines · API
/sites/{name}/rollbackReturn to a release
Has the site serve one of the releases it keeps: the one named, or the one before the release it serves. Served at once.
Called by your server, with the project's secret key.
Path
namestring · requiredThe site's name: lowercase letters, digits and dashes, starting with a letter and not ending with a dash, 32 at most.Request body
releasestring (uuid) · optionalcurl -X POST "https://<your-ref>.palbase.studio/sites/<name>/rollback" \
-H "apikey: $PALBASE_SECRET_KEY" \
-H "content-type: application/json" \
-d '{"release":"00000000-0000-0000-0000-000000000000"}'Responses
200The site, serving the release
400Validation failed or a required field is missing
401Missing or invalid API key
403Not the project's secret key, or the site has been suspended (`site_taken_down`): it takes no release until it is restored.
404The project has no site of this name, or the site no release of this id
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 RollbackSite of machines's contract.