Publish Metronome version
POST
/v1/metronomes/{metronomeId}/versions/{versionId}/publishSelect the version that live triggers should execute. Callers may update the selected version definition and optional description in the same request before publishing.
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 |
|---|---|---|---|---|
| metronomeId | path | string | Yes | Metronome workflow ID |
| versionId | path | string | Yes | Metronome workflow version ID |
Query parameters
None.
Body schema
Content type: application/json · Optional
| Field | Type | Required | Description |
|---|---|---|---|
| description | string | No | Human-readable description. |
| definition | object | No | — |
| definition.nodes | object[] | No | — |
| definition.nodes[].id | string | No | Unique identifier. |
| definition.nodes[].type | string | No | — |
| definition.nodes[].position | object | No | — |
| definition.nodes[].data | object | No | — |
| definition.nodes[].data.kind | trigger | condition | action | imagine | function | database | ticket | metronome | loop | end | note | No | — |
| definition.nodes[].data.subtype | string | No | — |
| definition.nodes[].data.label | string | No | — |
| definition.nodes[].data.description | string | No | Human-readable description. |
| definition.nodes[].data.config | object | No | — |
| definition.edges | object[] | No | — |
| definition.edges[].id | string | No | Unique identifier. |
| definition.edges[].source | string | No | — |
| definition.edges[].target | string | No | — |
| definition.edges[].sourceHandle | string | No | — |
| definition.edges[].targetHandle | string | No | — |
| definition.edges[].label | string | No | — |
| definition.executionRecoveryPolicy | object | No | — |
| definition.executionRecoveryPolicy.schemaVersion | computer_agents_metronome_recovery_policy_v1 | Yes | — |
| definition.executionRecoveryPolicy.enforcement | checkpointed | Yes | — |
| definition.executionRecoveryPolicy.inDoubtDefault | pause | Yes | — |
| definition.executionRecoveryPolicy.checkpointMaxBytes | integer | Yes | — |
What the API returns
Each response code below includes the documented payload shape for the ACP API.
200Metronome version publishedapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| data | object | No | — |
| data.id | string | No | Unique identifier. |
| data.userId | string | No | User ID. |
| data.organizationId | string | No | — |
| data.createdByUserId | string | No | — |
| data.name | string | No | Human-readable name. |
| data.description | string | No | Human-readable description. |
| data.status | draft | active | paused | archived | No | Current lifecycle status. |
| data.definition | object | No | — |
| data.definition.nodes | object[] | No | — |
| data.definition.nodes[].id | string | No | Unique identifier. |
| data.definition.nodes[].type | string | No | — |
| data.definition.nodes[].position | object | No | — |
| data.definition.nodes[].data | object | No | — |
| data.definition.nodes[].data.kind | trigger | condition | action | imagine | function | database | ticket | metronome | loop | end | note | No | — |
| data.definition.nodes[].data.subtype | string | No | — |
| data.definition.nodes[].data.label | string | No | — |
| data.definition.nodes[].data.description | string | No | Human-readable description. |
| data.definition.nodes[].data.config | object | No | — |
| data.definition.edges | object[] | No | — |
| data.definition.edges[].id | string | No | Unique identifier. |
| data.definition.edges[].source | string | No | — |
| data.definition.edges[].target | string | No | — |
| data.definition.edges[].sourceHandle | string | No | — |
| data.definition.edges[].targetHandle | string | No | — |
| data.definition.edges[].label | string | No | — |
| data.definition.executionRecoveryPolicy | object | No | — |
| data.definition.executionRecoveryPolicy.schemaVersion | computer_agents_metronome_recovery_policy_v1 | Yes | — |
| data.definition.executionRecoveryPolicy.enforcement | checkpointed | Yes | — |
| data.definition.executionRecoveryPolicy.inDoubtDefault | pause | Yes | — |
| data.definition.executionRecoveryPolicy.checkpointMaxBytes | integer | Yes | — |
| data.nodes | object[] | No | — |
| data.nodes[].id | string | No | Unique identifier. |
| data.nodes[].type | string | No | — |
| data.nodes[].position | object | No | — |
| data.nodes[].data | object | No | — |
| data.nodes[].data.kind | trigger | condition | action | imagine | function | database | ticket | metronome | loop | end | note | No | — |
| data.nodes[].data.subtype | string | No | — |
| data.nodes[].data.label | string | No | — |
| data.nodes[].data.description | string | No | Human-readable description. |
| data.nodes[].data.config | object | No | — |
| data.edges | object[] | No | — |
| data.edges[].id | string | No | Unique identifier. |
| data.edges[].source | string | No | — |
| data.edges[].target | string | No | — |
| data.edges[].sourceHandle | string | No | — |
| data.edges[].targetHandle | string | No | — |
| data.edges[].label | string | No | — |
| data.triggerSummary | string | No | — |
| data.lastRunAt | string | No | — |
| data.publishedAt | string | No | — |
| data.runsToday | integer | No | — |
| data.waitingApprovals | integer | No | — |
| data.metadata | object | No | Free-form metadata object. |
| data.createdAt | string | No | ISO 8601 timestamp. |
| data.updatedAt | string | No | ISO 8601 timestamp. |