With labels you can create a predefined set of managed terms that you can use to annotate and group assets, files, and relationships. You can organize labels in a way that makes sense in your business and use them to make it easier to find what you want. For example, you can create a label called pump and apply it to all asset resources that represent pumps, and then filter assets to see only pumps. You can also use labels to define and manage the available types for relationship resources. For example, you can define labels like these and use them as relationship types:Documentation Index
Fetch the complete documentation index at: https://docs.cognite.com/llms.txt
Use this file to discover all available pages before exploring further.
flowsTo- to describe the flow between assets.belongsTo- to describe that a file resource belongs to a particular asset resource.isParentOf- to build a hierarchy of assets.implements- to describe that a physical item implements a functional asset at a specific point in time.
Create a label
To create a label, give it an ID and a name. The label ID must be anexternalId.
Example: create labels
Example: create labels
Attach a label when creating a resource
To attach a label when you create a resource, reference the labels through theexternalId of the label.
Example: create an asset with labels
Example: create an asset with labels
You can attach a maximum of 10 labels to each resource.
Attach or remove labels on an existing resource
To attach or remove labels to an existing resource, reference the labels through theexternalId of the label when you update the resource.
Example: attach and remove labels
Example: attach and remove labels
Filter resources by labels
To filter assets by a label, reference the label through theexternalId when you filter.
Example: filter assets by labels
Example: filter assets by labels
To retrieve only assets that have the label To retrieve only assets that have the label To retrieve only assets that have the labels
rotating-equipment:rotating-equipment or pump:rotating-equipment and pump:Delete labels
To delete a label, specify theexternalId of the label to delete.
Example: delete a label
Example: delete a label