publisher.profile.upsert
Create or update a publisher profile — a named brand look binding accounts, a cover kit, and posting defaults.
Overview
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-publisher |
| Version | 1.0 |
Input Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
workflow_run_id | string | No | — | Parent DAG workflow run id (engine-injected when used as a step) |
organization_uuid | string | Yes | — | — |
profile_uuid | string | No | — | Omit to create; pass to update |
name | string | Yes | — | — |
purpose | string | No | — | — |
cover_kit_uuid | string | No | — | — |
channel_bindings | json | No | — | Replaces the profile's bindings. Each: platform, connection_uuid, identity_ref, identity_kind, optional parent_page_ref |
youtube_default_kind | string | No | — | shorts |
default_privacy | string | No | — | private |
default_reviewer_actor_uuid | string | No | — | Staff-facing: overrides the org's media reviewer |
status | string | No | — | draft |
Output Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
workflow_run_id | string | No | — | Parent DAG workflow run id (engine-injected when used as a step) |
organization_uuid | string | Yes | — | — |
profile_uuid | string | No | — | — |
name | string | No | — | — |
purpose | string | No | — | — |
cover_kit_uuid | string | No | — | — |
channel_bindings | json | No | — | Replaces the profile's bindings. Each: platform, connection_uuid, identity_ref, identity_kind, optional parent_page_ref |
youtube_default_kind | string | No | — | shorts |
default_privacy | string | No | — | private |
default_reviewer_actor_uuid | string | No | — | Staff-facing: overrides the org's media reviewer |
status | string | No | — | — |
created | boolean | No | — | — |
bindings | json | No | — | — |
missing_covers | json | No | — | Per platform, cover roles still needed — a warning, not a failure |
failure_reason | string | No | — | Engine-stamped human-readable failure reason |
failed_at | string | No | — | ISO timestamp when the workflow failed |
failed_at_state | string | No | — | Engine-stamped state when the workflow failed |
failed_step | string | No | — | Engine-stamped step name (DAG path) |
failed_layer | integer | No | — | Engine-stamped layer index (DAG path) |
error | string | No | — | Engine-stamped exception message |
error_type | string | No | — | Engine-stamped exception class name |
completed_at | string | No | — | — |
States
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram
Transitions
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
Outcomes
| Outcome | Type | Description | State Data Keys |
|---|---|---|---|
completed | SUCCESS | Publisher atom completed successfully | completed_at |
failed | FAILURE | Publisher atom failed | failure_reason, error, error_type |
API Usage
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "publisher.profile.upsert",
"initial_data": {
"organization_uuid": "value",
"name": "value"
}
}