Reserved tag keys API reference
Use the /reserved-tag-keys
API endpoints to define and manage tag keys that
have special meaning for your organization. Reserving tag keys enable project
and workspace managers to follow a consistent tagging strategy across the
organization. You can also use them to provide project managers with a means of
disabling overrides for inherited tags.
The following table describes the available endpoints:
Method | Path | Description |
---|---|---|
GET | /organizations/:organization_name/reserved-tag-keys | List reserved tag keys for the specified organization. |
POST | /organizations/:organization_name/reserved-tag-keys | Add a reserved tag key to the specified organization. |
PATCH | /reserved-tags/:reserved_tag_key_id | Update a reserved tag key with the specified ID. |
DELETE | /reserved-tags/:reserved_tag_key_id | Delete a reserved tag key with the specified ID. |
Path parameters
The /reserved-tag-keys/
API endpoints require the following path parameters:
Parameter | Description |
---|---|
:reserved_tag_key_id | The external ID of the reserved tag key. |
:organization_name | The name of the organization containing the reserved tags. |
List reserved tag keys
GET /organizations/:organization_name/reserved-tag-keys
Sample payload
This endpoint does not require a payload.
Sample request
Sample response
Create a reserved tag key
POST /organizations/:organization_name/reserved-tag-keys
This POST endpoint requires a JSON object with the following properties as a request payload.
Properties without a default value are required.
Key path | Type | Default | Description |
---|---|---|---|
data.type | string | none | Must be reserved-tag-keys . |
data.attributes.key | string | none | The key targeted by this reserved |
tag key. | |||
data.attributes.disable-overrides | boolean | none | If true , disables |
overriding inherited tags with the specified key at the workspace level. |
Sample payload
Sample request
Sample response
Update a reserved tag key
PATCH /reserved-tags/:reserved_tag_key_id
This PATCH endpoint requires a JSON object with the following properties as a request payload.
Properties without a default value are required.
Key path | Type | Default | Description |
---|---|---|---|
data.type | string | none | Must be reserved-tag-keys . |
data.attributes.key | string | none | The key targeted by this reserved |
tag key. | |||
data.attributes.disable-overrides | boolean | none | If true , disables |
overriding inherited tags with the specified key at the workspace level. |
Sample payload
Sample request
Sample response
Delete a reserved tag key
DELETE /reserved-tags/:reserved_tag_key_id
Sample payload
This endpoint does not require a payload.
Sample request
Sample response
This endpoint does not return a response body.