Skip to main content
PUT
Replace the enterprise blueprint's YAML contents

Permissions

Requires a service user with the ManageAccountSnapshots permission at the enterprise level.

Behavior

Replaces the enterprise blueprint’s YAML contents. Does not auto-trigger a build.

Authorizations

Authorization
string
header
required

Service User credential (prefix: cog_)

Path Parameters

blueprint_id
string
required

Body

application/json
contents
string
required

New YAML body for the blueprint.

Response

Successful Response

Public Blueprint resource shape.

Note: the type enum may grow in the future; clients MUST gracefully handle unknown values. YAML contents are fetched separately via GET /blueprints/{id}/contents.

blueprint_id
string
required
created_at
integer
required
repo_name
string | null
required
type
enum<string>
required
Available options:
enterprise,
org,
repo
updated_at
integer
required