UpdateJob
Updates the configuration of a job, such as modifying the priority of a queued job.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paidlc:UpdateJob |
update |
*All Resource
|
None | None |
Request syntax
PUT /api/v1/jobs/{JobId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| JobId |
string |
No |
The job ID. For information about how to obtain a job ID, see ListJobs. |
dlc************* |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The job configuration. |
|
| Priority |
integer |
No |
The priority of the job. Valid values: 1 to 9.
|
5 |
| Accessibility |
string |
No |
The visibility of the job. The visibility can only be expanded, not reduced. Valid values:
|
PUBLIC |
| JobSpecs |
array |
No |
The job specifications. |
|
| JobSpec |
No |
The job specifications. |
||
| Description |
string |
No |
The description of the job. |
This is a training job |
| UserCommand |
string |
No |
The user command. |
sleep 1d |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response content. |
||
| JobId |
string |
The job ID. |
dlc************* |
| RequestId |
string |
The request ID, which is used for troubleshooting and diagnostics. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
Examples
Success response
JSON format
{
"JobId": "dlc*************",
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.