Skip to main content

createLabel

client.jobs.createLabel(data: CreateLabelRequest): Promise<JobLabel>

Creates a new job label.

Registers a label that can be attached to jobs for categorization. Labels are system-wide and reusable across all jobs.

Parameters

ParameterTypeRequiredDescription
dataCreateLabelRequestYesLabel creation payload including name and optional color

Returns

Promise<JobLabel> — A promise that resolves to the newly created

Example

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

const client = new CodeBoltClient();

const result = await client.jobs.createLabel(/* CreateLabelRequest */);
console.log(result);