Create an immutable Optimization Campaign
POST
/v1/optimization-campaignsPins the exact published base, trusted baseline Evaluation, producer, Test Plan, Assurance Policy, budgets, convergence criteria, and publication policy. Creation does not start work.
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
None.
Query parameters
None.
Body schema
Content type: application/json · Required
| Field | Type | Required | Description |
|---|---|---|---|
| contract | object | Yes | — |
| contract.schemaVersion | computer_agents_optimization_campaign_v1 | Yes | — |
| contract.name | string | Yes | Human-readable name. |
| contract.projectId | string | No | Project ID. |
| contract.objective | object | Yes | — |
| contract.objective.statement | string | Yes | — |
| contract.objective.metric | average_score | pass_rate | Yes | — |
| contract.objective.target | number | Yes | — |
| contract.objective.minimumImprovement | number | Yes | — |
| contract.objective.maximumRegression | number | Yes | — |
| contract.target | object | Yes | — |
| contract.target.kind | function | metronome | Yes | — |
| contract.target.resourceKey | string | Yes | — |
| contract.target.resourceId | string | Yes | — |
| contract.target.baseVersionId | string | Yes | — |
| contract.target.baseFingerprint | string | Yes | — |
| contract.producer | object | Yes | — |
| contract.producer.kind | agent | Yes | — |
| contract.producer.adapterId | string | Yes | — |
| contract.producer.agentId | string | Yes | Agent ID. |
| contract.producer.agentVersionId | string | Yes | — |
| contract.producer.environmentId | string | Yes | Computer ID. |
| contract.evidence | object | Yes | — |
| contract.evidence.evaluationId | string | Yes | — |
| contract.evidence.evaluationVersionId | string | Yes | — |
| contract.evidence.baselineEvaluationRunId | string | Yes | — |
| contract.evidence.testPlanId | string | Yes | — |
| contract.evidence.testPlanVersionId | string | Yes | — |
| contract.evidence.assurancePolicyId | string | Yes | — |
| contract.evidence.assurancePolicyVersionId | string | Yes | — |
| contract.evidence.environmentId | string | No | Computer ID. |
| contract.limits | object | Yes | — |
| contract.limits.maximumAttempts | integer | Yes | — |
| contract.limits.plateauAttempts | integer | Yes | — |
| contract.limits.maximumTotalCostUsd | number | Yes | — |
| contract.limits.maximumDurationMinutes | integer | Yes | — |
| contract.limits.maximumTransientRetries | integer | Yes | — |
| contract.publication | object | Yes | — |
| contract.publication.mode | manual | auto_on_target | Yes | — |
| contract.publication.deployAfterPromotion | boolean | Yes | — |
| contract.idempotencyKey | string | Yes | — |
What the API returns
Each response code below includes the documented payload shape for the ACP API.
200Existing idempotent campaign
None.
201Campaign created without starting execution
None.
400Invalid closed-schema campaign contract
None.
409Stale base
None.
Create an immutable Optimization Campaign
Loading...
Response 200
Loading...