palbaseDocs

Palbase Machines · API

POST/sites/{name}/releases/{release}/finish

Finish a release

Finishes a release whose files are all kept — refused, naming them, while one is missing — and the site serves it at once. Finishing one finished before has the site serve it again. A release whose /_redirects or /_headers does not hold is refused (400 invalid_rules), the description naming the file, each line and why.

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.
releasestring (uuid) · requiredThe release's id.
curl
curl -X POST "https://<your-ref>.palbase.studio/sites/<name>/releases/<release>/finish" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

200The release, served

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

409Files the release lists are not kept yet: send them, then finish it

413A file is larger than 25 MiB, or a release's files together larger than 1 GiB

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 FinishSiteRelease of machines's contract.