curl --request POST \
--url http://{host}:{port}/{contextPath}/execution/{id}/localVariables/{varName}/data \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: multipart/form-data' \
--data-binary $'\n ```\n ---OSQH1f8lzs83iXFHphqfIuitaQfNKFY74Y\n Content-Disposition: form-data; name="data"; filename="unspecified"\n Content-Type: application/octet-stream\n Content-Transfer-Encoding: binary\n\n <<Byte Stream ommitted>>\n ---OSQH1f8lzs83iXFHphqfIuitaQfNKFY74Y\n Content-Disposition: form-data; name="valueType"\n Content-Type: text/plain; charset=US-ASCII\n Content-Transfer-Encoding: 8bit\n\n Bytes\n ---OSQH1f8lzs83iXFHphqfIuitaQfNKFY74Y--\n ```\n '{
"type": "<string>",
"message": "<string>",
"code": 123
}执行实例
更新本地执行变量 (Binary)
Sets the serialized value for a binary variable or the binary value for a file variable in the context of a given execution by id.
POST
/
execution
/
{id}
/
localVariables
/
{varName}
/
data
curl --request POST \
--url http://{host}:{port}/{contextPath}/execution/{id}/localVariables/{varName}/data \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: multipart/form-data' \
--data-binary $'\n ```\n ---OSQH1f8lzs83iXFHphqfIuitaQfNKFY74Y\n Content-Disposition: form-data; name="data"; filename="unspecified"\n Content-Type: application/octet-stream\n Content-Transfer-Encoding: binary\n\n <<Byte Stream ommitted>>\n ---OSQH1f8lzs83iXFHphqfIuitaQfNKFY74Y\n Content-Disposition: form-data; name="valueType"\n Content-Type: text/plain; charset=US-ASCII\n Content-Transfer-Encoding: 8bit\n\n Bytes\n ---OSQH1f8lzs83iXFHphqfIuitaQfNKFY74Y--\n ```\n '{
"type": "<string>",
"message": "<string>",
"code": 123
}Authorizations
Path Parameters
Body
multipart/form-data
Response
Request successful. This method returns no content.