Description
Changes priority of a job.
Note: The priority can be modified only when the job is in Stopped state.
Request syntax
PUT /jobs/{id}
{
"Priority": 500
}
Attribute description
Attribute | Type | Required | Description |
---|---|---|---|
Id | String | Yes | ID of a job. |
Priority | int | Yes | Job priority. The value ranges from 0 to 1000. The priority increases with the value. The setting applies only to jobs in your own job list. |
Response
Success
The 200 status code is returned.
Error codes
Error code | Error message | Status code | Syntax |
---|---|---|---|
InvalidResource.NotFound | Specified resource is not found. | 404 | The user requested resource does not exist. |
MissingPriority | Priority is mandatory for this action. | 400 | The parameter Priority is missing. |
InvalidPriority | Specified parameter Priority is not valid. Its type must be integer. | 400 | Priority must be an integer. |
InvalidPriority | Specified parameter Priority is not valid. It must be in [0, 1000]. | 400 | The value of Priority must be in the range of [0, 1000]. |
Invalid{Parameter} | Specified parameter {Parameter} is not valid. | 400 | The {Parameter} parameter is invalid. |