Skip to content
Proud to collaborate with Microsoft for Startups

publisher.cover_kit.add-asset ​

Add a named cover image to a kit under a role, optionally making it the kit's default for that role.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-publisher
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
workflow_run_idstringNo—Parent DAG workflow run id (engine-injected when used as a step)
organization_uuidstringYes——
cover_kit_uuidstringYes——
namestringYes—Cover name, e.g. "Red thumb"
rolestringYes—profile_image
storage_object_uuidstringYes——
is_defaultbooleanNo—Make this the kit's default cover for the role

Output Schema ​

FieldTypeRequiredDefaultDescription
workflow_run_idstringNo—Parent DAG workflow run id (engine-injected when used as a step)
organization_uuidstringYes——
cover_kit_uuidstringYes——
namestringNo——
rolestringNo——
storage_object_uuidstringYes——
is_defaultbooleanNo——
cover_asset_uuidstringNo——
widthintegerNo——
heightintegerNo——
mime_typestringNo——
failure_reasonstringNo—Engine-stamped human-readable failure reason
failed_atstringNo—ISO timestamp when the workflow failed
failed_at_statestringNo—Engine-stamped state when the workflow failed
failed_stepstringNo—Engine-stamped step name (DAG path)
failed_layerintegerNo—Engine-stamped layer index (DAG path)
errorstringNo—Engine-stamped exception message
error_typestringNo—Engine-stamped exception class name
completed_atstringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

Outcomes ​

OutcomeTypeDescriptionState Data Keys
completedSUCCESSPublisher atom completed successfullycompleted_at
failedFAILUREPublisher atom failedfailure_reason, error, error_type

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "publisher.cover_kit.add-asset",
  "initial_data": {
    "organization_uuid": "value",
    "cover_kit_uuid": "value",
    "name": "value",
    "role": "value"
  }
}