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

# Update scheduled prompt



## OpenAPI

````yaml /openapi.json patch /v1/scheduled-prompts/{id}
openapi: 3.1.0
info:
  title: nOps Public API
  version: 1.0.0
  description: >-
    Programmatic access to nOps cost, budgets, cost allocation, Explorer
    dashboards, AI optimization, MAP manager, business unit economics, contract
    tracker, reports, recommendations, feed, scheduled prompts, and
    notifications. Authenticate with an API key (Bearer token). Available on
    Inform + Operate.
servers:
  - url: https://api.nops.io
    description: Production
security:
  - bearerApiKey: []
tags:
  - name: Recommendations
    description: Cost optimization recommendations.
  - name: Anomalies
    description: AWS cost anomaly detection.
  - name: Explorer
    description: Cost Explorer queries — summary, history, heatmap, and dimensions.
  - name: Budgets
    description: Budgets, planning grids, alerts, and exports.
  - name: Reports
    description: Saved reports — create, update, render, and send.
  - name: Feed
    description: Clara Feed runs and delivery history.
  - name: Scheduled prompts
    description: Scheduled Clara prompts and manual runs.
  - name: Notifications
    description: Schedule and manage notification deliveries.
  - name: Commitments
    description: Commitment inventory (reserved for future use).
  - name: Cost allocation
    description: Cost Allocation showbacks, rules, and spend analytics.
  - name: Explorer dashboards
    description: Explorer dashboard layouts and widgets.
  - name: AI optimization
    description: AI Optimization default dashboard and anomaly insights.
  - name: MAP Manager
    description: AWS Migration Acceleration Program (MAP) project tracking.
  - name: Business unit economics
    description: Business unit economics models, units, and portfolio summaries.
  - name: Contract tracker
    description: Enterprise contract tracking and burndown analytics.
paths:
  /v1/scheduled-prompts/{id}:
    patch:
      tags:
        - Scheduled prompts
      summary: Update scheduled prompt
      operationId: updateScheduledPrompt
      parameters:
        - schema:
            type: string
            description: Scheduled prompt ID
          required: true
          name: id
          in: path
        - schema:
            type: string
            maxLength: 64
            description: >-
              Unique key for safe retries on write requests (required, max 64
              characters).
          required: true
          name: Idempotency-Key
          in: header
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              description: JSON request body
              additionalProperties: true
            example:
              name: Weekly EC2 summary (updated)
      responses:
        '200':
          description: Update scheduled prompt
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    description: JSON object
                    additionalProperties: true
                required:
                  - data
              example:
                data:
                  prompt:
                    id: clxprompt01xyz
                    organizationId: org-1
                    nopsClientId: 42
                    createdById: user-1
                    canvasId: clxcanvas01
                    scope: private
                    name: Weekly EC2 summary (updated)
                    prompt: Summarize last week EC2 spend by account.
                    enabled: true
                    category: FinOps Analyst
                    domain: Compute
                    emailEnabled: true
                    emailRecipients:
                      - finops@example.com
                    emailSubject: Weekly EC2 summary
                    channelTargets:
                      - provider: slack
                        channelId: C01234567
                        channelName: finops-alerts
                    scheduleType: recurring
                    scheduledAt: '2026-07-20T14:00:00.000Z'
                    recurrenceFrequency: weekly
                    recurrenceTimezone: America/New_York
                    recurrenceWeekday: 1
                    recurrenceDayOfMonth: null
                    cronExpression: 0 14 * * 1
                    nextRunAt: '2026-07-20T18:00:00.000Z'
                    lastRunAt: null
                    createdAt: '2026-07-17T12:00:00.000Z'
                    updatedAt: '2026-07-17T12:00:00.000Z'
        '401':
          description: Unauthorized — invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiError'
              example:
                error:
                  code: forbidden_scope
                  message: 'API key is missing required scope: budgets:write'
                  request_id: 550e8400-e29b-41d4-a716-446655440000
        '403':
          description: Forbidden — insufficient permissions or entitlement
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiError'
              example:
                error:
                  code: forbidden_scope
                  message: 'API key is missing required scope: budgets:write'
                  request_id: 550e8400-e29b-41d4-a716-446655440000
      security:
        - bearerApiKey: []
components:
  schemas:
    PublicApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            request_id:
              type: string
          required:
            - code
            - message
            - request_id
      required:
        - error
  securitySchemes:
    bearerApiKey:
      type: http
      scheme: bearer
      description: >-
        API key from Settings → Security → API Keys. Pass as `Authorization:
        Bearer YOUR_API_KEY`.

````