Sets the execution priority of a job by id.

Method

PUT /job/{id}/priority

Parameters

Path Parameters

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

Request Body

A JSON object with the following properties:

Name Description
priority The new execution priority number for the job.

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 priority could not be set successfully. See the Introduction for the error response format.

Example

Request

PUT /job/aJobId/priority

Request Body:

  1. {"priority": 10}

Response

Status 204. No content.

原文: https://docs.camunda.org/manual/7.9/reference/rest/job/put-set-job-priority/