media.artifact.register ​
Register a GeneratedArtifact index row (default review_gate=inbox, verdict=pending). Bytes live on StorageObject when storage_object_uuid set.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-media |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | string | Yes | — | — |
kind | string | Yes | — | image |
storage_object_uuid | string | No | — | — |
prompt | string | No | — | — |
provider | string | No | — | — |
model | string | No | — | — |
params | json | No | — | — |
produced_by_kind | string | No | — | — |
produced_by_uuid | string | No | — | — |
brand | string | No | — | — |
campaign | string | No | — | — |
purpose | string | No | — | — |
variant_of_uuid | string | No | — | — |
review_gate | string | No | — | inbox (default) |
unit | string | No | — | — |
quantity | float | No | — | — |
cost_usd | float | No | — | — |
created_by_uuid | string | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | string | Yes | — | — |
kind | string | Yes | — | image |
storage_object_uuid | string | No | — | — |
prompt | string | No | — | — |
provider | string | No | — | — |
model | string | No | — | — |
params | json | No | — | — |
produced_by_kind | string | No | — | — |
produced_by_uuid | string | No | — | — |
brand | string | No | — | — |
campaign | string | No | — | — |
purpose | string | No | — | — |
variant_of_uuid | string | No | — | — |
review_gate | string | No | — | — |
unit | string | No | — | — |
quantity | float | No | — | — |
cost_usd | float | No | — | — |
created_by_uuid | string | No | — | — |
artifact_uuid | string | No | — | — |
verdict | string | No | — | — |
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 | Media atom completed successfully | completed_at |
failed | FAILURE | Media atom failed | failure_reason, error, error_type |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "media.artifact.register",
"initial_data": {
"organization_uuid": "value",
"kind": "value"
}
}