POST /jobs/<JobId>/priority?priority=<Priority> HTTP/1.1x-cos-appid: <appid>
UpdateJobPriority
API requires the following parameters:Parameter | Description | Required |
JobId | ID of the batch operation job to be updated; length: 1–64 bytes. | Yes |
priority | New job priority. Value range: 0-2,147,483,647. | Yes |
x-cos-appid | User APPID with a length of 1–64 bytes. | Yes |
HTTP/1.1 200<UpdateJobPriorityResult><JobId>string</JobId><Priority>integer</Priority></UpdateJobPriorityResult>
<UpdateJobPriorityResult><JobId>string</JobId><Priority>integer</Priority></UpdateJobPriorityResult>
Node Name | Parent Node | Description | Type |
JobId | UpdateJobPriorityResult | ID of the job you update; length: 1–64 bytes. | String |
Priority | UpdateJobPriorityResult | Current job priority. Value range: 0-2,147,483,647. | Integer |
Error Code | Description | Status Code | API |
InvalidRequest | No job priority is provided | 400 | UpdateJobPriority |
NoSuchJob | The specified job does not exist or has already been completed | 404 | UpdateJobStatus, UpdateJobPriority |
Was this page helpful?