Queue an isolated Metronome node or slice test
POST
/v1/metronomes/{metronomeId}/test-runsPersist an immutable workflow snapshot and asynchronously execute only the selected node or connected slice.
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 |
Query parameters
None.
Body schema
Content type: application/json · Required
| Field | Type | Required | Description |
|---|---|---|---|
| selection | object | Yes | — |
| selection.type | node | slice | Yes | — |
| selection.nodeId | string | No | — |
| selection.nodeIds | string[] | No | — |
| selection.boundaryContext | object | No | — |
| input | object | No | — |
| inputs | object | No | — |
| fixture | object | No | — |
| 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 | — |
| versionId | string | No | — |
| idempotencyKey | string | No | — |
| maxAttempts | integer | No | — |
| timeoutMs | integer | No | — |
| pinnedAgentVersions | object | No | — |
What the API returns
Each response code below includes the documented payload shape for the ACP API.
202Metronome test run acceptedapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| object | string | Yes | — |
| data | object | Yes | — |
| data.id | string | No | Unique identifier. |
| data.metronomeId | string | No | — |
| data.userId | string | No | User ID. |
| data.organizationId | string | No | — |
| data.createdByUserId | string | No | — |
| data.triggerType | string | No | — |
| data.versionId | string | No | — |
| data.snapshotId | string | No | Snapshot ID. |
| data.runKind | workflow | node_test | slice_test | No | — |
| data.invocationSource | string | No | — |
| data.executionSelection | object | No | — |
| data.effectMode | execute | preview | No | — |
| data.initiatedByUserId | string | No | — |
| data.requestFingerprint | string | No | — |
| data.triggerEventId | string | No | — |
| data.idempotencyKey | string | No | — |
| data.status | queued | running | waiting_approval | paused | completed | failed | cancelled | No | Current lifecycle status. |
| data.input | object | No | — |
| data.output | object | No | — |
| data.error | string | No | — |
| data.startedAt | string | No | ISO 8601 timestamp. |
| data.queuedAt | string | No | — |
| data.nextAttemptAt | string | No | — |
| data.lockedAt | string | No | — |
| data.lockedBy | string | No | — |
| data.attemptCount | integer | No | — |
| data.maxAttempts | integer | No | — |
| data.timeoutMs | integer | No | — |
| data.attachedProjectId | string | No | — |
| data.attachedTicketId | string | No | — |
| data.completedAt | string | No | ISO 8601 timestamp. |
| data.createdAt | string | No | ISO 8601 timestamp. |
| data.updatedAt | string | No | ISO 8601 timestamp. |
| preview | object | Yes | — |
| preview.definitionSha256 | string | Yes | — |
| preview.plan | object | Yes | — |
| preview.plan.schemaVersion | integer | Yes | — |
| preview.plan.selection | object | Yes | — |
| preview.plan.runKind | workflow | node_test | slice_test | Yes | — |
| preview.plan.startNodeId | string | Yes | — |
| preview.plan.stopNodeIds | string[] | No | — |
| preview.plan.allowedNodeIds | string[] | No | — |
| preview.plan.allowedEdgeIds | string[] | No | — |
| preview.plan.boundaryContext | object | No | — |
| preview.plan.effects | object[] | Yes | — |
| preview.plan.requiredBoundaryNodeIds | string[] | No | — |
| preview.plan.executable | boolean | Yes | — |
| preview.plan.digest | string | Yes | — |
400Invalid or unsafe execution selection
None.
404Metronome not found
None.
409Immutable version or candidate binding conflict
None.
Queue an isolated Metronome node or slice test
Loading...
Response 202
Loading...