escalationCode is not provided in\nthe request. See the\n[Introduction](https://docs.camunda.org/manual/develop/reference/rest/overview/#error-handling)\nfor the error response format."
+ },
+ "403": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AuthorizationExceptionDto"
+ }
+ }
+ },
+ "description": "If the authenticated user is unauthorized to update the process instance. See the\n[Introduction](https://docs.camunda.org/manual/develop/reference/rest/overview/#error-handling)\nfor the error response format."
+ },
+ "404": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ExceptionDto"
+ }
+ }
+ },
+ "description": "Returned if the task does not exist. See the\n[Introduction](https://docs.camunda.org/manual/develop/reference/rest/overview/#error-handling)\nfor the error response format."
+ }
+ }
+ }
+ },
+ "/task/{id}/claim": {
+ "post": {
+ "operationId": "claim",
+ "tags": [
+ "Task"
+ ],
+ "summary": "Claim",
+ "description": "Claims a task for a specific user.\n\n**Note:** The difference with the\n[Set Assignee](https://docs.camunda.org/manual/develop/reference/rest/task/post-assignee/)\nmethod is that here a check is performed to see if the task already has a user\nassigned to it.",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true,
+ "description": "The id of the task to claim."
+ }
+ ],
+ "requestBody": {
+ "description": "Provide the id of the user that claims the task.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UserIdDto"
+ },
+ "examples": {
+ "example-1": {
+ "summary": "Request Body",
+ "description": "POST `/task/anId/claim`",
+ "value": {
+ "userId": "aUserId"
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "204": {
+ "description": "Request successful."
+ },
+ "500": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ExceptionDto"
+ }
+ }
+ },
+ "description": "Task with given id does not exist or claiming was not successful. See the\n[Introduction](https://docs.camunda.org/manual/develop/reference/rest/overview/#error-handling)\nfor the error response format."
+ }
+ }
+ }
+ },
+ "/task/{id}/comment": {
+ "delete": {
+ "operationId": "deleteTaskComments",
+ "tags": [
+ "Task Comment"
+ ],
+ "summary": "Delete Task Comments",
+ "description": "Deletes all comments of a task by task id.",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true,
+ "description": "The id of the task for which all comments are to be deleted."
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Request successful."
+ },
+ "400": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ExceptionDto"
+ }
+ }
+ },
+ "description": "Returned if a given task id is invalid. Orhe history of the engine is disabled.\nSee the [Introduction](https://docs.camunda.org/manual/develop/reference/rest/overview/#error-handling) for the error response format."
+ },
+ "404": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AuthorizationExceptionDto"
+ }
+ }
+ },
+ "description": "The authenticated user is unauthorized to delete this resource. See the\n[Introduction](https://docs.camunda.org/manual/develop/reference/rest/overview/#error-handling)\nfor the error response format."
+ }
+ }
+ },
+ "get": {
+ "operationId": "getComments",
+ "tags": [
+ "Task Comment"
+ ],
+ "summary": "Get List",
+ "description": "Gets the comments for a task by id.",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true,
+ "description": "The id of the task to retrieve the comments for."
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/CommentDto"
+ }
+ },
+ "examples": {
+ "example-1": {
+ "summary": "GET /task/aTaskId/comment",
+ "value": [
+ {
+ "id": "commentId",
+ "userId": "userId",
+ "taskId": "aTaskId",
+ "processInstanceId": "96dc383f-23eb-11e6-8e4a-f6aefe19b687",
+ "time": "2013-01-02T21:37:03.764+0200",
+ "message": "message",
+ "removalTime": "2018-02-10T14:33:19.000+0200",
+ "rootProcessInstanceId": "aRootProcessInstanceId"
+ },
+ {
+ "id": "anotherCommentId",
+ "userId": "anotherUserId",
+ "taskId": "aTaskId",
+ "processInstanceId": "96dc383f-23eb-11e6-8e4a-f6aefe19b687",
+ "time": "2013-02-23T20:37:43.975+0200",
+ "message": "anotherMessage",
+ "removalTime": "2018-02-10T14:33:19.000+0200",
+ "rootProcessInstanceId": "aRootProcessInstanceId"
+ },
+ {
+ "id": "yetAnotherCommentId",
+ "userId": "yetAnotherUserId",
+ "taskId": "aTaskId",
+ "processInstanceId": "96dc383f-23eb-11e6-8e4a-f6aefe19b687",
+ "time": "2013-04-21T10:15:23.764+0200",
+ "message": "yetAnotherMessage",
+ "removalTime": "2018-02-10T14:33:19.000+0200",
+ "rootProcessInstanceId": "aRootProcessInstanceId"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "description": "Request successful."
+ },
+ "404": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ExceptionDto"
+ }
+ }
+ },
+ "description": "No task exists for the given task id. See the\n[Introduction](https://docs.camunda.org/manual/develop/reference/rest/overview/#error-handling)\nfor the error response format."
+ }
+ }
+ },
+ "put": {
+ "operationId": "updateTaskComment",
+ "tags": [
+ "Task Comment"
+ ],
+ "summary": "Update",
+ "description": "Updates a Comment.",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true,
+ "description": "The id associated of a task of a comment to be updated."
+ }
+ ],
+ "requestBody": {
+ "description": "**Note:** Only the `id` and `message` properties will be used. Every other\nproperty passed to this endpoint will be ignored.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CommentDto"
+ },
+ "examples": {
+ "example-1": {
+ "summary": "PUT /task/aTaskId/comment",
+ "value": {
+ "id": "86cd272a-23ea-22e5-8e4a-e5bded20a556",
+ "message": "a task comment"
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "204": {
+ "description": "Request successful."
+ },
+ "400": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ExceptionDto"
+ }
+ }
+ },
+ "description": "Returned if a given task id or comment id is invalid. Or the history of the engine is disabled.\nSee the [Introduction](https://docs.camunda.org/manual/develop/reference/rest/overview/#error-handling) for the error response format."
+ },
+ "404": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AuthorizationExceptionDto"
+ }
+ }
+ },
+ "description": "The authenticated user is unauthorized to update this resource. See the\n[Introduction](https://docs.camunda.org/manual/develop/reference/rest/overview/#error-handling)\nfor the error response format."
+ }
+ }
+ }
+ },
+ "/task/{id}/comment/create": {
+ "post": {
+ "operationId": "createComment",
+ "tags": [
+ "Task Comment"
+ ],
+ "summary": "Create",
+ "description": "Creates a comment for a task by id.",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true,
+ "description": "The id of the task to add the comment to."
+ }
+ ],
+ "requestBody": {
+ "description": "**Note:** Only the `message` and `processInstanceId` properties will be used. Every other property passed to this endpoint will be ignored.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CommentDto"
+ },
+ "examples": {
+ "example-1": {
+ "summary": "POST /task/aTaskId/comment/create",
+ "value": {
+ "message": "a task comment",
+ "processInstanceId": "96dc383f-23eb-11e6-8e4a-f6aefe19b687"
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CommentDto"
+ },
+ "examples": {
+ "example-1": {
+ "summary": "Status 200 Response",
+ "value": {
+ "links": [
+ {
+ "method": "GET",
+ "href": "http://localhost:38080/rest-test/task/aTaskId/comment/aTaskCommentId",
+ "rel": "self"
+ }
+ ],
+ "id": "aTaskCommentId",
+ "userId": "userId",
+ "taskId": "aTaskId",
+ "processInstanceId": "96dc383f-23eb-11e6-8e4a-f6aefe19b687",
+ "time": "2013-01-02T21:37:03.887+0200",
+ "message": "comment message",
+ "removalTime": "2018-02-10T14:33:19.000+0200",
+ "rootProcessInstanceId": "aRootProcessInstanceId"
+ }
+ }
+ }
+ }
+ },
+ "description": "Request successful."
+ },
+ "400": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ExceptionDto"
+ }
+ }
+ },
+ "description": "The task does not exist or no comment message was submitted. See the\n[Introduction](https://docs.camunda.org/manual/develop/reference/rest/overview/#error-handling)\nfor the error response format."
+ },
+ "403": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AuthorizationExceptionDto"
+ }
+ }
+ },
+ "description": "The history of the engine is disabled. See the\n[Introduction](https://docs.camunda.org/manual/develop/reference/rest/overview/#error-handling)\nfor the error response format."
+ }
+ }
+ }
+ },
+ "/task/{id}/comment/{commentId}": {
+ "delete": {
+ "operationId": "deleteTaskComment",
+ "tags": [
+ "Task Comment"
+ ],
+ "summary": "Delete",
+ "description": "Removes a comment from a task by id.",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true,
+ "description": "The id of the task."
+ },
+ {
+ "name": "commentId",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true,
+ "description": "The id of the comment to be removed."
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Request successful."
+ },
+ "400": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ExceptionDto"
+ }
+ }
+ },
+ "description": "Returned if a given task id or comment id is invalid. Or history of the engine is disabled.\nSee the [Introduction](https://docs.camunda.org/manual/develop/reference/rest/overview/#error-handling) for the error response format."
+ },
+ "404": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AuthorizationExceptionDto"
+ }
+ }
+ },
+ "description": "The authenticated user is unauthorized to delete this resource. See the\n[Introduction](https://docs.camunda.org/manual/develop/reference/rest/overview/#error-handling)\nfor the error response format."
+ }
+ }
+ },
+ "get": {
+ "operationId": "getComment",
+ "tags": [
+ "Task Comment"
+ ],
+ "summary": "Get",
+ "description": "Retrieves a task comment by task id and comment id.",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true,
+ "description": "The id of the task."
+ },
+ {
+ "name": "commentId",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true,
+ "description": "The id of the comment to be retrieved."
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CommentDto"
+ },
+ "examples": {
+ "example-1": {
+ "summary": "GET /task/aTaskId/comment",
+ "value": {
+ "id": "aTaskCommentId",
+ "userId": "userId",
+ "taskId": "aTaskId",
+ "processInstanceId": "96dc383f-23eb-11e6-8e4a-f6aefe19b687",
+ "time": "2013-01-02T21:37:03.664+0200",
+ "message": "comment content",
+ "removalTime": "2018-02-10T14:33:19.000+0200",
+ "rootProcessInstanceId": "aRootProcessInstanceId"
+ }
+ }
+ }
+ }
+ },
+ "description": "Request successful."
+ },
+ "404": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ExceptionDto"
+ }
+ }
+ },
+ "description": "The task or comment with given task and comment id does not exist, or the history of\nthe engine is disabled. See the\n[Introduction](https://docs.camunda.org/manual/develop/reference/rest/overview/#error-handling)\nfor the error response format."
+ }
+ }
+ }
+ },
+ "/task/{id}/complete": {
+ "post": {
+ "operationId": "complete",
+ "tags": [
+ "Task"
+ ],
+ "summary": "Complete",
+ "description": "Completes a task and updates process variables.",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true,
+ "description": "The id of the task to complete."
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CompleteTaskDto"
+ },
+ "examples": {
+ "example-1": {
+ "summary": "POST `/task/anId/complete`",
+ "description": "Complete Task with variables in return",
+ "value": {
+ "variables": {
+ "aVariable": {
+ "value": "aStringValue"
+ },
+ "anotherVariable": {
+ "value": 42
+ },
+ "aThirdVariable": {
+ "value": true
+ }
+ },
+ "withVariablesInReturn": true
+ }
+ },
+ "example-2": {
+ "summary": "POST `/task/anId/complete`",
+ "description": "Complete Task without variables in return",
+ "value": {
+ "variables": {
+ "aVariable": {
+ "value": "aStringValue"
+ },
+ "anotherVariable": {
+ "value": 42
+ },
+ "aThirdVariable": {
+ "value": true
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/components/schemas/VariableValueDto"
+ }
+ },
+ "examples": {
+ "example-1": {
+ "summary": "POST `/task/anId/complete`",
+ "description": "Response Body",
+ "value": {
+ "aVariable": {
+ "value": "aStringValue"
+ },
+ "anotherVariable": {
+ "value": 42
+ },
+ "aThirdVariable": {
+ "value": true
+ }
+ }
+ }
+ }
+ }
+ },
+ "description": "Request successful. The response contains the process variables."
+ },
+ "204": {
+ "description": "Request successful. The response contains no variables."
+ },
+ "400": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ExceptionDto"
+ }
+ }
+ },
+ "description": "The variable value or type is invalid, for example if the value could not be parsed\nto an Integer value or the passed variable type is not supported. See the\n[Introduction](https://docs.camunda.org/manual/develop/reference/rest/overview/#error-handling)\nfor the error response format."
+ },
+ "500": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ExceptionDto"
+ }
+ }
+ },
+ "description": "If the task does not exist or the corresponding process instance could not be\nresumed successfully. See the\n[Introduction](https://docs.camunda.org/manual/develop/reference/rest/overview/#error-handling)\nfor the error response format."
+ }
+ }
+ }
+ },
+ "/task/{id}/delegate": {
+ "post": {
+ "operationId": "delegateTask",
+ "tags": [
+ "Task"
+ ],
+ "summary": "Delegate",
+ "description": "Delegates a task to another user.",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true,
+ "description": "The id of the task to delegate."
+ }
+ ],
+ "requestBody": {
+ "description": "Provide the id of the user that the task should be delegated to.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UserIdDto"
+ },
+ "examples": {
+ "example-1": {
+ "summary": "Request Body",
+ "description": "POST `/task/anId/delegate`",
+ "value": {
+ "userId": "aUserId"
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "204": {
+ "description": "Request successful."
+ },
+ "500": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ExceptionDto"
+ }
+ }
+ },
+ "description": "If the task does not exist or delegation was not successful. See the\n[Introduction](https://docs.camunda.org/manual/develop/reference/rest/overview/#error-handling)\nfor the error response format."
+ }
+ }
+ }
+ },
+ "/task/{id}/deployed-form": {
+ "get": {
+ "operationId": "getDeployedForm",
+ "tags": [
+ "Task"
+ ],
+ "summary": "Get Deployed Form",
+ "description": "Retrieves the deployed form that is referenced from a given task. For further\ninformation please refer to the\n[User Guide](https://docs.camunda.org/manual/develop/user-guide/task-forms/#embedded-task-forms).",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true,
+ "description": "The id of the task to get the deployed form for."
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/xhtml+xml": {
+ "schema": {
+ "type": "string",
+ "format": "binary",
+ "description": "For `application/xhtml+xml` Responses, a byte stream is returned."
+ },
+ "examples": {
+ "example-1": {
+ "summary": "Status 200 Response",
+ "description": "Resonse for GET `/task/taskId/deployed-form`",
+ "value": ""
+ }
+ }
+ },
+ "application/json": {
+ "schema": {
+ "type": "string",
+ "format": "binary",
+ "description": "For `application/json` Responses, a byte stream is returned."
+ }
+ }
+ },
+ "description": "Request successful."
+ },
+ "400": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ExceptionDto"
+ }
+ }
+ },
+ "description": "The form key has wrong format. See the\n[Introduction](https://docs.camunda.org/manual/develop/reference/rest/overview/#error-handling)\nfor the error response format."
+ },
+ "403": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AuthorizationExceptionDto"
+ }
+ }
+ },
+ "description": "The deployed form cannot be retrieved due to missing permissions on task resource.\nSee the [Introduction](https://docs.camunda.org/manual/develop/reference/rest/overview/#error-handling)\nfor the error response format."
+ },
+ "404": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ExceptionDto"
+ }
+ }
+ },
+ "description": "No deployed form for a given task exists. See the\n[Introduction](https://docs.camunda.org/manual/develop/reference/rest/overview/#error-handling)\nfor the error response format."
+ }
+ }
+ }
+ },
+ "/task/{id}/form": {
+ "get": {
+ "operationId": "getForm",
+ "tags": [
+ "Task"
+ ],
+ "summary": "Get Form Key",
+ "description": "Retrieves the form key for a task. The form key corresponds to the `FormData#formKey`\nproperty in the engine. This key can be used to do task-specific form rendering in\nclient applications. Additionally, the context path of the containing process\napplication is returned.",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true,
+ "description": "The id of the task to retrieve the form for."
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/FormDto"
+ },
+ "examples": {
+ "example-1": {
+ "summary": "Status 200 Response",
+ "description": "GET `/task/anId/form`",
+ "value": {
+ "key": "aFormKey",
+ "contextPath": "http://localhost:8080/my-process-application/"
+ }
+ }
+ }
+ }
+ },
+ "description": "Request successful."
+ },
+ "400": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ExceptionDto"
+ }
+ }
+ },
+ "description": "Task with given id does not exist. See the\n[Introduction](https://docs.camunda.org/manual/develop/reference/rest/overview/#error-handling)\nfor the error response format."
+ }
+ }
+ }
+ },
+ "/task/{id}/form-variables": {
+ "get": {
+ "operationId": "getFormVariables",
+ "tags": [
+ "Task"
+ ],
+ "summary": "Get Task Form Variables",
+ "description": "Retrieves the form variables for a task. The form variables take form data specified\non the task into account. If form fields are defined, the variable types and default\nvalues of the form fields are taken into account.",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true,
+ "description": "The id of the task to retrieve the variables for."
+ },
+ {
+ "name": "variableNames",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ },
+ "description": "A comma-separated list of variable names. Allows restricting the list of requested\nvariables to the variable names in the list. It is best practice to restrict the\nlist of variables to the variables actually required by the form in order to\nminimize fetching of data. If the query parameter is ommitted all variables are\nfetched. If the query parameter contains non-existent variable names, the variable\nnames are ignored."
+ },
+ {
+ "name": "deserializeValues",
+ "in": "query",
+ "schema": {
+ "default": true,
+ "type": "boolean"
+ },
+ "description": "Determines whether serializable variable values (typically variables that store\ncustom Java objects) should be deserialized on server side (default true).\n\nIf set to true, a serializable variable will be deserialized on server side and\ntransformed to JSON using [Jackson's](http://jackson.codehaus.org/) POJO/bean\nproperty introspection feature. Note that this requires the Java classes of the\nvariable value to be on the REST API's classpath.\n\nIf set to false, a serializable variable will be returned in its serialized format.\nFor example, a variable that is serialized as XML will be returned as a JSON string\ncontaining XML.\n\nNote: While true is the default value for reasons of backward compatibility, we\nrecommend setting this parameter to false when developing web applications that are\nindependent of the Java process applications deployed to the engine."
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/components/schemas/VariableValueDto"
+ }
+ },
+ "examples": {
+ "example-1": {
+ "summary": "Status 200 Response",
+ "description": "GET `/task/anId/form-variables`",
+ "value": {
+ "amount": {
+ "type": "integer",
+ "value": 5,
+ "valueInfo": {}
+ },
+ "firstName": {
+ "type": "String",
+ "value": "Jonny",
+ "valueInfo": {}
+ }
+ }
+ }
+ }
+ }
+ },
+ "description": "Request successful. A JSON object containing a property for each variable returned."
+ },
+ "404": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ExceptionDto"
+ }
+ }
+ },
+ "description": " id is null or does not exist. See the\n[Introduction](https://docs.camunda.org/manual/develop/reference/rest/overview/#error-handling)\nfor the error response format."
+ }
+ }
+ }
+ },
+ "/task/{id}/identity-links": {
+ "get": {
+ "operationId": "getIdentityLinks",
+ "tags": [
+ "Task Identity Link"
+ ],
+ "summary": "Get List",
+ "description": "Gets the identity links for a task by id, which are the users and groups that are in\n*some* relation to it (including assignee and owner).",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true,
+ "description": "The id of the task to retrieve the identity links for."
+ },
+ {
+ "name": "type",
+ "in": "query",
+ "schema": {
+ "type": "string"
+ },
+ "description": "Filter by the type of links to include."
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/IdentityLinkDto"
+ }
+ },
+ "examples": {
+ "example-1": {
+ "summary": "GET /task/anId/identityLinks",
+ "value": [
+ {
+ "userId": "userId",
+ "groupId": null,
+ "type": "assignee"
+ },
+ {
+ "userId": null,
+ "groupId": "groupId1",
+ "type": "candidate"
+ },
+ {
+ "userId": null,
+ "groupId": "groupId2",
+ "type": "candidate"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "description": "Request successful."
+ },
+ "400": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ExceptionDto"
+ }
+ }
+ },
+ "description": "Task with given id does not exist. See the\n[Introduction](https://docs.camunda.org/manual/develop/reference/rest/overview/#error-handling) for the error response format."
+ }
+ }
+ },
+ "post": {
+ "operationId": "addIdentityLink",
+ "tags": [
+ "Task Identity Link"
+ ],
+ "summary": "Add",
+ "description": "Adds an identity link to a task by id. Can be used to link any user or group to a task\nand specify a relation.",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true,
+ "description": "The id of the task to add a link to."
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/IdentityLinkDto"
+ },
+ "examples": {
+ "example-1": {
+ "summary": "POST `/task/anId/identity-links`",
+ "value": {
+ "groupId": "aNewGroupId",
+ "type": "candidate"
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "204": {
+ "description": "Request successful."
+ },
+ "400": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ExceptionDto"
+ }
+ }
+ },
+ "description": "Task with given id does not exist. See the\n[Introduction](https://docs.camunda.org/manual/develop/reference/rest/overview/#error-handling) for the error response format."
+ }
+ }
+ }
+ },
+ "/task/{id}/identity-links/delete": {
+ "post": {
+ "operationId": "deleteIdentityLink",
+ "tags": [
+ "Task Identity Link"
+ ],
+ "summary": "Delete",
+ "description": "Removes an identity link from a task by id",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true,
+ "description": "The id of the task to remove a link from."
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/IdentityLinkDto"
+ },
+ "examples": {
+ "example-1": {
+ "summary": "POST `/task/anId/identityLinks/delete`",
+ "value": {
+ "groupId": "theOldGroupId",
+ "type": "candidate"
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "204": {
+ "description": "Request successful."
+ },
+ "400": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ExceptionDto"
+ }
+ }
+ },
+ "description": "Task with given id does not exist.\nSee the [Introduction](https://docs.camunda.org/manual/develop/reference/rest/overview/#error-handling) for\nthe error response format."
+ }
+ }
+ }
+ },
+ "/task/{id}/localVariables": {
+ "get": {
+ "operationId": "getTaskLocalVariables",
+ "tags": [
+ "Task Local Variable"
+ ],
+ "summary": "Get Local Task Variables",
+ "description": "Retrieves all variables of a given task by id.",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true,
+ "description": "The id of the task to retrieve the variables from."
+ },
+ {
+ "name": "deserializeValues",
+ "in": "query",
+ "schema": {
+ "default": true,
+ "type": "boolean"
+ },
+ "description": "Determines whether serializable variable values (typically variables that store custom Java objects)\nshould be deserialized on the server side (default `true`).\n\nIf set to `true`, a serializable variable will be deserialized on server side and transformed to JSON\nusing [Jackson's](https://github.com/FasterXML/jackson) POJO/bean property introspection feature.\nNote that this requires the Java classes of the variable value to be on the REST API's classpath.\n\nIf set to `false`, a serializable variable will be returned in its serialized format.\nFor example, a variable that is serialized as XML will be returned as a JSON string containing XML.\n\n**Note:** While `true` is the default value for reasons of backward compatibility, we recommend setting this\nparameter to `false` when developing web applications that are independent of the Java process\napplications deployed to the engine."
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/components/schemas/VariableValueDto"
+ }
+ },
+ "examples": {
+ "example-1": {
+ "summary": "GET `/task/aTaskId/variables`",
+ "value": {
+ "aVariableKey": {
+ "value": {
+ "prop1": "a",
+ "prop2": "b"
+ },
+ "type": "Object",
+ "valueInfo": {
+ "objectTypeName": "com.example.MyObject",
+ "serializationDataFormat": "application/xml"
+ }
+ }
+ }
+ },
+ "example-2": {
+ "summary": "GET `/task/aTaskId/variables?deserializeValue=false`",
+ "value": {
+ "aVariableKey": {
+ "value": "ab",
+ "type": "Object",
+ "valueInfo": {
+ "objectTypeName": "com.example.MyObject",
+ "serializationDataFormat": "application/xml"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "description": "Request successful."
+ },
+ "500": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ExceptionDto"
+ }
+ }
+ },
+ "description": "Task id is `null` or does not exist. See the\n[Introduction](https://docs.camunda.org/manual/develop/reference/rest/overview/#error-handling)\nfor the error response format."
+ }
+ }
+ },
+ "post": {
+ "operationId": "modifyTaskLocalVariables",
+ "tags": [
+ "Task Local Variable"
+ ],
+ "summary": "Update/Delete Local Task Variables",
+ "description": "Updates or deletes the variables in the context of a task. Updates precede deletions. So, if a variable is\nupdated AND deleted, the deletion overrides the update.",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true,
+ "description": "The id of the task to set variables for."
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/PatchVariablesDto"
+ },
+ "examples": {
+ "example-1": {
+ "summary": "POST `/task/aTaskId/variables`",
+ "description": "Status 204 Response: No content.",
+ "value": {
+ "modifications": {
+ "aVariable": {
+ "value": "aValue",
+ "type": "String"
+ },
+ "anotherVariable": {
+ "value": 42,
+ "type": "Integer"
+ }
+ },
+ "deletions": [
+ "aThirdVariable",
+ "FourthVariable"
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "204": {
+ "description": "Request successful."
+ },
+ "400": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ExceptionDto"
+ }
+ }
+ },
+ "description": "The variable value or type is invalid. For example the value could not be parsed to an `Integer` value\nor the passed variable type is not supported. See the\n[Introduction](https://docs.camunda.org/manual/develop/reference/rest/overview/#error-handling)\nfor the error response format."
+ },
+ "500": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ExceptionDto"
+ }
+ }
+ },
+ "description": "Update or delete could not be executed because the task is `null` or does not exist.. See the\n[Introduction](https://docs.camunda.org/manual/develop/reference/rest/overview/#error-handling)\nfor the error response format."
+ }
+ }
+ }
+ },
+ "/task/{id}/localVariables/{varName}": {
+ "delete": {
+ "operationId": "deleteTaskLocalVariable",
+ "tags": [
+ "Task Local Variable"
+ ],
+ "summary": "Delete Local Task Variable",
+ "description": "Removes a local variable from a task by id.",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true,
+ "description": "The id of the task to delete the variable from."
+ },
+ {
+ "name": "varName",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true,
+ "description": "The name of the variable to be removed."
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "Request successful."
+ },
+ "500": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ExceptionDto"
+ }
+ }
+ },
+ "description": "Task id is `null` or does not exist. See the\n[Introduction](https://docs.camunda.org/manual/develop/reference/rest/overview/#error-handling)\nfor the error response format."
+ }
+ }
+ },
+ "get": {
+ "operationId": "getTaskLocalVariable",
+ "tags": [
+ "Task Local Variable"
+ ],
+ "summary": "Get Local Task Variable",
+ "description": "Retrieves a variable from the context of a given task by id.",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true,
+ "description": "The id of the task to retrieve the variable from."
+ },
+ {
+ "name": "varName",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true,
+ "description": "The name of the variable to get"
+ },
+ {
+ "name": "deserializeValue",
+ "in": "query",
+ "schema": {
+ "default": true,
+ "type": "boolean"
+ },
+ "description": "Determines whether serializable variable values (typically variables that store custom Java objects)\nshould be deserialized on the server side (default `true`).\n\nIf set to `true`, a serializable variable will be deserialized on server side and transformed to JSON\nusing [Jackson's](https://github.com/FasterXML/jackson) POJO/bean property introspection feature.\nNote that this requires the Java classes of the variable value to be on the REST API's classpath.\n\nIf set to `false`, a serializable variable will be returned in its serialized format.\nFor example, a variable that is serialized as XML will be returned as a JSON string containing XML.\n\nNote: While `true` is the default value for reasons of backward compatibility, we recommend setting this\nparameter to `false` when developing web applications that are independent of the Java process\napplications deployed to the engine."
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/VariableValueDto"
+ },
+ "examples": {
+ "example-1": {
+ "summary": "GET `/task/aTaskId/variables/myObject123`",
+ "value": {
+ "value": {
+ "prop1": "a",
+ "prop2": "b"
+ },
+ "type": "Object",
+ "valueInfo": {
+ "objectTypeName": "com.example.MyObject",
+ "serializationDataFormat": "application/xml"
+ }
+ }
+ },
+ "example-2": {
+ "summary": "GET `/task/aTaskId/variables/myObject123?deserializeValue=false`",
+ "value": {
+ "value": "ab",
+ "type": "Object",
+ "valueInfo": {
+ "objectTypeName": "com.example.MyObject",
+ "serializationDataFormat": "application/xml"
+ }
+ }
+ }
+ }
+ }
+ },
+ "description": "Request successful."
+ },
+ "404": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ExceptionDto"
+ }
+ }
+ },
+ "description": "Variable with given id does not exist. See the\n[Introduction](https://docs.camunda.org/manual/develop/reference/rest/overview/#error-handling)\nfor the error response format."
+ },
+ "500": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ExceptionDto"
+ }
+ }
+ },
+ "description": "Task id is `null` or does not exist. See the\n[Introduction](https://docs.camunda.org/manual/develop/reference/rest/overview/#error-handling)\nfor the error response format."
+ }
+ }
+ },
+ "put": {
+ "operationId": "putTaskLocalVariable",
+ "tags": [
+ "Task Local Variable"
+ ],
+ "summary": "Update Local Task Variable",
+ "description": "Sets a variable in the context of a given task.",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true,
+ "description": "The id of the task to set the variable for."
+ },
+ {
+ "name": "varName",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true,
+ "description": "The name of the variable to set."
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/VariableValueDto"
+ },
+ "examples": {
+ "example-1": {
+ "summary": "PUT /task/aTaskId/variables/aVarName",
+ "description": "Status 204. No content.",
+ "value": {
+ "value": "someValue",
+ "type": "String"
+ }
+ },
+ "example-2": {
+ "summary": "PUT /task/aTaskId/variables/aVarName",
+ "description": "An Object Variable PUT Request. Status 204. No content.",
+ "value": {
+ "value": "ab",
+ "type": "Object",
+ "valueInfo": {
+ "objectTypeName": "com.example.MyObject",
+ "serializationDataFormat": "application/xml"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "204": {
+ "description": "Request successful."
+ },
+ "400": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ExceptionDto"
+ }
+ }
+ },
+ "description": "The variable name, value or type is invalid, for example if the value could not be parsed to an `Integer`\nvalue or the passed variable type is not supported or a new transient variable has the name that is\nalready persisted. See the [Introduction](https://docs.camunda.org/manual/develop/reference/rest/overview/#error-handling)\nfor the error response format."
+ },
+ "500": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ExceptionDto"
+ }
+ }
+ },
+ "description": "The variable name is `null`, or the Task id is `null` or does not exist. See the\n[Introduction](https://docs.camunda.org/manual/develop/reference/rest/overview/#error-handling)\nfor the error response format."
+ }
+ }
+ }
+ },
+ "/task/{id}/localVariables/{varName}/data": {
+ "get": {
+ "operationId": "getTaskLocalVariableBinary",
+ "tags": [
+ "Task Local Variable"
+ ],
+ "summary": "Get Local Task Variable (Binary)",
+ "description": "Retrieves a binary variable from the context of a given task by id. Applicable for byte array and file\nvariables.",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true,
+ "description": "The id of the task to retrieve the variable for."
+ },
+ {
+ "name": "varName",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true,
+ "description": "The name of the variable to retrieve."
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Request successful.\n For binary variables or files without any MIME type information, a byte stream is returned.\n File variables with MIME type information are returned as the saved type.\n Additionally, for file variables the Content-Disposition header will be set.",
+ "content": {
+ "application/octet-stream": {
+ "schema": {
+ "type": "string",
+ "format": "binary",
+ "description": "For binary variables or files without any MIME type information, a byte stream is returned."
+ },
+ "examples": {
+ "example-1": {
+ "summary": "GET /task/aTaskId/variables/aVarName/data",
+ "value": "binary variable: Status 200. Content-Type: application/octet-stream"
+ }
+ }
+ },
+ "text/plain": {
+ "schema": {
+ "type": "string",
+ "format": "binary",
+ "description": "File variables with MIME type information are returned as the saved type.\n Additionally, for file variables the Content-Disposition header will be set."
+ },
+ "examples": {
+ "example-1": {
+ "summary": "GET /task/aTaskId/variables/aVarName/data",
+ "value": "file variable: Status 200. Content-Type: text/plain; charset=UTF-8. Content-Disposition: attachment; filename=\"someFile.txt\""
+ }
+ }
+ }
+ }
+ },
+ "400": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ExceptionDto"
+ }
+ }
+ },
+ "description": "Variable with given id exists but is not a binary variable.See the\n[Introduction](https://docs.camunda.org/manual/develop/reference/rest/overview/#error-handling)\nfor the error response format."
+ },
+ "404": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ExceptionDto"
+ }
+ }
+ },
+ "description": "Variable with given id does not exist. See the\n[Introduction](https://docs.camunda.org/manual/develop/reference/rest/overview/#error-handling)\nfor the error response format."
+ }
+ }
+ },
+ "post": {
+ "operationId": "setBinaryTaskLocalVariable",
+ "tags": [
+ "Task Local Variable"
+ ],
+ "summary": "Update Local Task Variable (Binary)",
+ "description": "Sets the serialized value for a binary variable or the binary value for a file variable.",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true,
+ "description": "The id of the task to retrieve the variable for."
+ },
+ {
+ "name": "varName",
+ "in": "path",
+ "schema": {
+ "type": "string"
+ },
+ "required": true,
+ "description": "The name of the variable to retrieve."
+ }
+ ],
+ "requestBody": {
+ "description": "For binary variables a multipart form submit with the following parts:",
+ "content": {
+ "multipart/form-data": {
+ "schema": {
+ "$ref": "#/components/schemas/MultiFormVariableBinaryDto"
+ },
+ "examples": {
+ "example-1": {
+ "summary": "POST `/task/aTaskId/variables/aVarName/data` (1)",
+ "description": "Post binary content of a byte array variable.",
+ "value": "\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 <YYYY-MM-DD'T'HH:mm:ss.SSSZ."
+ }
+ }
+ },
+ "TelemetryLicenseKeyDto": {
+ "type": "object",
+ "properties": {
+ "customer": {
+ "type": "string",
+ "nullable": true,
+ "description": "The name of the customer the license was issued for."
+ },
+ "type": {
+ "type": "string",
+ "nullable": true,
+ "description": "The license type."
+ },
+ "valid-until": {
+ "type": "string",
+ "format": "date",
+ "nullable": true,
+ "description": "The expiration date of the license."
+ },
+ "unlimited": {
+ "type": "boolean",
+ "nullable": true,
+ "description": "Flag that indicates if the license is unlimited."
+ },
+ "features": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "A map of features included in the license."
+ },
+ "raw": {
+ "type": "string",
+ "nullable": true,
+ "description": "The raw license information."
+ }
+ }
+ },
+ "TelemetryProductDto": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "nullable": true,
+ "description": "The name of the product (i.e., Camunda BPM Runtime)."
+ },
+ "version": {
+ "type": "string",
+ "nullable": true,
+ "description": "The version of the process engine (i.e., 7.X.Y)."
+ },
+ "edition": {
+ "type": "string",
+ "nullable": true,
+ "description": "The edition of the product (i.e., either community or enterprise)."
+ },
+ "internals": {
+ "$ref": "#/components/schemas/TelemetryInternalsDto"
+ }
+ }
+ },
+ "TenantDto": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "nullable": true,
+ "description": "The id of the tenant."
+ },
+ "name": {
+ "type": "string",
+ "nullable": true,
+ "description": "The name of the tenant."
+ }
+ }
+ },
+ "TransitionInstanceDto": {
+ "type": "object",
+ "description": "A JSON object corresponding to the Activity Instance tree of the given process instance.",
+ "properties": {
+ "id": {
+ "type": "string",
+ "nullable": true,
+ "description": "The id of the transition instance."
+ },
+ "parentActivityInstanceId": {
+ "type": "string",
+ "nullable": true,
+ "description": "The id of the parent activity instance, for example a sub process instance."
+ },
+ "activityId": {
+ "type": "string",
+ "nullable": true,
+ "description": "The id of the activity that this instance enters (asyncBefore job) or leaves (asyncAfter job)"
+ },
+ "activityName": {
+ "type": "string",
+ "nullable": true,
+ "description": "The name of the activity that this instance enters (asyncBefore job) or leaves (asyncAfter job)"
+ },
+ "activityType": {
+ "type": "string",
+ "nullable": true,
+ "description": "The type of the activity that this instance enters (asyncBefore job) or leaves (asyncAfter job)"
+ },
+ "processInstanceId": {
+ "type": "string",
+ "nullable": true,
+ "description": "The id of the process instance this instance is part of."
+ },
+ "processDefinitionId": {
+ "type": "string",
+ "nullable": true,
+ "description": "The id of the process definition."
+ },
+ "executionId": {
+ "type": "string",
+ "nullable": true,
+ "description": "The execution id."
+ },
+ "incidentIds": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "type": "string"
+ },
+ "description": "A list of incident ids."
+ },
+ "incidents": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "$ref": "#/components/schemas/ActivityInstanceIncidentDto"
+ },
+ "description": "A list of JSON objects containing incident specific properties:\n* `id`: the id of the incident\n* `activityId`: the activity id in which the incident occurred"
+ }
+ }
+ },
+ "TriggerVariableValueDto": {
+ "allOf": [
+ {
+ "type": "object",
+ "properties": {
+ "local": {
+ "type": "boolean",
+ "nullable": true,
+ "description": "Indicates whether the variable should be a local variable or not.\nIf set to true, the variable becomes a local variable of the execution\nentering the target activity."
+ }
+ }
+ },
+ {
+ "$ref": "#/components/schemas/VariableValueDto"
+ }
+ ]
+ },
+ "UserCredentialsDto": {
+ "type": "object",
+ "properties": {
+ "password": {
+ "type": "string",
+ "nullable": true,
+ "description": "The users new password."
+ },
+ "authenticatedUserPassword": {
+ "type": "string",
+ "nullable": true,
+ "description": "The password of the authenticated user who changes the password of the user\n(i.e., the user with passed id as path parameter)."
+ }
+ }
+ },
+ "UserDto": {
+ "type": "object",
+ "properties": {
+ "profile": {
+ "$ref": "#/components/schemas/UserProfileDto"
+ },
+ "credentials": {
+ "$ref": "#/components/schemas/UserCredentialsDto"
+ }
+ }
+ },
+ "UserIdDto": {
+ "type": "object",
+ "properties": {
+ "userId": {
+ "type": "string",
+ "nullable": true,
+ "description": "The id of the user that the current action refers to."
+ }
+ }
+ },
+ "UserOperationLogEntryDto": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "nullable": true,
+ "description": "The unique identifier of this log entry."
+ },
+ "userId": {
+ "type": "string",
+ "nullable": true,
+ "description": "The user who performed this operation."
+ },
+ "timestamp": {
+ "type": "string",
+ "format": "date-time",
+ "nullable": true,
+ "description": "Timestamp of this operation."
+ },
+ "operationId": {
+ "type": "string",
+ "nullable": true,
+ "description": "The unique identifier of this operation. A composite operation that changes\nmultiple properties has a common `operationId`."
+ },
+ "operationType": {
+ "type": "string",
+ "nullable": true,
+ "description": "The type of this operation, e.g., `Assign`, `Claim` and so on."
+ },
+ "entityType": {
+ "type": "string",
+ "nullable": true,
+ "description": "The type of the entity on which this operation was executed, e.g., `Task` or\n`Attachment`."
+ },
+ "category": {
+ "type": "string",
+ "nullable": true,
+ "description": "The name of the category this operation was associated with, e.g., `TaskWorker` or\n`Admin`."
+ },
+ "annotation": {
+ "type": "string",
+ "nullable": true,
+ "description": "An arbitrary annotation set by a user for auditing reasons."
+ },
+ "property": {
+ "type": "string",
+ "nullable": true,
+ "description": "The property changed by this operation."
+ },
+ "orgValue": {
+ "type": "string",
+ "nullable": true,
+ "description": "The original value of the changed property."
+ },
+ "newValue": {
+ "type": "string",
+ "nullable": true,
+ "description": "The new value of the changed property."
+ },
+ "deploymentId": {
+ "type": "string",
+ "nullable": true,
+ "description": "If not `null`, the operation is restricted to entities in relation to this\ndeployment."
+ },
+ "processDefinitionId": {
+ "type": "string",
+ "nullable": true,
+ "description": "If not `null`, the operation is restricted to entities in relation to this process\ndefinition."
+ },
+ "processDefinitionKey": {
+ "type": "string",
+ "nullable": true,
+ "description": "If not `null`, the operation is restricted to entities in relation to process\ndefinitions with this key."
+ },
+ "processInstanceId": {
+ "type": "string",
+ "nullable": true,
+ "description": "If not `null`, the operation is restricted to entities in relation to this process\ninstance."
+ },
+ "executionId": {
+ "type": "string",
+ "nullable": true,
+ "description": "If not `null`, the operation is restricted to entities in relation to this\nexecution."
+ },
+ "caseDefinitionId": {
+ "type": "string",
+ "nullable": true,
+ "description": "If not `null`, the operation is restricted to entities in relation to this case\ndefinition."
+ },
+ "caseInstanceId": {
+ "type": "string",
+ "nullable": true,
+ "description": "If not `null`, the operation is restricted to entities in relation to this case\ninstance."
+ },
+ "caseExecutionId": {
+ "type": "string",
+ "nullable": true,
+ "description": "If not `null`, the operation is restricted to entities in relation to this case\nexecution."
+ },
+ "taskId": {
+ "type": "string",
+ "nullable": true,
+ "description": "If not `null`, the operation is restricted to entities in relation to this task."
+ },
+ "externalTaskId": {
+ "type": "string",
+ "nullable": true,
+ "description": "If not `null`, the operation is restricted to entities in relation to this external task."
+ },
+ "batchId": {
+ "type": "string",
+ "nullable": true,
+ "description": "If not `null`, the operation is restricted to entities in relation to this batch."
+ },
+ "jobId": {
+ "type": "string",
+ "nullable": true,
+ "description": "If not `null`, the operation is restricted to entities in relation to this job."
+ },
+ "jobDefinitionId": {
+ "type": "string",
+ "nullable": true,
+ "description": "If not `null`, the operation is restricted to entities in relation to this job\ndefinition."
+ },
+ "removalTime": {
+ "type": "string",
+ "format": "date-time",
+ "nullable": true,
+ "description": "The time after which the entry should be removed by the History Cleanup job.\n[Default format](https://docs.camunda.org/manual/develop/reference/rest/overview/date-format/)\n`yyyy-MM-dd'T'HH:mm:ss.SSSZ`."
+ },
+ "rootProcessInstanceId": {
+ "type": "string",
+ "nullable": true,
+ "description": "The process instance id of the root process instance that initiated the process\ncontaining this entry."
+ }
+ }
+ },
+ "UserProfileDto": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "nullable": true,
+ "description": "The id of the user."
+ },
+ "firstName": {
+ "type": "string",
+ "nullable": true,
+ "description": "The first name of the user."
+ },
+ "lastName": {
+ "type": "string",
+ "nullable": true,
+ "description": "The first name of the user."
+ },
+ "email": {
+ "type": "string",
+ "nullable": true,
+ "description": "The email of the user."
+ }
+ }
+ },
+ "VariableInstanceDto": {
+ "allOf": [
+ {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "nullable": true,
+ "description": "The id of the variable instance."
+ },
+ "name": {
+ "type": "string",
+ "nullable": true,
+ "description": "The name of the variable instance."
+ },
+ "processDefinitionId": {
+ "type": "string",
+ "nullable": true,
+ "description": "The id of the process definition that this variable instance belongs to."
+ },
+ "processInstanceId": {
+ "type": "string",
+ "nullable": true,
+ "description": "The id of the process instance that this variable instance belongs to."
+ },
+ "executionId": {
+ "type": "string",
+ "nullable": true,
+ "description": "The id of the execution that this variable instance belongs to."
+ },
+ "caseInstanceId": {
+ "type": "string",
+ "nullable": true,
+ "description": "The id of the case instance that this variable instance belongs to."
+ },
+ "caseExecutionId": {
+ "type": "string",
+ "nullable": true,
+ "description": "The id of the case execution that this variable instance belongs to."
+ },
+ "taskId": {
+ "type": "string",
+ "nullable": true,
+ "description": "The id of the task that this variable instance belongs to."
+ },
+ "batchId": {
+ "type": "string",
+ "nullable": true,
+ "description": "The id of the batch that this variable instance belongs to.<"
+ },
+ "activityInstanceId": {
+ "type": "string",
+ "nullable": true,
+ "description": "The id of the activity instance that this variable instance belongs to."
+ },
+ "tenantId": {
+ "type": "string",
+ "nullable": true,
+ "description": "The id of the tenant that this variable instance belongs to."
+ },
+ "errorMessage": {
+ "type": "string",
+ "nullable": true,
+ "description": "An error message in case a Java Serialized Object could not be de-serialized."
+ }
+ }
+ },
+ {
+ "$ref": "#/components/schemas/VariableValueDto"
+ }
+ ]
+ },
+ "VariableInstanceQueryDto": {
+ "type": "object",
+ "description": "A variable instance query which defines a list of variable instances",
+ "properties": {
+ "variableName": {
+ "type": "string",
+ "nullable": true,
+ "description": "Filter by variable instance name."
+ },
+ "variableNameLike": {
+ "type": "string",
+ "nullable": true,
+ "description": "Filter by the variable instance name. The parameter can include the wildcard `%` to\nexpress like-strategy such as: starts with (`%`name), ends with (name`%`) or\ncontains (`%`name`%`)."
+ },
+ "processInstanceIdIn": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "type": "string"
+ },
+ "description": "Only include variable instances which belong to one of the passed \nprocess instance ids."
+ },
+ "executionIdIn": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "type": "string"
+ },
+ "description": "Only include variable instances which belong to one of the passed \nexecution ids."
+ },
+ "caseInstanceIdIn": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "type": "string"
+ },
+ "description": "Only include variable instances which belong to one of the passed case instance ids."
+ },
+ "caseExecutionIdIn": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "type": "string"
+ },
+ "description": "Only include variable instances which belong to one of the passed case execution ids."
+ },
+ "taskIdIn": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "type": "string"
+ },
+ "description": "Only include variable instances which belong to one of the passed task\nids."
+ },
+ "batchIdIn": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "type": "string"
+ },
+ "description": "Only include variable instances which belong to one of the passed \nbatch ids."
+ },
+ "activityInstanceIdIn": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "type": "string"
+ },
+ "description": "Only include variable instances which belong to one of the passed \nactivity instance ids."
+ },
+ "tenantIdIn": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "type": "string"
+ },
+ "description": "Only include variable instances which belong to one of the passed \ntenant ids."
+ },
+ "variableValues": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "$ref": "#/components/schemas/VariableQueryParameterDto"
+ },
+ "description": "An array to only include variable instances that have the certain values.\nThe array consists of objects with the three properties `name`, `operator` and `value`. `name (String)` is the\nvariable name, `operator (String)` is the comparison operator to be used and `value` the variable value.\n`value` may be `String`, `Number` or `Boolean`.\n\nValid operator values are: `eq` - equal to; `neq` - not equal to; `gt` - greater than; `gteq` - greater\nthan or equal to; `lt` - lower than; `lteq` - lower than or equal to; `like`"
+ },
+ "variableNamesIgnoreCase": {
+ "type": "boolean",
+ "nullable": true,
+ "description": "Match all variable names provided in `variableValues` case-insensitively. If set to `true`\n**variableName** and **variablename** are treated as equal."
+ },
+ "variableValuesIgnoreCase": {
+ "type": "boolean",
+ "nullable": true,
+ "description": "Match all variable values provided in `variableValues` case-insensitively. If set to\n`true` **variableValue** and **variablevalue** are treated as equal."
+ },
+ "variableScopeIdIn": {
+ "type": "array",
+ "nullable": true,
+ "items": {
+ "type": "string"
+ },
+ "description": "Only include variable instances which belong to one of passed scope ids."
+ },
+ "sorting": {
+ "type": "array",
+ "nullable": true,
+ "description": "An array of criteria to sort the result by. Each element of the array is an object that specifies one ordering.\n The position in the array identifies the rank of an ordering, i.e., whether it is primary, secondary, etc.\n Sorting has no effect for `count` endpoints",
+ "items": {
+ "type": "object",
+ "properties": {
+ "sortBy": {
+ "type": "string",
+ "nullable": true,
+ "enum": [
+ "variableName",
+ "variableType",
+ "activityInstanceId",
+ "tenantId"
+ ],
+ "description": "Sort the results lexicographically by a given criterion.\nMust be used in conjunction with the sortOrder parameter."
+ },
+ "sortOrder": {
+ "type": "string",
+ "nullable": true,
+ "enum": [
+ "asc",
+ "desc"
+ ],
+ "description": "Sort the results in a given order. Values may be `asc` for ascending order or `desc` for\ndescending order. Must be used in conjunction with the sortBy parameter."
+ }
+ }
+ }
+ }
+ }
+ },
+ "VariableQueryParameterDto": {
+ "allOf": [
+ {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "nullable": true,
+ "description": "Variable name"
+ }
+ }
+ },
+ {
+ "$ref": "#/components/schemas/ConditionQueryParameterDto"
+ }
+ ]
+ },
+ "VariableValueDto": {
+ "type": "object",
+ "properties": {
+ "value": {
+ "$ref": "#/components/schemas/AnyValue"
+ },
+ "type": {
+ "type": "string",
+ "nullable": true,
+ "description": "The value type of the variable."
+ },
+ "valueInfo": {
+ "type": "object",
+ "additionalProperties": true,
+ "description": "A JSON object containing additional, value-type-dependent properties.\nFor serialized variables of type Object, the following properties can be provided:\n\n* `objectTypeName`: A string representation of the object's type name.\n* `serializationDataFormat`: The serialization format used to store the variable.\n\nFor serialized variables of type File, the following properties can be provided:\n\n* `filename`: The name of the file. This is not the variable name but the name that will be used when downloading the file again.\n* `mimetype`: The MIME type of the file that is being uploaded.\n* `encoding`: The encoding of the file that is being uploaded.\n\nThe following property can be provided for all value types:\n\n* `transient`: Indicates whether the variable should be transient or\nnot. See [documentation](https://docs.camunda.org/manual/develop/user-guide/process-engine/variables#transient-variables) for more informations.\n(Not applicable for `decision-definition`, ` /process-instance/variables-async`, and `/migration/executeAsync` endpoints)"
+ }
+ }
+ },
+ "VersionDto": {
+ "type": "object",
+ "properties": {
+ "version": {
+ "type": "string",
+ "nullable": true,
+ "description": "The version of the Rest API."
+ }
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/engine/src/main/resources/static/swagger-ui.html b/engine/src/main/resources/static/swagger-ui.html
new file mode 100644
index 00000000..39f36865
--- /dev/null
+++ b/engine/src/main/resources/static/swagger-ui.html
@@ -0,0 +1,26 @@
+
+
+
+
+