Skip to main content

acceptSplitProposal

client.jobs.acceptSplitProposal(id: string, proposalId: string, data?: AcceptSplitProposalRequest): Promise<Job[]>

Accepts a split proposal, executing the job decomposition.

Approves the proposal and splits the original job into the proposed sub-jobs. The original job's status may be updated to reflect the split.

Parameters​

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the parent job
proposalIdstringYesThe unique identifier of the split proposal to accept
dataAcceptSplitProposalRequestNoOptional acceptance parameters for additional context

Returns​

Promise<Job[]> — A promise that resolves to an array of the newly created sub- objects

Example​

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

const client = new CodeBoltClient();

const result = await client.jobs.acceptSplitProposal('id', 'proposalId');
console.log(result);