Deploy a site
Changed onBuilds and publishes the site to production. Asynchronous: responds 202 with a pending deployment; poll GET /sites/{id}/deployments for the outcome (live or failed).
Without a body it ships the site's working copy as Crevio's agent left it. After writing a commit yourself with POST /sites/{id}/source/commits, pass its sha as commit_sha: that exact commit is fetched and built, and the deploy fails rather than ship anything else.
If a deploy is already in flight, that one is returned instead of starting a second build — still 202. A build this call started is pending with a null started_at; one already running is building. Compare the returned commit_sha with yours: if it differs, wait for that deploy to finish and deploy again.
Request
- Base URLhttps://api.crevio.co/v1
- AuthAPI key in header Authorization
Path parameters
The resource's ID, as returned in its id field
Headers
Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.
Request body
A commit on the site's main to deploy, usually the sha POST /sites/{id}/source/commits returned. Omit to ship the working copy.
Response
The queued deployment
Changes
- warning
added the new
idempotency_errorenum value to theerror/typeresponse property for the response status - warning
added the new
idempotency_errorenum value to theerror/typeresponse property for the response status - warning
added the new
idempotency_errorenum value to theerror/typeresponse property for the response status
1 more change in this revision
- warning