Skip to main content
POST
Create an organisation variable

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null
x-ankra-organisation-id
string | null

Body

application/json
name
string
required
value
string
required
description
string | null
is_secret
boolean
default:false
project_id
string<uuid4> | null

The layer the variable is created in. Omitted: the caller's current project (organisation-wide while the organisation has projects off). null: organisation-wide, seen by every project. A project id: that project's own layer, which shadows an organisation-wide variable of the same name for the clusters the project holds.

Response

Successful Response

variable
OrganisationVariable · object
required