Projects
Variables

Create Variable

Create a new variable definition, optionally with labels and versions.

Requires: User token with project:write_variables scope.

post/v1/projects/{project_id}/variables/

Request

Path parameters

project_idstring uuid required

Request body

namestring required
descriptionstring nullable required
json_schemaobject nullable required
template_inputs_schemaobject nullable
type_idstring uuid nullable
aliasesstring[]
examplestring nullable
externalboolean
labelsobject
initial_serialized_valuestring

Response

Successful Response

idstring uuid required
project_idstring uuid required
type_idstring uuid nullable required
type_namestring nullable required
kind'general' | 'prompt' required
namestring required
display_namestring nullable required
prompt_slugstring nullable required
descriptionstring nullable required
labelsobject required
aliasesstring[] nullable required
examplestring nullable required
externalboolean required
created_atstring date-time required
updated_atstring date-time required
created_by_namestring nullable required
updated_by_namestring nullable required

Changes

No recorded changes to this operation across all 1 revision of this API.