Skip to main content

createPheromoneType

client.jobs.createPheromoneType(data: CreatePheromoneTypeRequest): Promise<PheromoneType>

Creates a new pheromone type definition.

Registers a new category of pheromone that can subsequently be deposited on jobs. Pheromone types are system-wide and shared across all jobs.

Parameters

ParameterTypeRequiredDescription
dataCreatePheromoneTypeRequestYesPheromone type creation payload including name and configuration

Returns

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

Example

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

const client = new CodeBoltClient();

const result = await client.jobs.createPheromoneType(/* CreatePheromoneTypeRequest */);
console.log(result);