Skip to main content
POST
/
task
/
{id}
/
variables
Update/Delete Task Variables
curl --request POST \
  --url http://{host}:{port}/{contextPath}/task/{id}/variables \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "modifications": {
    "aVariable": {
      "value": "aValue",
      "type": "String"
    },
    "anotherVariable": {
      "value": 42,
      "type": "Integer"
    }
  },
  "deletions": [
    "aThirdVariable",
    "FourthVariable"
  ]
}'
This response does not have an example.

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

id
string
required

The id of the task to set variables for.

Body

application/json
modifications
object | null

A JSON object containing variable key-value pairs.

deletions
string[] | null

An array of String keys of variables to be deleted.

Response

Request successful.