S3 · Object tags
PutObjectTagging
/{bucket}/{key}?taggingReplaces the tags of an object.
The tags in the request replace every tag that the object had.
- Role
- Editor or higher
- Support
- Supported
- Replaces the whole tag set.
- Storage tags the current version. It ignores versionId.
Path parameters
Query parameters
Selects this operation. Send it with no value.
Headers
The workspace ID that must own the bucket. Another owner returns 403 AccessDenied.
Request body
Responses
200OK
Storage replaced the tags.
This response has no body.
Errors
Select an error in the response example to see its XML body. Any request can also get the common errors, such as SignatureDoesNotMatch.
- 404NoSuchKey
The bucket has no object at this key, or no version with this versionId.
What to do: Check the key and the versionId.
- 404NoSuchBucket
No bucket has this name, or the bucket was deleted.
What to do: Check the bucket name. ListBuckets shows the buckets of the workspace.
- 403AccessDenied
The key does not have the role for this operation, or the bucket is in another workspace.
What to do: Use a key of the workspace that owns the bucket, with the role above.