TagResource - Amazon Braket


Add a tag to the specified resource.

Request Syntax

POST /tags/resourceArn HTTP/1.1 Content-type: application/json { "tags": { "string" : "string" } }

URI Request Parameters

The request uses the following URI parameters.


Specify the resourceArn of the resource to which a tag will be added.

Required: Yes

Request Body

The request accepts the following data in JSON format.


Specify the tags to add to the resource. Tags can be specified as a key-value map.

Type: String to string map

Required: Yes

Response Syntax

HTTP/1.1 200

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.


For information about the errors that are common to all actions, see Common Errors.


The request failed because of an unknown error.

HTTP Status Code: 500


The specified resource was not found.

HTTP Status Code: 404


The input request failed to satisfy constraints expected by Amazon Braket.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: