This API is used for modifying predefined tags.
PUT /v1.0/predefine_tags
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
X-Auth-Token |
Yes |
String |
Specifies the user token. TMS is a global service. When calling the IAM API to obtain a user token, set scope to domain. The value of X-Subject-Token in the response header is the user token. |
Name |
Mandatory |
Type |
Description |
|---|---|---|---|
key |
Yes |
String |
Specifies the key. It cannot be left blank and can contain a maximum of 36 Unicode characters. Only digits, letters, hyphens (-), at signs (@), and underscores (_) are allowed. |
value |
Yes |
String |
Specifies the value. Each value contains a maximum of 43 Unicode characters and can be an empty string. Only digits, letters, hyphens (-), at signs (@), and underscores (_) are allowed. |
Name |
Mandatory |
Type |
Description |
|---|---|---|---|
key |
Yes |
String |
Specifies the key. It can contain up to 36 Unicode characters and cannot be left blank. Only digits, letters, hyphens (-), at signs (@), and underscores (_) are allowed. |
value |
Yes |
String |
Specifies the value. Each value contains a maximum of 43 Unicode characters and can be an empty string. Only digits, letters, hyphens (-), at signs (@), and underscores (_) are allowed. |
PUT https://{TMS endpoint}/v1.0/predefined_tags
{
"new_tag": {
"key": "ENV1",
"value": "DEV1"
},
"old_tag": {
"key": "ENV2",
"value": "DEV2"
}
}
Status code: 200
Successful operation
See Status Codes.
See Error Codes.