{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apiworx/main/json-schema/apiworx-post-api-v1-flows-request-schema.json",
  "title": "PostApiV1FlowsRequest",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/apiworx-openapi-generated.yml#/components/schemas/PostApiV1FlowsRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Name of the flow"
    },
    "source_connector_id": {
      "type": "string",
      "description": "Identifier of the source connector"
    },
    "destination_connector_id": {
      "type": "string",
      "description": "Identifier of the destination connector"
    },
    "object_type": {
      "type": "string",
      "description": "Type of object being synchronized (e.g., orders)"
    },
    "trigger": {
      "type": "string",
      "description": "Trigger type for the flow (e.g., webhook)"
    },
    "field_mappings": {
      "type": "array",
      "description": "Array of source‑to‑destination field mapping objects"
    }
  },
  "required": [
    "name",
    "source_connector_id",
    "destination_connector_id",
    "object_type",
    "trigger",
    "field_mappings"
  ]
}