This API is used to modify the description of a training job.
PUT /v2/{project_id}/training-jobs/{training_job_id}
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
project_id |
Yes |
String |
Project ID. For details, see Obtaining a Project ID and Name. |
training_job_id |
Yes |
String |
Training job ID For details about how to obtain the value, see Querying the Training Job List. |
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
description |
No |
String |
Training job description, which consists of 0 to 256 characters. The default value is NULL. |
None
The following shows how to modify a training job with UUID 3faf5c03-aaa1-4cbe-879d-24b05d997347. After the modification, call the API for obtaining a training job(ListTrainingJobs.xml) to view the modified description.
PUT https://endpoint/v2/{project_id}/training-jobs/3faf5c03-aaa1-4cbe-879d-24b05d997347
{
"description" : "hahaha"
}
Status code: 200
No Content
null
Status Code |
Description |
|---|---|
200 |
No Content |
See Error Codes.