Skip to main content
POST
Upload a blueprint file

Permissions

Requires a service user with the ManageRepoBlueprints permission at the organization level.

Behavior

Uploads a file to the blueprint. Files are referenced in the blueprint YAML and made available during snapshot builds.

Authorizations

Authorization
string
header
required

Service User credential (prefix: cog_)

Path Parameters

blueprint_id
string
required
org_id
string
required

Organization ID (prefix: org-)

Example:

"org-abc123def456"

Query Parameters

name
string
required

Body

multipart/form-data
file
string
required

Response

Successful Response

Public BlueprintFile resource shape.

blueprint_id
string
required
created_at
integer
required
env_var_name
string
required
file_id
string
required
name
string
required
size_bytes
integer
required
updated_at
integer
required