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

# Update a Compliance Orchestrator workflow's status

> <Badge color="blue" shape="pill">EA</Badge> Early Availability: this endpoint may change before GA.

Moves a workflow between `DRAFT` and `ACTIVE`. A workflow must be `ACTIVE` before `POST /v1/compliance/orchestrator/screenings` will accept a screening against it. Returns the workflow's id and new status, not its full configuration.



## OpenAPI

````yaml https://swagger.fireblocks.com/openapi.yaml patch /compliance/orchestrator/workflows/{workflowId}/status
openapi: 3.0.0
info:
  title: Fireblocks API
  description: >
    Fireblocks provides a suite of applications to manage digital asset
    operations and a complete development platform to build your business on the
    blockchain.


    - Visit our website for more information: [Fireblocks
    Website](https://fireblocks.com)

    - Visit our developer docs: [Fireblocks
    DevPortal](https://developers.fireblocks.com)
  version: 1.6.2
  contact:
    email: developers@fireblocks.com
servers:
  - url: https://api.fireblocks.io/v1
    description: Fireblocks Production Environment Base URL
  - url: https://sandbox-api.fireblocks.io/v1
    description: Fireblocks Sandbox Environment Base URL
security: []
paths:
  /compliance/orchestrator/workflows/{workflowId}/status:
    patch:
      tags:
        - Compliance Orchestrator
      summary: Update a Compliance Orchestrator workflow's status
      description: >-
        <Badge color="blue" shape="pill">EA</Badge> Early Availability: this
        endpoint may change before GA.


        Moves a workflow between `DRAFT` and `ACTIVE`. A workflow must be
        `ACTIVE` before `POST /v1/compliance/orchestrator/screenings` will
        accept a screening against it. Returns the workflow's id and new status,
        not its full configuration.
      operationId: updateWorkflowStatus
      parameters:
        - name: workflowId
          required: true
          in: path
          description: The workflow's identifier.
          example: f47ac10b-58cc-4372-a567-0e02b2c3d479
          schema:
            type: string
        - $ref: '#/components/parameters/X-Idempotency-Key'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateWorkflowStatusRequest'
      responses:
        '200':
          description: Workflow status updated
          headers:
            X-Request-ID:
              $ref: '#/components/headers/X-Request-ID'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateWorkflowStatusResponse'
        '400':
          description: Invalid request arguments.
          headers:
            X-Request-ID:
              $ref: '#/components/headers/X-Request-ID'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorSchema'
        '404':
          description: Workflow not found.
          headers:
            X-Request-ID:
              $ref: '#/components/headers/X-Request-ID'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorSchema'
        default:
          $ref: '#/components/responses/Error'
      x-codeSamples:
        - lang: TypeScript
          source: >-
            const response:
            Promise<FireblocksResponse<UpdateWorkflowStatusResponse>> =
            fireblocks.complianceOrchestrator.updateWorkflowStatus(complianceOrchestratorApiUpdateWorkflowStatusRequest);
        - lang: Java
          source: >-
            CompletableFuture<ApiResponse<UpdateWorkflowStatusResponse>>
            response =
            fireblocks.complianceOrchestrator().updateWorkflowStatus(updateWorkflowStatusRequest,
            workflowId, idempotencyKey);
        - lang: Python
          source: >-
            response =
            fireblocks.compliance_orchestrator.update_workflow_status(update_workflow_status_request,
            workflow_id, idempotency_key);
components:
  parameters:
    X-Idempotency-Key:
      name: Idempotency-Key
      in: header
      description: >-
        A unique identifier for the request. If the request is sent multiple
        times with the same idempotency key, the server will return the same
        response as the first request. The idempotency key is valid for 24
        hours.
      required: false
      schema:
        type: string
  schemas:
    UpdateWorkflowStatusRequest:
      type: object
      description: Request to change a workflow's status.
      properties:
        status:
          $ref: '#/components/schemas/WorkflowStatusEnum'
      required:
        - status
    UpdateWorkflowStatusResponse:
      type: object
      description: The workflow's status after the update.
      properties:
        workflowId:
          type: string
          description: Unique identifier of the workflow.
          example: f47ac10b-58cc-4372-a567-0e02b2c3d479
        status:
          $ref: '#/components/schemas/WorkflowStatusEnum'
      required:
        - workflowId
        - status
    ErrorSchema:
      type: object
      properties:
        message:
          type: string
        code:
          type: number
    WorkflowStatusEnum:
      type: string
      description: >
        A workflow's status, which controls whether it can be screened against.


        - `DRAFT` — the editing state. Rules can be changed while nothing is
          screening against them, so a screening never runs against a half-finished
          configuration.
        - `ACTIVE` — `POST /v1/compliance/orchestrator/screenings` accepts
        screenings against this workflow.
      enum:
        - ACTIVE
        - DRAFT
      example: ACTIVE
  headers:
    X-Request-ID:
      schema:
        type: string
      description: >-
        Unique ID correlated to the API request. Please provide it in any
        support ticket you create or on Github issues related to Fireblocks SDKs
  responses:
    Error:
      description: Error Response
      headers:
        X-Request-ID:
          $ref: '#/components/headers/X-Request-ID'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorSchema'

````