Set Job Priority

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:

{"priority": 10}

Response

Status 204. No content.

目录: