Queue a planned fine-tuning job
POST
/v1/fine-tuning/jobs/{jobId}/queueIdempotently transitions a provisioned planned optimization job to queued and creates its execution dispatch. This is the explicit handoff used after upstream Test and Evaluation gates pass.
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
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| jobId | path | string | Yes | — |
Query parameters
None.
Body schema
Content type: application/json · Optional
| Field | Type | Required | Description |
|---|---|---|---|
| source | string | No | — |
| queueWhenCapacityUnavailable | boolean | No | Persist this execution in Batches when runtime capacity is unavailable. Defaults to true on local appliances and false on cloud deployments. |
What the API returns
Each response code below includes the documented payload shape for the ACP API.
200Job was already queued or executingapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| job | object | Yes | — |
| job.schemaVersion | integer | No | — |
| job.kind | agent_optimization | No | — |
| job.id | string | Yes | Unique identifier. |
| job.name | string | No | Human-readable name. |
| job.agentId | string | Yes | Agent ID. |
| job.targetAgentId | string | No | — |
| job.environmentId | string | No | Computer ID. |
| job.computerId | string | No | — |
| job.evaluationSetIds | string[] | Yes | — |
| job.instructions | string | No | — |
| job.status | planned | queued | running | verifying | completed | failed | cancelled | Yes | Current lifecycle status. |
| job.phase | string | No | — |
| job.threadId | string | No | Thread ID. |
| job.createdAgentVersionId | string | No | — |
| job.beforeScore | number | No | — |
| job.afterScore | number | No | — |
| job.improvementScore | number | No | — |
| job.costUsd | number | No | — |
| job.costCt | number | No | — |
| job.costTokens | number | No | — |
| job.evaluationRuns | object[] | No | — |
| job.metadata | object | No | Free-form metadata object. |
| job.createdAt | string | No | ISO 8601 timestamp. |
| job.updatedAt | string | No | ISO 8601 timestamp. |
| job.completedAt | string | No | ISO 8601 timestamp. |
| queued | true | Yes | — |
| alreadyQueued | boolean | No | — |
202Planned job was queued or durably deferred to Batchesapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| job | object | Yes | — |
| job.schemaVersion | integer | No | — |
| job.kind | agent_optimization | No | — |
| job.id | string | Yes | Unique identifier. |
| job.name | string | No | Human-readable name. |
| job.agentId | string | Yes | Agent ID. |
| job.targetAgentId | string | No | — |
| job.environmentId | string | No | Computer ID. |
| job.computerId | string | No | — |
| job.evaluationSetIds | string[] | Yes | — |
| job.instructions | string | No | — |
| job.status | planned | queued | running | verifying | completed | failed | cancelled | Yes | Current lifecycle status. |
| job.phase | string | No | — |
| job.threadId | string | No | Thread ID. |
| job.createdAgentVersionId | string | No | — |
| job.beforeScore | number | No | — |
| job.afterScore | number | No | — |
| job.improvementScore | number | No | — |
| job.costUsd | number | No | — |
| job.costCt | number | No | — |
| job.costTokens | number | No | — |
| job.evaluationRuns | object[] | No | — |
| job.metadata | object | No | Free-form metadata object. |
| job.createdAt | string | No | ISO 8601 timestamp. |
| job.updatedAt | string | No | ISO 8601 timestamp. |
| job.completedAt | string | No | ISO 8601 timestamp. |
| queued | true | Yes | — |
| alreadyQueued | boolean | No | — |
409Job is not in a queueable state
None.