v1

latestSwagger 2.02026-07-13180103150.2 KB
build

Runs a build for a site. The build will be scheduled to run at the first opportunity, but it might not start immediately if insufficient account build capacity is available.

Files for build can be uploaded as a zipped site using one of these methods:

  1. Set Content-Type to 'application/zip' and send the zip file as the raw request body
  2. Set Content-Type to 'multipart/form-data' and include the zip file in the 'zip' field
post/sites/{site_id}/builds

Query parameters

branchstring

If no branch is specified, it is treated as a production deploy If a branch IS specified and matches the main branch, it is also production If a branch is specified and doesn't match the main branch, it is a branch deploy

clear_cacheboolean

Whether to clear the build cache before building

imagestring

The build image tag to use for the build

template_idstring

The build template to use for the build

titlestring

The title of the build

Response

OK

idstring
deploy_idstring
shastring
doneboolean
errorstring
created_atstring dateTime