{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/360dialog/json-schema/360dialog-post-flows-request-schema.json",
  "title": "PostFlowsRequest",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/360dialog-openapi-generated.yml#/components/schemas/PostFlowsRequest",
  "type": "object",
  "properties": {
    "categories": {
      "type": "array",
      "description": "Flow categories, at least one of LEAD_GENERATION, SIGN_UP, SIGN_IN, APPOINTMENT_BOOKING, SURVEY, CONTACT_US, CUSTOMER_SUPPORT, OTHER"
    },
    "clone_flow_id": {
      "type": "string",
      "description": "ID of an existing Flow to clone"
    },
    "endpoint_uri": {
      "type": "string",
      "description": "Endpoint URI for Flows with a data exchange endpoint"
    },
    "flow_json": {
      "type": "string",
      "description": "The Flow JSON as a string"
    },
    "name": {
      "type": "string",
      "description": "Flow name, unique within the WABA"
    },
    "publish": {
      "type": "boolean",
      "description": "Publish the Flow immediately instead of creating a draft"
    }
  }
}