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

# Set Live status

> Switches a workflow Live (its triggers and schedule start firing) or back to Draft. Going to Draft stops every run in progress and remembers the unfinished rows; going Live resumes them, filling only empty cells. Going Live checks credits and that every trigger's connected account is still connected. Needs edit access.




## OpenAPI

````yaml /openapi/automations.yaml put /workflows/{workflowId}/live
openapi: 3.1.0
info:
  title: Connie Automations API
  version: 1.0.0
  description: >
    Endpoints the Connie web app uses for automations. They authenticate with
    your signed-in browser session — see
    https://docs.connie.ai/api-reference/authentication. These are the app's own
    endpoints and can change when the app changes.
servers:
  - url: https://connie.ai/api
security:
  - sessionCookie: []
tags:
  - name: Workflows
    description: List, create, read, update and delete workflows.
  - name: Runs
    description: >-
      Start, retry and stop workflow runs, switch a workflow Live, and read run
      counts.
  - name: Triggers
    description: A workflow's triggers and its schedule settings.
  - name: Templates
    description: The template gallery and copying a template into a workspace.
  - name: Agents
    description: Agents on the Agents page.
paths:
  /workflows/{workflowId}/live:
    parameters:
      - $ref: '#/components/parameters/workflowId'
    put:
      tags:
        - Runs
      summary: Set Live status
      description: >
        Switches a workflow Live (its triggers and schedule start firing) or
        back to Draft. Going to Draft stops every run in progress and remembers
        the unfinished rows; going Live resumes them, filling only empty cells.
        Going Live checks credits and that every trigger's connected account is
        still connected. Needs edit access.
      operationId: setWorkflowLiveStatus
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - isLive
              properties:
                isLive:
                  type: boolean
      responses:
        '200':
          description: The new status.
          content:
            application/json:
              schema:
                type: object
                properties:
                  isLive:
                    type: boolean
                  status:
                    type: string
                  is_trigger_enabled:
                    type: boolean
                  workflowsStopped:
                    type: integer
                    description: Runs stopped by going to Draft.
                  rowsResumed:
                    type: integer
                    description: Stopped rows resumed by going Live.
                  resumeSkipped:
                    type: string
                    description: >-
                      Why stopped rows were not resumed, for example
                      `insufficient_credits` or `cap_reached`.
        '400':
          description: >
            `isLive` is missing, the draft has unfinished steps, or a trigger's
            account is disconnected or belongs to another workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/InsufficientCredits'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    workflowId:
      name: workflowId
      in: path
      required: true
      description: >-
        The workflow's id, as in
        `https://connie.ai/<workspace-id>/workflows/<workflow-id>`.
      schema:
        type: string
        format: uuid
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          description: Human-readable message.
        code:
          type: string
          description: Machine-readable code, when there is one.
        details:
          description: Extra detail, for example the invalid fields.
      required:
        - error
  responses:
    Unauthorized:
      description: >-
        Not signed in (`UNAUTHORIZED`), or the session cookie has expired
        (`SESSION_EXPIRED`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    InsufficientCredits:
      description: Not enough credits to run (`INSUFFICIENT_CREDITS`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: >-
        You aren't a member of the workspace, or don't have the access this
        needs.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Not found, or not visible to you.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    sessionCookie:
      type: apiKey
      in: header
      name: Cookie
      description: >-
        The full Cookie header copied from a signed-in connie.ai browser
        request. See the Authentication page.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.