Release a held or failed Batch to the queue

POST/v1/batch-jobs/{batchJobId}/start

How to call this endpoint

Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.

Path, query, and header parameters

These parameters control which ACP object the endpoint acts on and how the request is processed.

Path parameters
NameLocationTypeRequiredDescription
batchJobIdpathstringYes
Query parameters
None.

Body schema

This endpoint does not require a request body.

None.

What the API returns

Each response code below includes the documented payload shape for the ACP API.

202Batch queuedapplication/json
FieldTypeRequiredDescription
jobobjectYes
job.idstringYesUnique identifier.
job.userIdstringYesUser ID.
job.organizationIdstringNo
job.createdByUserIdstringNo
job.namestringYesHuman-readable name.
job.descriptionstringYesHuman-readable description.
job.targetKindthread_run | metronome_run | evaluation_run | agent_optimization | project_ticket_actionYes
job.targetResourceIdstringNo
job.targetVersionIdstringNo
job.definitionobjectYesNative target definition. A Thread Batch may reference an existing thread with threadId (or targetResourceId), or create a new thread when released by providing message and optional agentId, environmentId/computerId, projectId, title, attachments, skills, reasoning effort, and cost boundaries.
job.startPolicymanual | stay_on_shelf | when_capacity_availableYesmanual is a one-shot shelf job started explicitly; stay_on_shelf is also started explicitly but returns to the bottom of its shelf after every successful execution; when_capacity_available is automatically released by the scheduler when runtime capacity permits.
job.statusheld | queued | dispatching | running | succeeded | failed | cancelledYesCurrent lifecycle status.
job.queueLanestringYes
job.priorityintegerYes
job.positionintegerYes
job.maxAttemptsintegerYes
job.attemptCountintegerYes
job.executionGenerationintegerYes
job.availableAtstringYes
job.waitReasonstringNo
job.nativeResourceTypestringNo
job.nativeResourceIdstringNo
job.sourceProjectIdstringNo
job.sourceTicketIdstringNo
job.permissionSetstringYes
job.idempotencyKeystringNo
job.leaseOwnerstringNo
job.leaseExpiresAtstringNo
job.heartbeatAtstringNo
job.lastErrorstringNo
job.metadataobjectYesFree-form metadata object.
job.createdAtstringYesISO 8601 timestamp.
job.updatedAtstringYesISO 8601 timestamp.
job.queuedAtstringNo
job.startedAtstringNoISO 8601 timestamp.
job.completedAtstringNoISO 8601 timestamp.
idempotentReplaybooleanNo
409Invalid state transition
None.
Release a held or failed Batch to the queue
Loading...
Response 202
Loading...
See the ACP quickstart and SDK flow