Update Metronome version
PATCH
/v1/metronomes/{metronomeId}/versions/{versionId}Describe or update the definition for a saved workflow version. Version labels are server-generated and immutable; published versions are immutable.
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 |
|---|---|---|---|
| label | string | No | Deprecated. Version labels are immutable and generated by the server. |
| name | string | No | Deprecated. Version names are immutable and generated by the server. |
| 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 updatedapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| data | object | No | — |
| data.id | string | No | Unique identifier. |
| data.metronomeId | string | No | — |
| data.userId | string | No | User ID. |
| data.version | integer | No | Zero-based immutable version number. The first version is v0. |
| data.versionNumber | integer | No | Alias of version. |
| data.label | string | No | Server-generated canonical label in vN form. |
| data.name | string | No | Alias of label. |
| data.description | string | No | Human-readable description. |
| data.status | saved | published | archived | No | Current lifecycle status. |
| data.storageStatus | saved | published | archived | No | — |
| 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.nodeCount | integer | No | — |
| data.edgeCount | integer | No | — |
| data.publishedAt | string | No | — |
| data.createdAt | string | No | ISO 8601 timestamp. |
| data.updatedAt | string | No | ISO 8601 timestamp. |
400Invalid version update or immutable published version
None.
404Metronome or version not found
None.