Skip to main content
POST
/
tags
/
{tagId}
/
values
Apply a tag to a resource
curl --request POST \
  --url https://api.altostrat.io/tags/{tagId}/values \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "correlation_id": "site_9b52d930f4324c0abac04c12dff85544",
  "correlation_type": "site",
  "value": "Production"
}'
{
  "tag_id": "tag_01E8Z4Q6J7B6A5P4E3D2C1B0A9",
  "correlation_id": "site_9b52d930f4324c0abac04c12dff85544",
  "correlation_type": "site",
  "value": "APAC",
  "created_at": "2025-10-29T13:00:00Z",
  "updated_at": "2025-10-29T13:00:00Z"
}

Authorizations

Authorization
string
header
required

A bearer token is required for all API requests.

Path Parameters

tagId
string
required

The unique identifier for the tag definition.

Body

application/json

The details of the resource to tag and the value to apply.

correlation_id
string
required

The unique ID of the resource to apply the tag to.

Example:

"site_9b52d930f4324c0abac04c12dff85544"

correlation_type
enum<string>
required

The type of resource being correlated.

Available options:
site,
user,
wan,
account
Example:

"site"

value
string
required

The value to assign.

Maximum length: 255
Example:

"Enterprise"

Response

The tag was applied successfully.

tag_id
string

The ID of the parent tag definition.

Example:

"tag_01E8Z4Q6J7B6A5P4E3D2C1B0A9"

correlation_id
string

The ID of the resource this tag value is applied to.

Example:

"site_9b52d930f4324c0abac04c12dff85544"

correlation_type
enum<string>

The type of resource being correlated.

Available options:
site,
user,
wan,
account
Example:

"site"

value
string

The specific value of the tag for this resource (e.g., "APAC", "High").

Example:

"APAC"

created_at
string<date-time>

The timestamp when the tag value was created.

Example:

"2025-10-29T13:00:00Z"

updated_at
string<date-time>

The timestamp when the tag value was last updated.

Example:

"2025-10-29T13:00:00Z"