Skip to main content
PUT
Update style artifact

Authorizations

Authorization
string
header
required

Use a JWT bearer token or a Veryfront API key in the Authorization header.

Path Parameters

project_reference
string
required

Project slug, UUID, or domain that identifies the project.

Body

application/json
style_profile_hash
string
required

Style profile identifier used with the selector to find current metadata.

Minimum string length: 1
branch
string

Branch 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.

Minimum string length: 1
environment_name
string

Environment name. Exactly one selector is required.

Minimum string length: 1
release_id
string<uuid>

Release UUID. Exactly one selector is required.

status
enum<string>
default:ready

Metadata state. Ready requires artifact_hash; other states forbid it. Failed requires failure_reason.

Available options:
building,
ready,
failed
artifact_hash
string

CSS artifact hash; required only for ready status and forbidden for other states.

Minimum string length: 1
asset_path
string

Registered CSS asset path. This operation does not upload the asset.

Minimum string length: 1
content_type
string

Registered MIME type of the CSS asset.

Minimum string length: 1
etag
string

Registered entity tag for the CSS asset.

Minimum string length: 1
build_run_id
string

Style build run identifier, when available.

Minimum string length: 1
failure_reason
string

Failure detail; required when registering failed status.

Minimum string length: 1

Response

Registered style artifact metadata

status
enum<string>
required

Current metadata state. Missing means no record exists; building does not confirm completion.

Available options:
ready,
missing,
building,
failed
artifact_hash
string

Registered CSS artifact hash, omitted when not available.

asset_path
string

Registered CSS asset path, omitted when not available.

etag
string

Registered CSS asset entity tag, omitted when not available.

content_type
string

Registered CSS asset MIME type, omitted when not available.

build_run_id
string

Style build run identifier, when available.

Minimum string length: 1
failure_reason
string

Persisted failure detail, omitted when not available.

updated_at
string

Latest metadata update timestamp; omitted for missing metadata.