type: object
x-collection: directus_flows
properties:
  id:
    description: Unique identifier for the flow.
    type: string
    example: 2f24211d-d928-469a-aea3-3c8f53d4e426
  name:
    description: The name of the flow.
    type: string
    example: Update Articles Flow
  icon:
    description: Icon displayed in the Admin App for the flow.
    type: string
    example: bolt
  color:
    description: Color of the icon displayed in the Admin App for the flow.
    type: string
    example: '#112233'
    nullable: true
  note:
    description: Short description displayed in the Admin App.
    type: string
    example: This flow is used to update articles periodically.
  status:
    description: Current status of the flow.
    type: string
    example: active
    default: active
    enum: [active, inactive]
  trigger:
    description: Type of trigger for the flow. One of `hook`, `webhook`, `operation`, `schedule`, `manual`.
    type: string
    example: manual
  options:
    description: Options of the selected trigger for the flow.
    type: object
    example: null
    nullable: true
  accountability:
    description: The permission used during the flow. One of `$public`, `$trigger`, `$full`, or UUID of a role.
    type: string
    example: '$trigger'
  date_created:
    description: Timestamp in ISO8601 when the flow was created.
    type: string
    example: '2022-05-11T13:14:52Z'
    format: date-time
    nullable: true
  user_created:
    description: The user who created the flow.
    example: 63716273-0f29-4648-8a2a-2af2948f6f78
    oneOf:
      - type: string
      - $ref: '../openapi.yaml#/components/schemas/Users'
  operation:
    description: UUID of the operation connected to the trigger in the flow.
    example: 92e82998-e421-412f-a513-13701e83e4ce
    oneOf:
      - type: string
      - $ref: '../openapi.yaml#/components/schemas/Operations'
