Skip to main content
Infrastructure/Assets
POSTInfrastructureSince 1.0SynchronousAuth Required

CreateAssetLabelKey

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

Execution Availability

Try It Out

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

Request Inputs

Body Fields

  • keyNameStringRequired

    Internal key name used in label expressions (snake_case recommended)

    Example: cost_center

  • displayNameStringRequired

    User-facing display name for this label key

    Example: Cost Center

  • descriptionStringRequired

    Description explaining the purpose of this label key

    Example: Identifies the cost center responsible for this asset

  • valueSuggestionsListRequired

    Value suggestions

    Example: item1,item2

Responses

200 OK

On success, this API returns the following response structure.

  • dataObject

    The data value

    Example: (nested object)

Endpoint

POST/api/v1/assets/label-keys

/api/v1/assets/label-keys

Operation ID

CreateAssetLabelKey

Permalink

Request Example

curl -X POST '{host}/api/v1/assets/label-keys' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"keyName":"cost_center","displayName":"Cost Center","description":"Identifies the cost center responsible for this asset","valueSuggestions":"item1,item2"}'

Response Example

200
{
  "data": null
}

Change History

This API has no change history records yet.

View all change history