Skip to main content
Infrastructure/Infrastructure Misc

CreateResourceLabelKey

Register a new custom label key for use in resource labeling.

POST/api/v1/resource-label-keys

Operation ID

CreateResourceLabelKey

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

  • keyName
    StringRequired

    Internal key name used in label expressions (snake_case recommended)

    Example: cost_center

  • displayName
    StringRequired

    User-facing display name for this label key

    Example: Cost Center

  • description
    StringRequired

    Description explaining the purpose of this label key

    Example: Identifies the cost center responsible for this resource

  • valueSuggestions
    ListRequired

    Value suggestions

    Example: item1,item2

Responses

200 OK
200 OK

On success, this API returns the following response structure.

  • data
    Object

    The data value

    Example: (nested object)