curl --request POST \
--url http://{host}:{port}/{contextPath}/process-instance/{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
}流程实例
更新流程变量(二进制)
Sets the serialized value for a binary variable or the binary value for a file variable.
POST
/
process-instance
/
{id}
/
variables
/
{varName}
/
data
curl --request POST \
--url http://{host}:{port}/{contextPath}/process-instance/{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
}Authorizations
Path Parameters
Body
multipart/form-data
For binary variables a multipart form submit with the following parts:
Response
Request successful.