Skip to content
Proud to collaborate with Microsoft for Startups

media.profile.setup ​

Create or update a MediaProfile: validate AIProviderConfig, ensure media bucket via storage.media-bucket.ensure, storage put/delete probe, and paid image smoke. Marks status=ready only when smoke succeeds.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-media
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuidstringYes——
namestringYes——
ai_provider_config_uuidstringYes——
storage_connection_uuidstringYes——
bucketstringYes——
key_prefixstringNo——
sizestringNo—Soft default size written onto the profile
qualitystringNo——
review_gatestringNo——
is_defaultbooleanNo——
create_bucket_if_missingbooleanNo—Default true — run storage.media-bucket.ensure
media_profile_uuidstringNo—Optional — update an existing profile instead of create-by-name

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuidstringYes——
namestringYes——
ai_provider_config_uuidstringYes——
storage_connection_uuidstringYes——
bucketstringYes——
key_prefixstringNo——
sizestringNo—Soft default size written onto the profile
qualitystringNo——
review_gatestringNo——
is_defaultbooleanNo——
create_bucket_if_missingbooleanNo—Default true — run storage.media-bucket.ensure
media_profile_uuidstringNo——
createdbooleanNo——
statusstringNo——
checksjsonNo——
profilejsonNo——
smoke_storage_object_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
completed_atstringNo——

States ​

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

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

Outcomes ​

OutcomeTypeDescriptionState Data Keys
completedSUCCESSMedia atom completed successfullycompleted_at
failedFAILUREMedia atom failedfailure_reason, error, error_type

API Usage ​

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

{
  "workflow_type": "media.profile.setup",
  "initial_data": {
    "organization_uuid": "value",
    "name": "value",
    "ai_provider_config_uuid": "value",
    "storage_connection_uuid": "value"
  }
}