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

# Change a prompt

> Changes what is sent and keeps the rest. Statisfy's prompts can't change (409), and someone else's is a 403. Needs prompts:write and a person's own key: a prompt belongs to whoever saves it, and only they change it.



## OpenAPI

````yaml /api/statisfy-api.openapi.json patch /v1/prompts/{prompt_id}
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/prompts/{prompt_id}:
    patch:
      tags:
        - prompts
      summary: Change a prompt
      description: >-
        Changes what is sent and keeps the rest. Statisfy's prompts can't change
        (409), and someone else's is a 403. Needs prompts:write and a person's
        own key: a prompt belongs to whoever saves it, and only they change it.
      operationId: prompts_update
      parameters:
        - description: The prompt's id, from GET /v1/prompts
          in: path
          name: prompt_id
          required: true
          schema:
            maxLength: 64
            type: string
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                context:
                  anyOf:
                    - enum:
                        - global
                        - account
                      type: string
                    - type: 'null'
                  default: null
                  title: Context
                prompt:
                  anyOf:
                    - maxLength: 20000
                      minLength: 1
                      type: string
                    - type: 'null'
                  default: null
                  title: Prompt
                title:
                  anyOf:
                    - maxLength: 255
                      minLength: 1
                      type: string
                    - type: 'null'
                  default: null
                  title: Title
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Prompt'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    Prompt:
      properties:
        categories:
          description: Statisfy's categories, or the workspace's tags
          items:
            type: string
          title: Categories
          type: array
        context:
          description: global (Stella's home) or account (an account's page)
          enum:
            - global
            - account
          title: Context
          type: string
        created_by:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Who saved it, an id from GET /v1/objects/user/records; null for
            Statisfy's, or a user who is gone
          title: Created By
        editable:
          description: Whether this key's person saved it, and so may change it
          title: Editable
          type: boolean
        id:
          title: Id
          type: string
        prompt:
          description: The text that goes into the chat box when someone picks it
          title: Prompt
          type: string
        source:
          description: >-
            statisfy (shipped by Statisfy, read-only), company (saved for the
            whole workspace) or personal (saved by one person)
          enum:
            - statisfy
            - company
            - personal
          title: Source
          type: string
        title:
          title: Title
          type: string
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
          description: ISO 8601 UTC
          title: Updated At
      required:
        - id
        - title
        - prompt
        - source
        - context
        - categories
        - created_by
        - editable
        - updated_at
      title: Prompt
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

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