There is an Issue in the swagger File Post/PUT Process Variable.
put:
tags:
- "Process Instance Variables"
summary: "Update a multiple/single (non)binary variable on a process instance"
description: "This endpoint can be used in 2 ways: By passing a JSON Body (RestVariable\
\ or an array of RestVariable) or by passing a multipart/form-data Object.\n\
Nonexistent variables are created on the process-instance and existing ones\
\ are overridden without any error.\nAny number of variables can be passed\
\ into the request body array.\nNote that scope is ignored, only local variables\
\ can be set in a process instance.\nNB: The multipart/form-data approach is not documented for this endpoint due to design restriction."
operationId: "createOrUpdateProcessVariable"
consumes:
- "application/json"
produces:
- "application/json"
parameters:
- name: "processInstanceId"
in: "path"
required: true
type: "string"
- in: "body"
name: "body"
description: "Create a variable on a process instance"
required: false
schema: <!-- Here you need a Array not a single Object -->
type: "array"
items:
$ref: "#/definitions/RestVariable"
is the correct way because on the Serverside you check for a List of RestVariable