Labels

Create label definitions.

Required capabilities: labelsAcl:WRITE

Creates label definitions that can be used across different resource types. The label definitions are uniquely identified by their external id.

Securityoidc-token or oauth2-client-credentials or oauth2-open-industrial-data or oauth2-auth-code
Request
Request Body schema: application/json
required

List of label definitions to create

required
Array of objects (ExternalLabelDefinition) [ 1 .. 1000 ] items unique
Responses
201

A list of label definitions.

400

The response for a failed request.

post/labels
Request samples
application/json
{
  • "items": [
    ]
}
Response samples
application/json
{
  • "items": [
    ]
}

Filter labels

Required capabilities: labelsAcl:READ

Use advanced filtering options to find label definitions.

Securityoidc-token or oauth2-client-credentials or oauth2-open-industrial-data or oauth2-auth-code
Request
Request Body schema: application/json
object (Filter)

Filter on labels definitions with strict matching.

cursor
string
limit
integer [ 1 .. 1000 ]
Default: 100

Limits the number of results to return.

Responses
200

A list of label definitions.

400

The response for a failed request.

post/labels/list
Request samples
application/json
{
  • "filter": {
    },
  • "cursor": "4zj0Vy2fo0NtNMb229mI9r1V3YG5NBL752kQz1cKtwo",
  • "limit": 100
}
Response samples
application/json
{
  • "items": [
    ],
  • "nextCursor": "string"
}

Retrieve labels

Required capabilities: labelsAcl:READ

Retrieve labels using their external ids

Securityoidc-token or oauth2-client-credentials or oauth2-open-industrial-data or oauth2-auth-code
Request
Request Body schema: application/json
required
Array of objects (Select by ExternalId) [ 1 .. 1000 ] items
ignoreUnknownIds
boolean
Default: false

Ignore IDs and external IDs that are not found

Responses
200

A list of label definitions.

400

The response for a failed request.

post/labels/byids
Request samples
application/json
{
  • "items": [
    ],
  • "ignoreUnknownIds": false
}
Response samples
application/json
{
  • "items": [
    ],
  • "nextCursor": "string"
}

Delete label definitions.

Required capabilities: labelsAcl:WRITE

Delete all the label definitions specified by their external ids. The resource items that have the corresponding label attached remain unmodified. It is up to the client to clean up the resource items from their attached labels if necessary.

Securityoidc-token or oauth2-client-credentials or oauth2-open-industrial-data or oauth2-auth-code
Request
Request Body schema: application/json
required

List of external ids of label definitions to delete.

required
Array of objects (LabelDefinitionExternalId) [ 1 .. 1000 ] items unique
Responses
200

Empty response.

400

The response for a failed request.

post/labels/delete
Request samples
application/json
{
  • "items": [
    ]
}
Response samples
application/json
{ }