> ## 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.

# Save schedule settings

> Creates or updates the schedule. Only the fields you send change; the rest keep their saved values. Each enabled day's end time must be after its start time. Running runs pick up the new window; if some couldn't be told, the response carries a warning and saving again retries. Needs edit access.




## OpenAPI

````yaml /openapi/automations.yaml put /workflows/{workflowId}/schedule
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}/schedule:
    parameters:
      - $ref: '#/components/parameters/workflowId'
    put:
      tags:
        - Triggers
      summary: Save schedule settings
      description: >
        Creates or updates the schedule. Only the fields you send change; the
        rest keep their saved values. Each enabled day's end time must be after
        its start time. Running runs pick up the new window; if some couldn't be
        told, the response carries a warning and saving again retries. Needs
        edit access.
      operationId: saveWorkflowSchedule
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ScheduleInput'
      responses:
        '200':
          description: Saved.
          content:
            application/json:
              schema:
                type: object
                properties:
                  schedule:
                    $ref: '#/components/schemas/Schedule'
                  message:
                    type: string
                    example: Schedule saved successfully
                  signalFailures:
                    type: integer
                    description: >-
                      Running runs that couldn't be told about the change. Save
                      again to retry.
        '400':
          description: Invalid timezone, or a day's end time is not after its start time.
          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'
        '409':
          description: '"This flow already has an active schedule"'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
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:
    ScheduleInput:
      type: object
      properties:
        timezone:
          type: string
          description: >-
            An IANA timezone such as `Europe/London`. Omit to keep the saved
            one.
        is_enabled:
          type: boolean
        schedule_type:
          type: string
          example: time_window
        cron_expression:
          type:
            - string
            - 'null'
        interval_minutes:
          type:
            - integer
            - 'null'
        min_interval_minutes:
          type:
            - integer
            - 'null'
        max_runs_per_day:
          type:
            - integer
            - 'null'
        queue_outside_window:
          type: boolean
          description: >-
            Wait for the next running window instead of finishing immediately.
            Default true.
        stop_on_node_failure:
          type: boolean
          description: Stop a row's run at the first failed step. Default true.
        run_all_rows_at_once:
          type: boolean
        write_to_same_column:
          type: boolean
          description: >-
            Overwrite the same columns on each run. False means **Create new
            column for each run**.
        create_new_row_each_run:
          type: boolean
        monday:
          $ref: '#/components/schemas/ScheduleDay'
        tuesday:
          $ref: '#/components/schemas/ScheduleDay'
        wednesday:
          $ref: '#/components/schemas/ScheduleDay'
        thursday:
          $ref: '#/components/schemas/ScheduleDay'
        friday:
          $ref: '#/components/schemas/ScheduleDay'
        saturday:
          $ref: '#/components/schemas/ScheduleDay'
        sunday:
          $ref: '#/components/schemas/ScheduleDay'
    Schedule:
      type: object
      description: >
        The saved schedule. Each day is stored as `<day>_enabled`,
        `<day>_start_time` and `<day>_end_time`, for example `monday_enabled`.
      additionalProperties: true
      properties:
        workflow_id:
          type: string
          format: uuid
        is_enabled:
          type: boolean
        timezone:
          type: string
        schedule_type:
          type: string
        cron_expression:
          type:
            - string
            - 'null'
        interval_minutes:
          type:
            - integer
            - 'null'
        max_runs_per_day:
          type:
            - integer
            - 'null'
        queue_outside_window:
          type: boolean
        stop_on_node_failure:
          type: boolean
        updated_at:
          type: string
          format: date-time
    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
    ScheduleDay:
      type: object
      properties:
        enabled:
          type: boolean
        time_ranges:
          type: array
          description: Only the first range is used.
          items:
            type: object
            properties:
              start_time:
                type: string
                example: '09:00'
              end_time:
                type: string
                example: '17:00'
  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.