Docs
/
/

Tags mAPI reference

Complete reference documentation for the Tags resource.

Tags

#

Tags are named labels in your project's catalog that you can apply to resources to organize them. Tags are project-scoped and are not tied to an environment.

Delete a tag

#

Deletes a tag by name.

Endpoint

DELETE/v1/tags/{name}

Path parameters

name
string

The name of the tag to delete.

Returns

204 No Content

Upsert a tag

#

Creates a tag by name. If a tag with the same name already exists, updates its description and color. Omitted description and color fields are set to null.

Endpoint

PUT/v1/tags/{name}

Path parameters

name
string

The name of the tag to upsert.

Request body

tag
TagRequest
Required

A request to create or update a tag. The tag name is taken from the path. On conflict, omitted description and color fields are set to null.

color
string

An optional hex color for the tag (e.g. #3B82F6).

description
string

An optional description of the tag.

Returns

WrappedTagResponse

Wraps the Tag response under the tag key.

tag

A named tag in a project's resource-tag catalog.

color
string

An optional hex color for the tag (e.g. #3B82F6).

created_at
string(date-time)

The timestamp of when the tag was created.

description
string

An optional description of the tag.

name
string

The unique name of the tag within a project.

updated_at
string(date-time)

The timestamp of when the tag was last updated.

List tags

#

Returns all tags in the project's catalog, ordered by name. Tags are project-scoped and not tied to an environment.

Endpoint

GET/v1/tags

Returns

TagsResponse

A list of tags in the project's catalog.

entries

Tags, ordered by name.

color
string

An optional hex color for the tag (e.g. #3B82F6).

created_at
string(date-time)
Required

The timestamp of when the tag was created.

description
string

An optional description of the tag.

name
string
Required

The unique name of the tag within a project.

updated_at
string(date-time)
Required

The timestamp of when the tag was last updated.

Tag

#

A named tag in a project's resource-tag catalog.

Attributes

color
string

An optional hex color for the tag (e.g. #3B82F6).

created_at
string(date-time)

The timestamp of when the tag was created.

description
string

An optional description of the tag.

name
string

The unique name of the tag within a project.

updated_at
string(date-time)

The timestamp of when the tag was last updated.

New chat