Publish or unpublish Metronome

POST/v1/metronomes/{metronomeId}/publish

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
NameLocationTypeRequiredDescription
metronomeIdpathstringYesMetronome workflow ID
Query parameters
None.

Body schema

Content type: application/json · Optional

FieldTypeRequiredDescription
activebooleanNoSet false to move the Metronome back to draft.
versionIdstringNoExisting immutable workflow version to publish.
version_idstringNoDeprecated alias for `versionId`.
definitionobjectNo—
definition.executionPolicyobjectNo—
definition.executionPolicy.placementlocal_onlyYesRequires on-prem PostgreSQL, filesystem artifacts, local scraping, local deployable Functions and explicit local inference. Unsupported node kinds and external API Functions fail closed. This placement contract does not replace operator-enforced network egress policy.
definition.nodesobject[]No—
definition.nodes[].idstringNoUnique identifier.
definition.nodes[].typestringNo—
definition.nodes[].positionobjectNo—
definition.nodes[].dataobjectNo—
definition.nodes[].data.kindtrigger | condition | approval | action | code | imagine | function | firecrawl | table | database | ticket | metronome | inference | loop | end | noteNo—
definition.nodes[].data.subtypestringNo—
definition.nodes[].data.labelstringNo—
definition.nodes[].data.descriptionstringNoHuman-readable description.
definition.nodes[].data.configobjectNoKind-specific node configuration, versioned with the workflow. Thread (action) nodes opt into validated runtime results with outputMode=json_schema and a jsonOutputSchema (object or serialized JSON Schema), or the mutually exclusive jsonOutputSchemaFromInput naming one top-level field in the explicitly selected input. An input schema is validated before execution, removed from business input and retained with its fingerprint in the result receipt. The schema requires an object root, is limited to 64 KiB / 12 levels, and supports type, properties, required, additionalProperties (boolean), items, enum, numeric, string-length and array-length bounds, description and title. Unsupported keywords fail publication. maxValidationRetries is 0–2 (default 2). resultMode is inline (default) or artifact; outputKey defaults to data. Requires a Claw worker advertising json_schema_v1. Validated data comes from a dedicated runtime receipt, never assistant text. Failure retains Thread, usage and validation evidence without publishing partial data. Legacy outputMode=structured/json retains summary-parsing semantics until migrated.
definition.edgesobject[]No—
definition.edges[].idstringNoUnique identifier.
definition.edges[].sourcestringNo—
definition.edges[].targetstringNo—
definition.edges[].sourceHandlestringNo—
definition.edges[].targetHandlestringNo—
definition.edges[].labelstringNo—
definition.executionRecoveryPolicyobjectNo—
definition.executionRecoveryPolicy.schemaVersioncomputer_agents_metronome_recovery_policy_v1Yes—
definition.executionRecoveryPolicy.enforcementcheckpointedYes—
definition.executionRecoveryPolicy.inDoubtDefaultpauseYes—
definition.executionRecoveryPolicy.checkpointMaxBytesintegerYes—
descriptionstringNoHuman-readable description.

What the API returns

Each response code below includes the documented payload shape for the ACP API.

