Method

POST

Parameters

For binary variables a multipart form submit with the following parts:

The binary data to be set.

For File variables, this multipart can contain the filename, binary value and MIME type of the file variable to be set. Only the filename is mandatory.

|type|text/plain|Deprecated: This only works if the REST API is aware of the involved Java classes.
The canonical java type name of the process variable to be set. Example: foo.bar.Customer. If this part is provided, data must be a JSON object which can be converted into an instance of the provided class. The content type of the data part must be in that case (see above).

Result

This method returns no content.

Response Codes

Example

(1) Post binary content of a byte array variable:

POST /process-instance/aProcessInstanceId/variables/aVarName/data

Request Body:

POST /process-instance/aProcessInstanceId/variables/aVarName/data

Request Body:

(3) Post a text file:

POST /process-instance/aProcessInstanceId/variables/aVarName/data

Request Body: