Docs

Update Variable

PUT /documents/{documentId}/variables/{variableId}

PUT/documents/{documentId}/variables/{variableId}

Required Tokens

FieldTypeRequiredDescription
BearerAuthorization: Bearer <api-key>OptionalYour API key. Pass it as the Bearer token on every request.
Event tokenx-Event-TokenOptionalRun **Get Tokens** in the Authorization folder.

Replaces all fields on an existing document variable. All fields are required — this is a full replacement, not a partial update.

Request Body

FieldTypeRequiredDescription
namestringRequiredDisplay label for the variable.
variableTypestringRequiredType of the variable. One of: `Collaborator`, `Area`, `Activity`, `Crew`, `ResourceType`, `Date`, `Text`.
isMultiSelectbooleanRequiredWhether the variable accepts multiple values.
isRequiredbooleanRequiredWhether the variable must be resolved before query execution.
defaultValuesstringOptionalJSON array of default values, or `null` to clear.

Response

200 OK with no body.