Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

If using Bearer auth, pass the Secret Key as the token:

Body

application/json
key
string
required

Stable reference handle (lowercase slug, unique per org), referenced as @const:key

Pattern: ^[a-z0-9][a-z0-9\-_]*$
name
string
required

The display name of the constant

type
enum<string>
required

string (interpolated as {{ @const:key }}) or json (substituted as a whole value)

Available options:
string,
json
value
string
environmentValues
object
description
string
Maximum string length: 10000
project
string
owner
string

The userId or email address of the owner. If an email address is provided, it will be used to look up the userId of the matching organization member. If an ID is provided, it will be validated as existing in the organization. When omitted, it defaults to the user associated with the request's Personal Access Token (PAT), if one is being used.

Response

200 - application/json

Resource created

constant
object
required