{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ugc-africa/json-schema/ugc-africa-post-api-automation-actions-campaigns-request-schema.json",
  "title": "PostApiAutomationActionsCampaignsRequest",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/ugc-africa-openapi-generated.yml#/components/schemas/PostApiAutomationActionsCampaignsRequest",
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "description": "Max 160 chars"
    },
    "description": {
      "type": "string",
      "description": "Full broadcaster brief, max 10,000 chars"
    },
    "campaignType": {
      "type": "string",
      "description": "STANDARD_VIDEO (default), MUSIC_PROMO , MUSIC_PROMO_PRERELEASE , FIXED_FEE , TEXT_DISTRIBUTION , PRODUCT_PLACEMENT , CLIP_CAMPAIGN"
    },
    "campaignMode": {
      "type": "string",
      "description": "Default BROADCAST"
    },
    "assets": {
      "type": "array",
      "description": "CDN URLs plus metadata"
    },
    "payoutType": {
      "type": "string",
      "description": "FLAT , CPM_SOCIAL , or CPM_STREAMING (not CPM )"
    },
    "advertiserCpmRate": {
      "type": "number",
      "description": "USD per 1,000 views (CPM types) or per post (FLAT)"
    },
    "flatPayoutTiers": {
      "type": "array",
      "description": "FLAT only - see Performance-tiered flat payouts below"
    },
    "totalBudget": {
      "type": "number",
      "description": "Total campaign budget, USD"
    },
    "maxSlots": {
      "type": "number",
      "description": "Ignored for FLAT (server-computed); validated against a cap for CPM_SOCIAL and CPM_STREAMING"
    },
    "targetPlatforms": {
      "type": "array",
      "description": "Platform slugs such as whatsapp_status and snapchat"
    },
    "countryAllowlist": {
      "type": "array",
      "description": "ISO country codes; empty = all eligible countries"
    },
    "minKycTier": {
      "type": "number",
      "description": "0-2, default 1"
    },
    "minCreatorLevel": {
      "type": "number",
      "description": "1-4, default 1"
    },
    "agencyId": {
      "type": "string",
      "description": "Solution Partner id for commission attribution"
    }
  },
  "required": [
    "title",
    "payoutType",
    "advertiserCpmRate",
    "totalBudget"
  ]
}