Updating a Thumbnail
Function
This API is used to update a thumbnail.
Calling Method
For details, see Calling APIs.
Authorization Information
No identity policy-based permission required for calling this API.
URI
PUT /v3/plan/{project_id}/management/{plan_id}/img
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Definition A 32-character UUID. It uniquely identifies a project. Obtain a project ID by calling the API for querying projects. The value of project_id in the response message body is a project ID. Constraints A string of 32 characters consisting of letters and digits. Range N/A Default Value N/A |
| plan_id | Yes | String | Definition Unique ID of a release or sprint. You can obtain the release/sprint ID using the Obtaining the Sprint List of a Specified Project API. The value of the id field in the response message body is the release/sprint ID. Constraints N/A Range N/A Default Value N/A |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Auth-Token | Yes | String | Definition User token. Obtain a token by calling the IAM API for obtaining a user token. The value of X-Subject-Token in the response header is the user token. Constraints N/A Range The value contains 10 to 32,768 characters. Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| img_url | Yes | String | Definition Thumbnail URL. Constraints Image URI, in the format of /v1/upload/{placeholder}/{6-digit number}/{file name}.{extension}. Range N/A Default Value N/A |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| result | result object | Definition: Plan list. |
| status | String | Definition: Processing status of a request. Value range: success error: failed |
| Parameter | Type | Description |
|---|---|---|
| id | String | Definition Plan ID. Range N/A |
| name | String | Definition: Plan title. Value range: N/A |
| type | String | Definition: Plan type. Value range: gantt (Gantt chart) mind (mind map) |
| project_id | String | Definition ID of the project to which the plan belongs. Range N/A |
| img_url | String | Definition: Address for storing images. Value range: N/A |
| creator | creator object | Definition: Creator information. |
| Parameter | Type | Description |
|---|---|---|
| user_id | String | Definition User ID of the creator. Range N/A |
| domain_id | String | Definition Tenant ID. Range N/A |
| nick_name | String | Definition: Creator alias. Value range: N/A |
| first_name | String | Definition: Username of the creator. Value range: N/A |
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Definition Error code. Range N/A |
| error_msg | String | Definition Error description, which is a supplement to error_code. Range N/A |
Example Requests
PUT https://{endpoint}/v3/plan/919bb351ef424e2daaf3dd80c179fae9/management/bf56512ab4e544c29d03d068711ca56a/img
{
"img_url" : "/v1/upload/919bb351ef424e2daaf3dd80c179fae9/202506/1749730526922581391.png"
} Example Responses
Status code: 200
{
"result" : {
"id" : "bf56512ab4e544c29d03d068711ca56a",
"img_url" : "/v1/upload/919bb351ef424e2daaf3dd80c179fae9/202506/1749730526922581391.png"
},
"status" : "success"
} Status code: 400
{
"error_code" : "PM.02100011",
"error_msg" : "No access permission."
} Status Codes
| Status Code | Description |
|---|---|
| 200 | Updates the thumbnail response. |
| 400 | Error response indicating no permission. |
Error Codes
See Error Codes.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot