Create deployment
POSThttps://api.butterix.com/v1/sites/:site/deployments
Requires the editor role. There are two ways to use it:
- Upload source (used by
biti deploy): the request body is a gzip tarball of the project directory (Content-Type: application/gzip, up to 200 MB). Thex-biti-preview: 1header creates a preview deployment, andx-biti-messageis the URL-encoded deployment message. - Rebuild from the repository: JSON
{ preview?, branch? }, building from the hosted repository or the connected Git repository. Not available for sites that have been uploaded with the CLI.
Returns 202 and the deployment id; poll its status with Get deployment.
Authentication
Authorization
An organization API key, created in the console under Organization settings → API Keys, starting with biti_. It acts as editor and can't do anything that requires admin.
biti_session
The HttpOnly session cookie set on login. Requests that change data must be same-origin (the Origin header is checked) to prevent CSRF.
Path parameters
Headers
Request
This endpoint expects an object.
Response
Queued