> ## Documentation Index
> Fetch the complete documentation index at: https://docs.calseta.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Workflow



## OpenAPI

````yaml PATCH /v1/workflows/{workflow_uuid}
openapi: 3.1.0
info:
  title: Calseta
  description: SOC data platform for security agent consumption
  version: dev
servers: []
security: []
paths:
  /v1/workflows/{workflow_uuid}:
    patch:
      tags:
        - workflows
      summary: Patch Workflow
      operationId: patch_workflow_v1_workflows__workflow_uuid__patch
      parameters:
        - name: workflow_uuid
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Workflow Uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WorkflowPatch'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataResponse_WorkflowResponse_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    WorkflowPatch:
      properties:
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        workflow_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Workflow Type
        indicator_types:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Indicator Types
        code:
          anyOf:
            - type: string
            - type: 'null'
          title: Code
        state:
          anyOf:
            - type: string
            - type: 'null'
          title: State
        timeout_seconds:
          anyOf:
            - type: integer
            - type: 'null'
          title: Timeout Seconds
        retry_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Retry Count
        is_active:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Active
        tags:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Tags
        time_saved_minutes:
          anyOf:
            - type: integer
            - type: 'null'
          title: Time Saved Minutes
        approval_mode:
          anyOf:
            - type: string
            - type: 'null'
          title: Approval Mode
        approval_channel:
          anyOf:
            - type: string
            - type: 'null'
          title: Approval Channel
        approval_timeout_seconds:
          anyOf:
            - type: integer
            - type: 'null'
          title: Approval Timeout Seconds
        risk_level:
          anyOf:
            - type: string
            - type: 'null'
          title: Risk Level
        documentation:
          anyOf:
            - type: string
            - type: 'null'
          title: Documentation
      type: object
      title: WorkflowPatch
      description: Request body for PATCH /v1/workflows/{uuid}.
    DataResponse_WorkflowResponse_:
      properties:
        data:
          $ref: '#/components/schemas/WorkflowResponse'
        meta:
          additionalProperties: true
          type: object
          title: Meta
      type: object
      required:
        - data
      title: DataResponse[WorkflowResponse]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    WorkflowResponse:
      properties:
        uuid:
          type: string
          format: uuid
          title: Uuid
        name:
          type: string
          title: Name
        workflow_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Workflow Type
        indicator_types:
          items:
            type: string
          type: array
          title: Indicator Types
        state:
          type: string
          title: State
        code_version:
          type: integer
          title: Code Version
        is_active:
          type: boolean
          title: Is Active
        is_system:
          type: boolean
          title: Is System
        tags:
          items:
            type: string
          type: array
          title: Tags
        time_saved_minutes:
          anyOf:
            - type: integer
            - type: 'null'
          title: Time Saved Minutes
        approval_mode:
          type: string
          title: Approval Mode
        risk_level:
          type: string
          title: Risk Level
        documentation:
          anyOf:
            - type: string
            - type: 'null'
          title: Documentation
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        code:
          type: string
          title: Code
        timeout_seconds:
          type: integer
          title: Timeout Seconds
        retry_count:
          type: integer
          title: Retry Count
        approval_channel:
          anyOf:
            - type: string
            - type: 'null'
          title: Approval Channel
        approval_timeout_seconds:
          type: integer
          title: Approval Timeout Seconds
      type: object
      required:
        - uuid
        - name
        - workflow_type
        - indicator_types
        - state
        - code_version
        - is_active
        - is_system
        - tags
        - time_saved_minutes
        - approval_mode
        - risk_level
        - documentation
        - created_at
        - updated_at
        - code
        - timeout_seconds
        - retry_count
        - approval_channel
        - approval_timeout_seconds
      title: WorkflowResponse
      description: Full response — includes code and approval config.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````