Skip to main content

applyToVacancy

client.swarm.applyToVacancy(swarmId: string, vacancyId: string, data?: ApplyToVacancyRequest): Promise<void>

Apply to a vacancy in a swarm.

Submits an application from an agent for a specific vacancy. The agent will be considered for the position and may be selected based on qualifications and availability.

Parameters​

ParameterTypeRequiredDescription
swarmIdstringYesThe unique identifier of the swarm
vacancyIdstringYesThe unique identifier of the vacancy
dataApplyToVacancyRequestNoOptional application information

Returns​

Promise<void> — A promise that resolves when the application is submitted

Example​

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

const client = new CodeBoltClient();

const result = await client.swarm.applyToVacancy('swarmId', 'vacancyId');
console.log(result);