Executes a job by id. Note: The execution of the job happens synchronously in the same thread.

Method

POST /job/{id}/execute

Parameters

Path Parameters

Name Description
id The id of the job to be executed.

Result

This method returns no content.

Response Codes

Code Media type Description
204 Request successful.
404 application/json Job with given id does not exist. See the Introduction for the error response format.
500 application/json The job could not be executed successfully. See the Introduction for the error response format.

Example

Request

PUT /job/aJobId/execute

Response

Status 204. No content.

原文: https://docs.camunda.org/manual/7.9/reference/rest/job/post-execute-job/