Palbase Machines · API
/sites/{name}/builds/{build}/cancelCancel a site's build
Ends a build that is queued or building (build_not_cancellable, 409, for one that ended): its run is stopped, its commit's check says it was cancelled, and the site serves what it served. A push, a deploy or a deploy hook builds again.
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.buildstring (uuid) · requiredThe build's id.curl -X POST "https://<your-ref>.palbase.studio/sites/<name>/builds/<build>/cancel" \
-H "apikey: $PALBASE_SECRET_KEY"Responses
200The build, cancelled
400Validation failed or a required field is missing
401Missing or invalid API key
403Not the project's secret key
404The project has no site of this name, or the site no build of this id
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 CancelSiteBuild of machines's contract.