PutBucketTagging
Updated at:2025-11-03
API description
This API is used to set tag for a single bucket
Note: Only the bucket owner with FULL_CONTROL permission can make this request.
Request
Plain Text
1PUT /?tagging HTTP/1.1
2Host: <BucketName>.bj.bcebos.com
3Date: <Date>
4Authorization: <Authorization_String>
5Content-Length: request-body length
6Content-Type: application/json; charset=utf-8
No special parameters
| Name | Types | Description | Required or not | Remarks |
|---|---|---|---|---|
| tags |
|
List of tags to be set | Yes | List, support up to 200 tagKey-tagValue key-value pairs |
Response
Example
Plain Text
1PUT /?tagging HTTP/1.1
2Host: <BucketName>.bj.bcebos.com
3x-bce-date: date
4Content-Length: request-body length
5Content-Type: application/json; charset=utf-8
6Authorization: AuthorizationString
7{
8 "tags":[
9 {
10 "tagKey":"key1",
11 "tagValue":"value123"
12 },
13 {
14 "tagKey":"ttt2",
15 "tagValue":"6863gerg"
16 }
17 ]
18}
