{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-quicksight/json-schema/amazon-quicksight-create-flow-request-schema.json",
  "title": "CreateFlowRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-quicksight-flows-api-openapi.yml#/components/schemas/CreateFlowRequest",
  "type": "object",
  "properties": {
    "AwsAccountId": {
      "type": "string",
      "description": "The ID of the Amazon Web Services account where you want to create the flow."
    },
    "Name": {
      "type": "string",
      "description": "The display name for the flow."
    },
    "Description": {
      "type": "string",
      "description": "The description for the flow."
    },
    "FlowDefinition": {
      "type": "object",
      "description": "The definition of the flow, specifying the steps and configurations. This is the flow definition in Quick Flow's internal format. The format is subject to change. Always derive or depend on the flow definition from the DescribeFlow operation to ensure you are working with the latest format."
    },
    "Permissions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Permission"
      },
      "description": "Initial permissions for the flow. If omitted, the flow is created without any permissions."
    },
    "ClientToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request."
    }
  },
  "required": [
    "AwsAccountId",
    "Name",
    "FlowDefinition"
  ],
  "$defs": {
    "Permission": {
      "type": "object",
      "properties": {
        "Actions": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of actions that the principal can perform against the flow. The following are the list of values to set a principal as a flow owner: quicksight:PublishFlow quicksight:GetFlow quicksight:UpdateFlowPermissions quicksight:GetFlowSession quicksight:StartFlowSession quicksight:StopFlowSession quicksight:UpdateFlowSession quicksight:UnpublishFlow quicksight:GetFlowStages quicksight:DeleteFlow quicksight:DescribeFlowPermissions quicksight:UpdateFlow quicksight:CreatePresignedUrl The following are the list of values to set a principal as a flow viewer: quicksight:GetFlow quicksight:UpdateFlowSe"
        },
        "Principal": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the principal. This can be an Amazon Quick user, group or namespace associated with the flow. Namespace principal can only be set as a viewer and will grant everyone in the same namespace viewer permissions."
        }
      },
      "required": [
        "Actions",
        "Principal"
      ]
    }
  }
}