Activate an entirely staged Project Delivery topology
POST
/v1/release-control/project-delivery-promotions/{promotionId}/activateSwitches staged Function revisions to traffic and publishes the exact Function and Metronome candidate versions. The operation fails closed unless every staged resource still matches the sealed authorization.
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 |
|---|---|---|---|---|
| promotionId | path | string | Yes | — |
Query parameters
None.
Body schema
Content type: application/json · Optional
None.
What the API returns
Each response code below includes the documented payload shape for the ACP API.
200Activated or idempotently reused topology promotionapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| promotion | object | Yes | — |
| promotion.id | string | Yes | Unique identifier. |
| promotion.object | project_delivery_release_promotion | Yes | — |
| promotion.status | ready_for_deployment | ready_for_activation | activating | released | failed | cancelled | Yes | Current lifecycle status. |
| promotion.authorizationId | string | Yes | — |
| promotion.topologyCandidateId | string | Yes | — |
| promotion.projectId | string | Yes | Project ID. |
| promotion.deliveryExecutionId | string | Yes | — |
| promotion.candidateManifestFingerprint | string | Yes | — |
| promotion.releaseFingerprint | string | Yes | — |
| promotion.authorizationEvidenceFingerprint | string | Yes | — |
| promotion.idempotencyKey | string | Yes | — |
| promotion.requestFingerprint | string | Yes | — |
| promotion.receiptFingerprint | string | Yes | — |
| promotion.revision | integer | Yes | — |
| promotion.error | object | Yes | — |
| promotion.error.code | string | Yes | — |
| promotion.error.message | string | Yes | Message text. |
| promotion.activationStartedAt | string | Yes | — |
| promotion.completedAt | string | Yes | ISO 8601 timestamp. |
| promotion.createdAt | string | Yes | ISO 8601 timestamp. |
| promotion.updatedAt | string | Yes | ISO 8601 timestamp. |
| promotion.resources | object[] | Yes | — |
| promotion.resources[].id | string | Yes | Unique identifier. |
| promotion.resources[].resourceCandidateId | string | Yes | — |
| promotion.resources[].key | string | Yes | — |
| promotion.resources[].targetKind | function | metronome | Yes | — |
| promotion.resources[].targetResourceId | string | Yes | — |
| promotion.resources[].candidateVersionId | string | Yes | — |
| promotion.resources[].candidateFingerprint | string | Yes | — |
| promotion.resources[].activatedVersionId | string | Yes | — |
| promotion.resources[].activatedFingerprint | string | Yes | — |
| promotion.resources[].status | pending | deploying | staged | activated | failed | cancelled | Yes | Current lifecycle status. |
| promotion.resources[].deploymentAttemptId | string | Yes | — |
| promotion.resources[].deploymentId | string | Yes | — |
| promotion.resources[].deploymentRevision | string | Yes | — |
| promotion.resources[].serviceName | string | Yes | — |
| promotion.resources[].region | string | Yes | — |
| promotion.resources[].previousDeploymentRevision | string | Yes | — |
| promotion.resources[].stagedAt | string | Yes | — |
| promotion.resources[].activatedAt | string | Yes | — |
| promotion.resources[].deploymentRequest | object | Yes | — |
| promotion.resources[].deploymentRequest.method | POST | Yes | — |
| promotion.resources[].deploymentRequest.path | string | Yes | Workspace-relative file path. |
| promotion.resources[].deploymentRequest.body | object | Yes | — |
| promotion.resources[].deploymentRequest.body.versionId | string | Yes | — |
| promotion.resources[].deploymentRequest.body.projectDeliveryPromotionId | string | Yes | — |
| promotion.resources[].deploymentRequest.body.projectDeliveryResourceCandidateId | string | Yes | — |
| promotion.resources[].error | object | Yes | — |
| promotion.resources[].error.code | string | Yes | — |
| promotion.resources[].error.message | string | Yes | Message text. |
| promotion.events | object[] | No | — |
| promotion.events[].sequence | integer | Yes | — |
| promotion.events[].id | string | Yes | Unique identifier. |
| promotion.events[].type | string | Yes | — |
| promotion.events[].actorUserId | string | Yes | — |
| promotion.events[].payload | object | Yes | — |
| promotion.events[].createdAt | string | Yes | ISO 8601 timestamp. |
| receipt | object | No | — |
| receipt.schemaVersion | computer_agents_project_delivery_promotion_receipt_v2 | Yes | — |
| receipt.promotionId | string | Yes | — |
| receipt.authorizationId | string | Yes | — |
| receipt.topologyCandidateId | string | Yes | — |
| receipt.candidateManifestFingerprint | string | Yes | — |
| receipt.releaseFingerprint | string | Yes | — |
| receipt.authorizationEvidenceFingerprint | string | Yes | — |
| receipt.resources | object[] | Yes | — |
| receipt.resources[].resourceCandidateId | string | Yes | — |
| receipt.resources[].resourceKey | string | Yes | — |
| receipt.resources[].targetKind | function | metronome | Yes | — |
| receipt.resources[].targetResourceId | string | Yes | — |
| receipt.resources[].candidateVersionId | string | Yes | — |
| receipt.resources[].candidateFingerprint | string | Yes | — |
| receipt.resources[].activatedVersionId | string | Yes | — |
| receipt.resources[].activatedFingerprint | string | Yes | — |
| receipt.resources[].deploymentId | string | Yes | — |
| receipt.resources[].deploymentRevision | string | Yes | — |
| receipt.activatedAt | string | Yes | — |
| activated | boolean | Yes | — |
| alreadyReleased | boolean | Yes | — |
409Promotion resources are not fully staged or their authority has drifted
None.
Activate an entirely staged Project Delivery topology
Loading...
Response 200
Loading...