Create labels
const labels = [ { externalId: 'PUMP', name: "Pump" }, { externalId: 'ROTATING_EQUIPMENT', name: 'Rotating equipment', description: 'Asset with rotating parts' } ]; const createdLabels = await client.labels.create(labels);
Delete labels
await client.labels.delete([{externalId: 'PUMP'}, {externalId: 'VALVE'}]);
List labels
const labels = await client.labels.list({ filter: { externalIdPrefix: 'Pu'}});
Create labels
const labels = [ { externalId: 'PUMP', name: "Pump" }, { externalId: 'ROTATING_EQUIPMENT', name: 'Rotating equipment', description: 'Asset with rotating parts' } ]; const createdLabels = await client.labels.create(labels);