Skip to main content
Infrastructure/Agents
POSTAgentSince 1.0SynchronousAuth Required

CreateLabelTemplate

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

Execution Availability

Try It Out

Submit a mock request using the current auth context and example-driven inputs.

Request Inputs

Body Fields

  • nameStringRequired

    Human-readable name for the new label template

    Example: production-baseline

  • descriptionStringRequired

    Description of the template's intended usage

    Example: Standard labels for production agents

  • labelsLinkedHashMapRequired

    Key-value labels attached to this resource

    Example: (nested object)

Responses

200 OK

On success, this API returns the following response structure.

  • idString

    Unique identifier of the label template

    Example: tmpl-001-abc

  • nameString

    Human-readable name of the label template

    Example: production-baseline

  • descriptionString

    Description of the label template's intended usage

    Example: Standard labels for production agents

  • labelsLinkedHashMap

    Key-value labels attached to this resource

    Example: (nested object)

  • createdAtString

    Created at

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

Endpoint

POST/api/v1/agent/label-templates

/api/v1/agent/label-templates

Operation ID

CreateLabelTemplate

Permalink

Request Example

curl -X POST '{host}/api/v1/agent/label-templates' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"name":"production-baseline","description":"Standard labels for production agents","labels":"(nested object)"}'

Response Example

200
{
  "id": "tmpl-001-abc",
  "name": "production-baseline",
  "description": "Standard labels for production agents",
  "labels": null,
  "createdAt": "example"
}

Change History

This API has no change history records yet.

View all change history