200Metronome publication state updatedapplication/json
FieldTypeRequiredDescription
dataobjectNo—
data.idstringNoUnique identifier.
data.userIdstringNoUser ID.
data.ownerUserIdstringNo—
data.ownerNamestringNo—
data.ownerEmailstringNo—
data.ownerAvatarUrlstringNo—
data.ownerobjectNo—
data.owner.userIdstringYesUser ID.
data.owner.namestringYesHuman-readable name.
data.owner.emailstringYes—
data.owner.avatarUrlstringYes—
data.canTransferOwnershipbooleanNo—
data.organizationIdstringNo—
data.createdByUserIdstringNo—
data.creatorIdstringNoStable identity of the user who created the workflow.
data.creatorUserIdstringNoStable user identity of the workflow creator.
data.creatorNamestringNoCurrent display name resolved through the deployment identity directory.
data.creatorEmailstringNoCurrent email address resolved through the deployment identity directory.
data.creatorAvatarUrlstringNoCurrent creator profile image URL, or an empty string when none is configured.
data.namestringNoHuman-readable name.
data.descriptionstringNoHuman-readable description.
data.statusdraft | active | paused | archivedNoCurrent lifecycle status.
data.definitionobjectNo—
data.definition.executionPolicyobjectNo—
data.definition.executionPolicy.placementlocal_onlyYesRequires on-prem PostgreSQL, filesystem artifacts, local scraping, local deployable Functions and explicit local inference. Unsupported node kinds and external API Functions fail closed. This placement contract does not replace operator-enforced network egress policy.
data.definition.nodesobject[]No—
data.definition.nodes[].idstringNoUnique identifier.
data.definition.nodes[].typestringNo—
data.definition.nodes[].positionobjectNo—
data.definition.nodes[].dataobjectNo—
data.definition.nodes[].data.kindtrigger | condition | approval | action | code | imagine | function | firecrawl | table | database | ticket | metronome | inference | loop | end | noteNo—
data.definition.nodes[].data.subtypestringNo—
data.definition.nodes[].data.labelstringNo—
data.definition.nodes[].data.descriptionstringNoHuman-readable description.
data.definition.nodes[].data.configobjectNoKind-specific node configuration, versioned with the workflow. Thread (action) nodes opt into validated runtime results with outputMode=json_schema and a jsonOutputSchema (object or serialized JSON Schema), or the mutually exclusive jsonOutputSchemaFromInput naming one top-level field in the explicitly selected input. An input schema is validated before execution, removed from business input and retained with its fingerprint in the result receipt. The schema requires an object root, is limited to 64 KiB / 12 levels, and supports type, properties, required, additionalProperties (boolean), items, enum, numeric, string-length and array-length bounds, description and title. Unsupported keywords fail publication. maxValidationRetries is 0–2 (default 2). resultMode is inline (default) or artifact; outputKey defaults to data. Requires a Claw worker advertising json_schema_v1. Validated data comes from a dedicated runtime receipt, never assistant text. Failure retains Thread, usage and validation evidence without publishing partial data. Legacy outputMode=structured/json retains summary-parsing semantics until migrated.
data.definition.edgesobject[]No—
data.definition.edges[].idstringNoUnique identifier.
data.definition.edges[].sourcestringNo—
data.definition.edges[].targetstringNo—
data.definition.edges[].sourceHandlestringNo—
data.definition.edges[].targetHandlestringNo—
data.definition.edges[].labelstringNo—
data.definition.executionRecoveryPolicyobjectNo—
data.definition.executionRecoveryPolicy.schemaVersioncomputer_agents_metronome_recovery_policy_v1Yes—
data.definition.executionRecoveryPolicy.enforcementcheckpointedYes—
data.definition.executionRecoveryPolicy.inDoubtDefaultpauseYes—
data.definition.executionRecoveryPolicy.checkpointMaxBytesintegerYes—
data.nodesobject[]No—
data.nodes[].idstringNoUnique identifier.
data.nodes[].typestringNo—
data.nodes[].positionobjectNo—
data.nodes[].dataobjectNo—
data.nodes[].data.kindtrigger | condition | approval | action | code | imagine | function | firecrawl | table | database | ticket | metronome | inference | loop | end | noteNo—
data.nodes[].data.subtypestringNo—
data.nodes[].data.labelstringNo—
data.nodes[].data.descriptionstringNoHuman-readable description.
data.nodes[].data.configobjectNoKind-specific node configuration, versioned with the workflow. Thread (action) nodes opt into validated runtime results with outputMode=json_schema and a jsonOutputSchema (object or serialized JSON Schema), or the mutually exclusive jsonOutputSchemaFromInput naming one top-level field in the explicitly selected input. An input schema is validated before execution, removed from business input and retained with its fingerprint in the result receipt. The schema requires an object root, is limited to 64 KiB / 12 levels, and supports type, properties, required, additionalProperties (boolean), items, enum, numeric, string-length and array-length bounds, description and title. Unsupported keywords fail publication. maxValidationRetries is 0–2 (default 2). resultMode is inline (default) or artifact; outputKey defaults to data. Requires a Claw worker advertising json_schema_v1. Validated data comes from a dedicated runtime receipt, never assistant text. Failure retains Thread, usage and validation evidence without publishing partial data. Legacy outputMode=structured/json retains summary-parsing semantics until migrated.
data.edgesobject[]No—
data.edges[].idstringNoUnique identifier.
data.edges[].sourcestringNo—
data.edges[].targetstringNo—
data.edges[].sourceHandlestringNo—
data.edges[].targetHandlestringNo—
data.edges[].labelstringNo—
data.triggerSummarystringNo—
data.lastRunAtstringNo—
data.publishedAtstringNo—
data.runsTodayintegerNo—
data.waitingApprovalsintegerNo—
data.metadataobjectNoFree-form metadata object.
data.createdAtstringNoISO 8601 timestamp.
data.updatedAtstringNoISO 8601 timestamp.
Publish or unpublish Metronome
Loading...
Response 200
Loading...
See the ACP quickstart and SDK flow