curl --request POST \
--url http://{host}:{port}/{contextPath}/task/{id}/variables/{varName}/data \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: multipart/form-data' \
--data-binary $'\n ```\n ------------------------------354ddb6baeff\n Content-Disposition: form-data; name="data"; filename="image.png"\n Content-Type: application/octet-stream\n Content-Transfer-Encoding: binary\n\n <<Byte Stream ommitted>>\n ------------------------------354ddb6baeff\n Content-Disposition: form-data; name="valueType"\n Content-Type: text/plain; charset=US-ASCII\n Content-Transfer-Encoding: 8bit\n\n Bytes\n ------------------------------1e838f8f632a--\n ```\n '{
"type": "<string>",
"message": "<string>",
"code": 123
}{
"type": "<string>",
"message": "<string>",
"code": 123
}Task Variable
Update Task Variable (Binary)
Sets the serialized value for a binary variable or the binary value for a file variable visible from the task. A variable is visible from the task if it is a local task variable or declared in a parent scope of the task. See documentation on visiblity of variables.
POST
/
task
/
{id}
/
variables
/
{varName}
/
data
curl --request POST \
--url http://{host}:{port}/{contextPath}/task/{id}/variables/{varName}/data \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: multipart/form-data' \
--data-binary $'\n ```\n ------------------------------354ddb6baeff\n Content-Disposition: form-data; name="data"; filename="image.png"\n Content-Type: application/octet-stream\n Content-Transfer-Encoding: binary\n\n <<Byte Stream ommitted>>\n ------------------------------354ddb6baeff\n Content-Disposition: form-data; name="valueType"\n Content-Type: text/plain; charset=US-ASCII\n Content-Transfer-Encoding: 8bit\n\n Bytes\n ------------------------------1e838f8f632a--\n ```\n '{
"type": "<string>",
"message": "<string>",
"code": 123
}{
"type": "<string>",
"message": "<string>",
"code": 123
}Authorizations
Path Parameters
Body
multipart/form-data
For binary variables a multipart form submit with the following parts:
Response
Request successful.