The PUT Bucket Tagging operation enables you to add a set of tags to an existing bucket. The bucket owner has this permission by default and can grant this permission to others. For more details about this operation, see the following:
This implementation of the PUT Bucket Tagging operation does not support the use of request parameters.
The PUT Bucket Tagging operation uses only request headers that are common to all operations. For more information, see Figure 7, Table 7, Common Supported Request Headers .
The PUT Bucket Tagging operation supports the use of request elements. For description of these request elements, see Amazon's official PUT Bucket Tagging documentation (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTtagging.html ).
The PUT Bucket Tagging operation uses only response headers that are common to most responses. For more information, see Figure 9, Table 9, Supported Response Headers .
This implementation of the PUT Bucket Tagging operation does not return response elements.
204 No Content
This implementation of the PUT Bucket Tagging operation supports the use of the following response errors
Special Error – MalformedXMLError where the XML provided does not match the schema.
Common Errors – For general information about S3 errors and a list of error codes, see S3 Client Error Handling Reference.
PUT ?tagging HTTP/1.1 Content-Length: 1660 x-amz-date: Thu, 12 Apr 2018 20:04:21 GMT Authorization: authorization string <Tagging> <TagSet> <Tag> <Key>Project</Key> <Value>Project One</Value> </Tag> <Tag> <Key>User</Key> <Value>jsmith</Value> </Tag> </TagSet> </Tagging> HTTP/1.1 204 No Content