Skip to main content

createVacancy

client.swarm.createVacancy(swarmId: string, data: CreateVacancyRequest): Promise<SwarmVacancy>

Create a vacancy in a swarm.

Creates a new vacancy that agents can apply for. Vacancies represent open positions within teams or roles that need to be filled by qualified agents.

Parameters

ParameterTypeRequiredDescription
swarmIdstringYesThe unique identifier of the swarm
dataCreateVacancyRequestYesThe vacancy creation information

Returns

Promise<SwarmVacancy> — A promise that resolves to the created SwarmVacancy object

Example

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

const client = new CodeBoltClient();

const result = await client.swarm.createVacancy('swarmId', /* CreateVacancyRequest */);
console.log(result);