Offer workflow ownership
PATCH
/v1/metronomes/{metronomeId}/ownerCreates an ownership offer for an active member. The current owner remains unchanged until the recipient accepts via the resource-invitations API. Repeated pending offers to the same recipient are idempotent.
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 |
|---|---|---|---|
| ownerUserId | string | Yes | — |
| userId | string | No | Deprecated alias for `ownerUserId`. |
What the API returns
Each response code below includes the documented payload shape for the ACP API.
200Current resource and pending ownership offerapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| invitation | object | No | — |
| invitation.id | string | Yes | Unique identifier. |
| invitation.organizationId | string | Yes | — |
| invitation.kind | share | ownership | Yes | — |
| invitation.resourceType | string | Yes | — |
| invitation.resourceId | string | Yes | — |
| invitation.resourceName | string | Yes | — |
| invitation.recipientUserId | string | Yes | — |
| invitation.invitedByUserId | string | Yes | — |
| invitation.accessLevel | use | edit | manage | Yes | — |
| invitation.status | pending | accepted | declined | revoked | expired | Yes | Current lifecycle status. |
| invitation.expiresAt | string | Yes | — |
| invitation.decidedAt | string | Yes | — |
| invitation.createdAt | string | Yes | ISO 8601 timestamp. |
| invitation.updatedAt | string | Yes | ISO 8601 timestamp. |
| data | object | No | — |
| data.id | string | No | Unique identifier. |
| data.userId | string | No | User ID. |
| data.ownerUserId | string | No | — |
| data.ownerName | string | No | — |
| data.ownerEmail | string | No | — |
| data.ownerAvatarUrl | string | No | — |
| data.owner | object | No | — |
| data.owner.userId | string | Yes | User ID. |
| data.owner.name | string | Yes | Human-readable name. |
| data.owner.email | string | Yes | — |
| data.owner.avatarUrl | string | Yes | — |
| data.canTransferOwnership | boolean | No | — |
| data.organizationId | string | No | — |
| data.createdByUserId | string | No | — |
| data.creatorId | string | No | Stable identity of the user who created the workflow. |
| data.creatorUserId | string | No | Stable user identity of the workflow creator. |
| data.creatorName | string | No | Current display name resolved through the deployment identity directory. |
| data.creatorEmail | string | No | Current email address resolved through the deployment identity directory. |
| data.creatorAvatarUrl | string | No | Current creator profile image URL, or an empty string when none is configured. |
| 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.executionPolicy | object | No | — |
| data.definition.executionPolicy.placement | local_only | Yes | Requires 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.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 | approval | action | code | imagine | function | firecrawl | table | database | ticket | metronome | inference | 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 | Kind-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.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 | approval | action | code | imagine | function | firecrawl | table | database | ticket | metronome | inference | 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 | Kind-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.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. |
400Invalid or inactive owner
None.
403Only the current workflow owner may transfer ownership
None.
404Metronome not found
None.
409Workflow ownership changed concurrently
None.