Create an immutable Assurance Policy version
POST
/v1/assurance/policies/{policyId}/versionsHow 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 |
|---|---|---|---|---|
| policyId | path | string | Yes | Assurance Policy ID |
Query parameters
None.
Body schema
Content type: application/json · Optional
| Field | Type | Required | Description |
|---|---|---|---|
| label | string | No | — |
| description | string | No | Human-readable description. |
| snapshot | object | No | — |
| snapshot.name | string | No | Human-readable name. |
| snapshot.description | string | No | Human-readable description. |
| snapshot.status | draft | active | archived | No | Current lifecycle status. |
| snapshot.projectId | string | No | Project ID. |
| snapshot.definition | object | No | At least one test, evaluation, or optimization gate is required. Gate IDs are unique across all gate kinds. |
| snapshot.definition.schemaVersion | computer_agents_assurance_policy_v2 | No | — |
| snapshot.definition.testGates | object[] | No | — |
| snapshot.definition.testGates[].id | string | No | Unique identifier. |
| snapshot.definition.testGates[].testPlanId | string | Yes | — |
| snapshot.definition.testGates[].versionId | string | No | — |
| snapshot.definition.testGates[].requireCommitSha | boolean | No | — |
| snapshot.definition.testGates[].requireTrustedEvidence | boolean | No | Require control-plane verified execution-worker provenance. Disable only for an explicitly approved legacy/non-release migration policy. |
| snapshot.definition.testGates[].maxAgeHours | number | No | — |
| snapshot.definition.evaluationGates | object[] | No | — |
| snapshot.definition.evaluationGates[].id | string | No | Unique identifier. |
| snapshot.definition.evaluationGates[].evaluationId | string | Yes | — |
| snapshot.definition.evaluationGates[].versionId | string | No | — |
| snapshot.definition.evaluationGates[].minimumAverageScore | number | No | — |
| snapshot.definition.evaluationGates[].minimumPassRate | number | No | — |
| snapshot.definition.evaluationGates[].requireRunFingerprint | boolean | No | — |
| snapshot.definition.evaluationGates[].requireTrustedEvidence | boolean | No | Require control-plane verified execution-worker provenance for the exact Evaluation result set and immutable bindings. |
| snapshot.definition.evaluationGates[].requireSignedEvidence | boolean | No | Require the canonical Evaluation evidence fingerprint to carry a cryptographically verified Google Cloud KMS signature. |
| snapshot.definition.evaluationGates[].maxAgeHours | number | No | — |
| snapshot.definition.optimizationGates | object[] | No | — |
| snapshot.definition.optimizationGates[].id | string | No | Unique identifier. |
| snapshot.definition.optimizationGates[].agentId | string | Yes | Agent ID. |
| snapshot.definition.optimizationGates[].requireTargetMet | boolean | No | — |
| snapshot.definition.optimizationGates[].requirePublishedCandidate | boolean | No | — |
| snapshot.definition.optimizationGates[].maxAgeHours | number | No | — |
| snapshot.definition.approval | object | No | — |
| snapshot.definition.approval.mode | none | manual | No | — |
| snapshot.definition.budget | object | No | — |
| snapshot.definition.budget.maximumTotalCostUsd | number | No | — |
| snapshot.metadata | object | No | Free-form metadata object. |
| metadata | object | No | Free-form metadata object. |
What the API returns
Each response code below includes the documented payload shape for the ACP API.
201Saved Assurance Policy versionapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| version | object | Yes | — |
| version.id | string | Yes | Unique identifier. |
| version.assurancePolicyId | string | Yes | — |
| version.version | integer | Yes | — |
| version.label | string | Yes | — |
| version.description | string | Yes | Human-readable description. |
| version.status | saved | published | archived | Yes | Current lifecycle status. |
| version.snapshot | object | Yes | — |
| version.snapshot.name | string | Yes | Human-readable name. |
| version.snapshot.description | string | Yes | Human-readable description. |
| version.snapshot.status | draft | active | archived | Yes | Current lifecycle status. |
| version.snapshot.projectId | string | Yes | Project ID. |
| version.snapshot.definition | object | Yes | At least one test, evaluation, or optimization gate is required. Gate IDs are unique across all gate kinds. |
| version.snapshot.definition.schemaVersion | computer_agents_assurance_policy_v2 | No | — |
| version.snapshot.definition.testGates | object[] | No | — |
| version.snapshot.definition.testGates[].id | string | No | Unique identifier. |
| version.snapshot.definition.testGates[].testPlanId | string | Yes | — |
| version.snapshot.definition.testGates[].versionId | string | No | — |
| version.snapshot.definition.testGates[].requireCommitSha | boolean | No | — |
| version.snapshot.definition.testGates[].requireTrustedEvidence | boolean | No | Require control-plane verified execution-worker provenance. Disable only for an explicitly approved legacy/non-release migration policy. |
| version.snapshot.definition.testGates[].maxAgeHours | number | No | — |
| version.snapshot.definition.evaluationGates | object[] | No | — |
| version.snapshot.definition.evaluationGates[].id | string | No | Unique identifier. |
| version.snapshot.definition.evaluationGates[].evaluationId | string | Yes | — |
| version.snapshot.definition.evaluationGates[].versionId | string | No | — |
| version.snapshot.definition.evaluationGates[].minimumAverageScore | number | No | — |
| version.snapshot.definition.evaluationGates[].minimumPassRate | number | No | — |
| version.snapshot.definition.evaluationGates[].requireRunFingerprint | boolean | No | — |
| version.snapshot.definition.evaluationGates[].requireTrustedEvidence | boolean | No | Require control-plane verified execution-worker provenance for the exact Evaluation result set and immutable bindings. |
| version.snapshot.definition.evaluationGates[].requireSignedEvidence | boolean | No | Require the canonical Evaluation evidence fingerprint to carry a cryptographically verified Google Cloud KMS signature. |
| version.snapshot.definition.evaluationGates[].maxAgeHours | number | No | — |
| version.snapshot.definition.optimizationGates | object[] | No | — |
| version.snapshot.definition.optimizationGates[].id | string | No | Unique identifier. |
| version.snapshot.definition.optimizationGates[].agentId | string | Yes | Agent ID. |
| version.snapshot.definition.optimizationGates[].requireTargetMet | boolean | No | — |
| version.snapshot.definition.optimizationGates[].requirePublishedCandidate | boolean | No | — |
| version.snapshot.definition.optimizationGates[].maxAgeHours | number | No | — |
| version.snapshot.definition.approval | object | No | — |
| version.snapshot.definition.approval.mode | none | manual | No | — |
| version.snapshot.definition.budget | object | No | — |
| version.snapshot.definition.budget.maximumTotalCostUsd | number | No | — |
| version.snapshot.metadata | object | Yes | Free-form metadata object. |
| version.policyFingerprint | string | Yes | — |
| version.metadata | object | Yes | Free-form metadata object. |
| version.publishedAt | string | Yes | — |
| version.createdAt | string | Yes | ISO 8601 timestamp. |
| version.updatedAt | string | Yes | ISO 8601 timestamp. |
Create an immutable Assurance Policy version
Loading...
Response 201
Loading...