Start style artifact build

http
POST /projects/{project_reference}/style-artifacts/current/builds

Start a background build of the compiled CSS artifact for a branch, environment or release unless one is ready or building; returns the style artifact record. Requires project.files.write.

Parameters

NameInRequiredDescription
project_referencepathYesProject slug, UUID, or domain that identifies the project.

Request body

FieldTypeRequiredDescription
style_profile_hashstringYesStyle profile identifier used with the selector to find current metadata.
branchstringBranch name. Exactly one of branch, environment_name, or release_id is required. Main may be implicit before its branch row exists; other branch and environment names must exist in the project or the request returns 404.
environment_namestringEnvironment name. Exactly one selector is required.
release_idstringRelease UUID. Exactly one selector is required.
forcebooleanQueue a new build even when current metadata is ready or building.

Responses

StatusDescription
200Current style artifact build state. A ready or building artifact is reused unless force is true; otherwise a background build is enqueued.
400Bad request
401Unauthorized
403Forbidden
404Not found
500Server error