Skip to main content

LabelCategories

TypeBase PathTrigger Name
REST resource~{realm}/label-categories/label-categories

Labels are grouped into label categories and this resource describes those categories. In some other systems, a label or tag might be represented as a key/value pair; here, the label category can be thought of as the key while the actual label is the value.

See Labels & Extended Properties for more information about labels and how they can be used.

Endpoints

NameMethodRelative PathPayloadResponseDescription
addLabelCategoryPOST~{realm}/label-categories/LabelCategoryStored_LabelCategoryAdds a new label category to the list.
listLabelCategoriesGET~{realm}/label-categories/N/AStored_LabelCategory[]Retrieves a list of label categories.
getLabelCategoryGET~{realm}/label-categories/{id}N/AStored_LabelCategoryRetrieves a label category.
putLabelCategoryPUT~{realm}/label-categories/{id}LabelCategoryStored_LabelCategoryReplaces a label category.
updateLabelCategoryPATCH~{realm}/label-categories/{id}Partial_LabelCategoryStored_LabelCategoryUpdates specified label category fields.
removeLabelCategoryDELETE~{realm}/label-categories/{id}N/AN/ADeletes a label category.

Permissions

PermissionDescription
edit-labelsClient is allowed to add new label categories and to modify or delete existing label categories.
show-labelsClient is allowed to query the label category list and to fetch individual label categories.

Entities

Interface LabelCategory

interface LabelCategory {
'name': string;
'resources'?: string[];
'id'?: number;
'created'?: DateTime;
'updated'?: DateTime;
'deleted'?: DateTime;
'updated-by'?: number;
'updated-from'?: number;
'tags'?: string[];
'labels'?: number[];
}
PropertyData TypeDescription
nameStringThe label category name. Must be unique.
resourcesString[]?An optional list of resources where this label category is applicable. Resource identifiers are the same as used by queries in Triggers and EventStreams.
idInt64?The resource ID of this entity.
createdDateTime?Date and time when this entity was first created.
updatedDateTime?Date and time when this entity was last modified.
deletedDateTime?Date and time when this entity was deleted.
updated-byInt64?ID of User who last modified this entity.
updated-fromInt64?ID of Till (trusted device) which last modified this entity.
labelsInt64[]?A list of Label IDs associated with this entity—yes, label categories can be labelled too.