Skip to main content

Labels

TypeBase PathTrigger Name
REST resource~{realm}/labels/labels

This resource holds all user-defined labels, which can be attached to almost any other entity via their labels array.

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

Endpoints

NameMethodRelative PathPayloadResponseDescription
addLabelPOST~{realm}/labels/LabelStored_LabelAdds a new label to the list.
listLabelsGET~{realm}/labels/N/AStored_Label[]Retrieves a list of labels.
getLabelGET~{realm}/labels/{id}N/AStored_LabelRetrieves a label.
putLabelPUT~{realm}/labels/{id}LabelStored_LabelReplaces a label.
updateLabelPATCH~{realm}/labels/{id}Partial_LabelStored_LabelUpdates specified label fields.
removeLabelDELETE~{realm}/labels/{id}N/AN/ADeletes a label.

Permissions

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

Entities

Interface Label

interface Label {
'name': string;
'label-category': number;
'id'?: number;
'created'?: DateTime;
'updated'?: DateTime;
'deleted'?: DateTime;
'updated-by'?: number;
'updated-from'?: number;
'tags'?: string[];
'labels'?: number[];
}
PropertyData TypeDescription
nameStringThe label name. Must be unique.
label-categoryInt64ID of the LabelCategory the label belongs to.
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, labels can be labelled too.