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

# Update a schedule

> Updates only the fields you send; everything else keeps its current value. targets and outputConfig merge field by field, sourceConfig.cron is replaced as a whole, and null clears an outputConfig field. The updated schedule is validated like a new one, so it must keep at least one GitHub or Linear integration.



## OpenAPI

````yaml https://api.usenotra.com/openapi.json patch /v1/schedules/{scheduleId}
openapi: 3.1.1
info:
  title: Notra API
  version: 1.0.0
  description: >-
    OpenAPI schema for Notra content endpoints. Use GET /v1/status for public
    reachability. Error responses include recovery guidance. Breaking changes
    ship under a new major path; deprecated operations send Deprecation and
    Sunset headers at least 90 days before removal.
servers:
  - url: https://api.usenotra.com
    description: Production
  - url: https://demo-api.usenotra.com
    description: >-
      Sandbox with sample data. Get a free sandbox key at demo.usenotra.com, no
      signup needed
security:
  - BearerAuth: []
tags:
  - name: Webhooks
    description: Manage outbound webhook subscriptions and delivery history.
  - name: Discovery
    description: Public API status and authenticated workspace discovery.
  - name: Content
    description: >-
      Manage posts, brand identities, and GitHub or Linear integrations, and
      queue content generation. Organization is inferred from the API key
      (identity.externalId).
  - name: Schedules
    description: >-
      Manage scheduled content generation. Organization is inferred from the API
      key (identity.externalId).
  - name: Event Triggers
    description: >-
      Manage event-based content generation triggered by GitHub webhooks.
      Organization is inferred from the API key (identity.externalId).
  - name: Chats
    description: >-
      Manage chat sessions. Organization is inferred from the API key
      (identity.externalId).
  - name: Skills
    description: >-
      Manage reusable writing skills. Organization is inferred from the API key
      (identity.externalId).
  - name: Feedback
    description: >-
      Collect and triage feedback submitted by AI agents. Agents post to the
      organization's feedback URL without credentials; reading and triage
      require an API key with feedback.read or feedback.write.
  - name: GEO
    description: >-
      Manage generative engine optimization: projects, tracking settings,
      prompts, prompt sequences, competitors, scans, visibility reads, content
      gaps and briefs, agent readiness and AI traffic. Project-scoped endpoints
      require the GEO plan entitlement in addition to their scope;
      organization-level ingest endpoints require only the traffic scope.
  - name: Sites
    description: >-
      Notra Sites are hosted blogs and changelogs built from a GitHub
      repository. Read Sites and their deployments, start builds, preview posts
      on a Site, open pull requests that publish posts to it, and manage
      blog.json authors and the author page through staged Design changes.
      Domains, settings, rollbacks and deletion stay in the dashboard.
externalDocs:
  description: Notra API versioning and deprecation policy
  url: https://www.usenotra.com/docs/api/versioning
