Skip to main content
Infrastructure/Agents

CreateLabelTemplate

Create a reusable label template that can be applied to multiple agents

POST/api/v1/agent/label-templates

Operation ID

CreateLabelTemplate

Since

1.0.0

Execution Mode

Synchronous

Auth Context

Auth Required

Auth Context

Send these values as request headers when calling this API.

AuthorizationstringRequired

Bearer Token

X-Tenant-IDstring

X-Tenant-ID

Request Inputs

application/json

Body Fields

  • name
    StringRequired

    Human-readable name for the new label template

    Example: production-baseline

  • description
    StringRequired

    Description of the template's intended usage

    Example: Standard labels for production agents

  • labels
    LinkedHashMapRequired

    Key-value labels attached to this resource

    Example: (nested object)

Responses

200 OK
200 OK

On success, this API returns the following response structure.

  • id
    String

    Unique identifier of the label template

    Example: tmpl-001-abc

  • name
    String

    Human-readable name of the label template

    Example: production-baseline

  • description
    String

    Description of the label template's intended usage

    Example: Standard labels for production agents

  • labels
    LinkedHashMap

    Key-value labels attached to this resource

    Example: (nested object)

  • createdAt
    String

    Created at

    Example: 2026-01-15T08:00:00Z