Publish Metronome version
POST
/v1/metronomes/{metronomeId}/versions/{versionId}/publishSelect the version that live triggers should execute.
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
This endpoint does not require a request body.
None.
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.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.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. |