Skip to main content
Version: Next

Variables API

The Variables API controller provides an API to query variables.

Endpoints

Get variable

Get the variable details by variable id.

URL

/v1/variables/{variableId}

Method

GET

Request parameters

Parameter nameTypeRequiredDescription
variableIdpathtrueID of the variable

HTTP request example

Send a token issue GET request to the authorization server with the following content:

{
"variable_id": "<variable-id>",
"tasklist_session": "<tasklist-session-id>"
}

Refer to the following example with curl:

curl -X 'GET' \
'http://{host}/v1/variables/{variableId}?processDefinitionKey={processDefinitionKey}&tasklist_session={tasklist-session-id}' \
-H 'accept: application/json' \
-H 'Authorization: Bearer {yourBearerToken}'

See details on Tasklist API (REST) authentication if you have not already authenticated.

Responses

HTTP statusDescriptionResponse schema
200On successJSON object with VariableResponse structure
404An error is returned when the variable with the variableId is not found.JSON object with Error structure