paths:
  /v1/schedules/{scheduleId}:
    patch:
      tags:
        - Schedules
      summary: Update a schedule
      description: >-
        Updates only the fields you send; everything else keeps its current
        value. targets and outputConfig merge field by field, sourceConfig.cron
        is replaced as a whole, and null clears an outputConfig field. The
        updated schedule is validated like a new one, so it must keep at least
        one GitHub or Linear integration.
      operationId: updateSchedule
      parameters:
        - schema:
            type: string
            minLength: 1
            pattern: ^[A-Za-z0-9_-]{1,100}$
            example: sched_123
          required: true
          in: path
          name: scheduleId
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchScheduleRequest'
      responses:
        '200':
          description: Schedule updated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  schedule:
                    type: object
                    properties:
                      id:
                        type: string
                      organizationId:
                        type: string
                      name:
                        type: string
                      sourceType:
                        type: string
                        enum:
                          - cron
                      sourceConfig:
                        type: object
                        properties:
                          cron:
                            type: object
                            properties:
                              frequency:
                                type: string
                                enum:
                                  - daily
                                  - weekly
                                  - monthly
                                  - custom
                                description: How often the schedule runs.
                                example: weekly
                              hour:
                                type: integer
                                minimum: 0
                                maximum: 23
                                description: Hour of the day to run, in UTC (0-23).
                                example: 9
                              minute:
                                type: integer
                                minimum: 0
                                maximum: 59
                                description: Minute of the hour to run (0-59).
                                example: 0
                              dayOfWeek:
                                type: integer
                                minimum: 0
                                maximum: 6
                                description: >-
                                  Day of the week for weekly schedules, 0
                                  (Sunday) to 6 (Saturday). Required when
                                  frequency is weekly.
                                example: 1
                              dayOfMonth:
                                type: integer
                                minimum: 1
                                maximum: 31
                                description: >-
                                  Day of the month for monthly schedules (1-31).
                                  Required when frequency is monthly.
                                example: 1
                              intervalDays:
                                type: integer
                                minimum: 2
                                maximum: 90
                                description: >-
                                  Run every N days (2-90). Required when
                                  frequency is custom.
                                example: 3
                              anchorDate:
                                type: string
                                pattern: ^\d{4}-\d{2}-\d{2}$
                                description: >-
                                  UTC calendar date (YYYY-MM-DD) a custom
                                  interval counts from. Defaults to today.
                                example: '2026-09-03'
                            required:
                              - frequency
                              - hour
                              - minute
                        required:
                          - cron
                      targets:
                        type: object
                        properties:
                          repositoryIds:
                            type: array
                            items:
                              type: string
                            description: >-
                              GitHub integration IDs to generate from, as
                              returned in the github array of GET
                              /v1/integrations.
                          linearIntegrationIds:
                            type: array
                            items:
                              type: string
                            description: >-
                              Linear integration IDs to generate from, as
                              returned in the linear array of GET
                              /v1/integrations. When omitted, runs read every
                              enabled Linear integration; send [] to read none.
                        required:
                          - repositoryIds
                      outputType:
                        type: string
                        enum:
                          - changelog
                          - blog_post
                          - linkedin_post
                          - twitter_post
                          - image
                      outputConfig:
                        type:
                          - object
                          - 'null'
                        properties:
                          publishDestination:
                            type: string
                            enum:
                              - webflow
                              - framer
                              - custom
                            description: >-
                              Deprecated and ignored. Auto-published posts are
                              only marked as published in Notra; publish to
                              GitHub or a Notra site from the post instead.
                            deprecated: true
                          brandVoiceId:
                            type: string
                            minLength: 1
                            description: >-
                              Brand identity ID to write in. Defaults to the
                              organization's default brand identity.
                            example: 51c2f3aa-efdd-4e28-8e69-23fa2dfd3561
                          instructions:
                            type: string
                            minLength: 1
                            maxLength: 2000
                            description: >-
                              Free-text brief for this schedule, passed to the
                              writer on every run on top of the brand's custom
                              instructions. Use it to steer the angle of the
                              content, for example tutorial-style blog posts.
                            example: >-
                              Write a tutorial-style post that walks through one
                              feature shipped in this window, with code samples.
                          notify:
                            type: object
                            properties:
                              slack:
                                type: boolean
                              email:
                                type: boolean
                            required:
                              - slack
                              - email
                            description: >-
                              Where to announce new content after a successful
                              run: Slack posts to the organization's
                              notification channel, email goes to the workspace
                              owners.
                            example:
                              slack: true
                              email: false
                      enabled:
                        type: boolean
                      autoPublish:
                        type: boolean
                      createdAt:
                        type: string
                      updatedAt:
                        type: string
                      lookbackWindow:
                        type: string
                        enum:
                          - current_day
                          - yesterday
                          - last_7_days
                          - last_14_days
                          - last_30_days
                    required:
                      - id
                      - organizationId
                      - name
                      - sourceType
                      - sourceConfig
                      - targets
                      - outputType
                      - enabled
                      - autoPublish
                      - createdAt
                      - updatedAt
                      - lookbackWindow
                  organization:
                    type: object
                    properties:
                      id:
                        type: string
                      slug:
                        type: string
                      name:
                        type: string
                      logo:
                        type:
                          - string
                          - 'null'
                    required:
                      - id
                      - slug
                      - name
                      - logo
                required:
                  - schedule
                  - organization
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Schedule or organization not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: Duplicate schedule
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Failed to update schedule
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Authentication service unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    PatchScheduleRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 120
          description: Display name shown in the dashboard.
          example: Weekly changelog
        sourceType:
          type: string
          enum:
            - cron
          description: Always cron for schedules.
        sourceConfig:
          type: object
          properties:
            cron:
              type: object
              properties:
                frequency:
                  type: string
                  enum:
                    - daily
                    - weekly
                    - monthly
                    - custom
                  description: How often the schedule runs.
                  example: weekly
                hour:
                  type: integer
                  minimum: 0
                  maximum: 23
                  description: Hour of the day to run, in UTC (0-23).
                  example: 9
                minute:
                  type: integer
                  minimum: 0
                  maximum: 59
                  description: Minute of the hour to run (0-59).
                  example: 0
                dayOfWeek:
                  type: integer
                  minimum: 0
                  maximum: 6
                  description: >-
                    Day of the week for weekly schedules, 0 (Sunday) to 6
                    (Saturday). Required when frequency is weekly.
                  example: 1
                dayOfMonth:
                  type: integer
                  minimum: 1
                  maximum: 31
                  description: >-
                    Day of the month for monthly schedules (1-31). Required when
                    frequency is monthly.
                  example: 1
                intervalDays:
                  type: integer
                  minimum: 2
                  maximum: 90
                  description: Run every N days (2-90). Required when frequency is custom.
                  example: 3
                anchorDate:
                  type: string
                  pattern: ^\d{4}-\d{2}-\d{2}$
                  description: >-
                    UTC calendar date (YYYY-MM-DD) a custom interval counts
                    from. Defaults to today.
                  example: '2026-09-03'
              required:
                - frequency
                - hour
                - minute
          required:
            - cron
          description: >-
            Replaces the cron settings as a whole. Send every cron field the
            frequency needs.
        targets:
          type: object
          properties:
            repositoryIds:
              type: array
              items:
                type: string
                minLength: 1
              description: >-
                GitHub integration IDs to generate from, as returned in the
                github array of GET /v1/integrations. Replaces the current
                GitHub targets; omit to keep them.
            linearIntegrationIds:
              type: array
              items:
                type: string
                minLength: 1
              description: >-
                Linear integration IDs to generate from, as returned in the
                linear array of GET /v1/integrations. When omitted, runs read
                every enabled Linear integration; send [] to read none. Replaces
                the current Linear targets; omit to keep them, send [] to remove
                them.
          description: >-
            Data source changes. The schedule must keep at least one GitHub or
            Linear integration.
        outputType:
          type: string
          enum:
            - changelog
            - blog_post
            - linkedin_post
            - twitter_post
            - image
          description: Type of content each run generates.
          example: changelog
        outputConfig:
          type:
            - object
            - 'null'
          properties:
            publishDestination:
              type:
                - string
                - 'null'
              enum:
                - webflow
                - framer
                - custom
                - null
              description: >-
                Deprecated and ignored. Auto-published posts are only marked as
                published in Notra; publish to GitHub or a Notra site from the
                post instead.
              deprecated: true
            brandVoiceId:
              type:
                - string
                - 'null'
              minLength: 1
              description: >-
                Brand identity ID to write in. Defaults to the organization's
                default brand identity.
              example: 51c2f3aa-efdd-4e28-8e69-23fa2dfd3561
            instructions:
              type:
                - string
                - 'null'
              minLength: 1
              maxLength: 2000
              description: >-
                Free-text brief for this schedule, passed to the writer on every
                run on top of the brand's custom instructions. Use it to steer
                the angle of the content, for example tutorial-style blog posts.
              example: >-
                Write a tutorial-style post that walks through one feature
                shipped in this window, with code samples.
            notify:
              type:
                - object
                - 'null'
              properties:
                slack:
                  type: boolean
                email:
                  type: boolean
              required:
                - slack
                - email
              description: >-
                Where to announce new content after a successful run: Slack
                posts to the organization's notification channel, email goes to
                the workspace owners.
              example:
                slack: true
                email: false
          description: >-
            Output setting changes, merged field by field into the current
            settings. Set a field to null to clear it, or send null to clear all
            of them.
        enabled:
          type: boolean
          description: >-
            Whether the schedule runs. Disabled schedules are stored but never
            fire.
          example: true
        autoPublish:
          type: boolean
          description: >-
            Publish generated changelogs and blog posts automatically instead of
            saving them as drafts. LinkedIn, X and image posts always stay
            drafts.
        lookbackWindow:
          type: string
          enum:
            - current_day
            - yesterday
            - last_7_days
            - last_14_days
            - last_30_days
          description: How far back each run collects source activity.
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
        recovery:
          type: string
      required:
        - error
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        Send your API key in the Authorization header as Bearer API_KEY. Account
        API keys work in every workspace you belong to: send
        X-Notra-Organization-Id with the workspace id or slug to choose one.
        Workspace endpoints require it when you belong to more than one
        workspace; GET /v1/me/workspaces works without it. Organization keys
        only accept their own workspace there.

````

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