This API is used to add a tag to an image or update a tag.
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
tag |
Yes |
Object |
Specifies the tag to be added or updated. For details, see Table 2. |
POST https://{Endpoint}/v2/fd73a4a14a4a4dfb9771a8475e5198ea/images/67e17426-359e-49fb-aa12-0bd1756ec240/tags
1 2 3 4 5 6 | { "tag": { "value": "value1", "key": "key1" } } |
Returned Value |
Description |
---|---|
400 Bad Request |
Request error. |
401 Unauthorized |
Authentication failed. |
403 Forbidden |
You do not have the rights to perform the operation. |
404 Not Found |
The requested resource was not found. |
500 Internal Server Error |
Internal service error. |
503 Service Unavailable |
The service is unavailable. |