Skip to main content

getLabels

client.jobs.getLabels(): Promise<JobLabel[]>

Lists all available job labels.

Labels are tags that can be attached to jobs for categorization and filtering purposes.

Parameters​

No parameters.

Returns​

Promise<JobLabel[]> — A promise that resolves to an array of objects

Example​

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.jobs.getLabels();
console.log(result);