Skip to content
Proud to collaborate with Microsoft for Startups

youtube.shorts.publish-with-approval ​

Draft YouTube Shorts/video content and open a staff inbox review envelope. Does not upload — after approve, call youtube.video.upload with the approval_envelope_uuid (SOCIAL-004 hard gate).

Overview ​

PropertyValue
Workflow typeDag
LibraryApp-youtube
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuidstringYes——
connection_uuidstringYes——
actor_uuidstringYes——
kindstringNo—shorts
titlestringNo——
descriptionstringNo——
channel_idstringNo——
storage_object_uuidstringNo——
video_urlstringNo——
file_urlstringNo——
privacy_statusstringNo——
tagsjsonNo——
review_titlestringNo——
review_reasonstringNo——
connector_uuidstringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuidstringYes——
connection_uuidstringYes——
actor_uuidstringYes——
kindstringNo—shorts
titlestringNo——
descriptionstringNo——
channel_idstringNo——
storage_object_uuidstringNo——
video_urlstringNo——
file_urlstringNo——
privacy_statusstringNo——
tagsjsonNo——
review_titlestringNo——
review_reasonstringNo——
connector_uuidstringNo——
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
draft_idstringNo——
approval_envelope_uuidstringNo——
statusstringNo——
draftjsonNo——
request_reviewjsonNo——
completed_atstringNo——

DAG Layers ​

#LayerStepsCompensation
1draftyoutube.content.draftyoutube.compensation.noop
2request_reviewyoutube.content.request-reviewyoutube.compensation.noop

Execution Flow ​

Compensation ​

When any layer fails, its compensation steps run in reverse order to roll back the work completed so far.

Sub-workflows ​

Sub-workflowStep name
youtube.content.draftdraft
youtube.content.request-reviewrequest_review
youtube.compensation.noopabandon_draft

Outcomes ​

OutcomeTypeDescriptionState Data Keys
review_requestedSUCCESSDraft stamped and inbox review envelope openeddraft_id, approval_envelope_uuid
failedFAILUREYouTube shorts publish-with-approval DAG failedfailure_reason

API Usage ​

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

{
  "workflow_type": "youtube.shorts.publish-with-approval",
  "initial_data": {
    "organization_uuid": "value",
    "connection_uuid": "value",
    "actor_uuid": "value"
  }
}