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

# Update content



## OpenAPI

````yaml /api-reference/openapi.json patch /api/v1/content/{id}
openapi: 3.1.0
info:
  title: The Prompting Company API
  version: 0.1.0
  description: >-
    Machine-readable contract for The Prompting Company organization-scoped API
    routes.
  contact:
    name: The Prompting Company
    url: https://promptingcompany.com/support
    email: support@promptingcompany.com
  license:
    name: Proprietary
    url: https://promptingcompany.com/terms
  termsOfService: https://promptingcompany.com/terms
servers:
  - url: https://app.promptingco.com
    description: Production
  - url: http://localhost:3000
    description: Local development
security: []
tags:
  - name: Visibility & Mentions
  - name: Knowledge
  - name: Content
  - name: Simulations
  - name: Apps & Publishing
paths:
  /api/v1/content/{id}:
    patch:
      tags:
        - Content
      summary: Update content
      operationId: patchContentId
      parameters:
        - schema:
            type: string
            minLength: 1
          required: true
          name: id
          in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                priority:
                  type: number
                  minimum: 0
                  maximum: 100
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    enum:
                      - true
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                      createdAt:
                        type: string
                        format: date-time
                      updatedAt:
                        type: string
                        format: date-time
                      deletedAt:
                        type:
                          - string
                          - 'null'
                        format: date-time
                      filePath:
                        type: string
                      title:
                        type: string
                      content:
                        type: string
                      sourceUrl:
                        type: string
                      cssSelector:
                        type:
                          - string
                          - 'null'
                      sourceChecksum:
                        type:
                          - string
                          - 'null'
                      brandId:
                        type: string
                      cssExcludeSelector:
                        type:
                          - string
                          - 'null'
                      isManual:
                        type: boolean
                      lastIndexedAt:
                        type:
                          - string
                          - 'null'
                        format: date-time
                      canonicalUrl:
                        type:
                          - string
                          - 'null'
                      description:
                        type:
                          - string
                          - 'null'
                      image:
                        type:
                          - string
                          - 'null'
                      metaDescription:
                        type:
                          - string
                          - 'null'
                      metaTitle:
                        type:
                          - string
                          - 'null'
                      metadata: {}
                      noIndex:
                        type:
                          - boolean
                          - 'null'
                      ogDescription:
                        type:
                          - string
                          - 'null'
                      ogImage:
                        type:
                          - string
                          - 'null'
                      ogTitle:
                        type:
                          - string
                          - 'null'
                      twitterDescription:
                        type:
                          - string
                          - 'null'
                      twitterImage:
                        type:
                          - string
                          - 'null'
                      twitterTitle:
                        type:
                          - string
                          - 'null'
                      tiptapJson:
                        deprecated: true
                        description: >-
                          Deprecated. Retained for backward compatibility; use
                          Markdown content instead.
                      descriptionForAgent:
                        type:
                          - string
                          - 'null'
                      type:
                        type: string
                      tags:
                        type:
                          - array
                          - 'null'
                        items:
                          type: string
                      currentDraftId:
                        type:
                          - string
                          - 'null'
                      publishedAt:
                        type:
                          - string
                          - 'null'
                        format: date-time
                      status:
                        type: string
                      priority:
                        type:
                          - integer
                          - 'null'
                      promptId:
                        type:
                          - string
                          - 'null'
                      redirectToUrl:
                        type:
                          - string
                          - 'null'
                    required:
                      - id
                      - createdAt
                      - updatedAt
                      - deletedAt
                      - filePath
                      - title
                      - content
                      - sourceUrl
                      - cssSelector
                      - sourceChecksum
                      - brandId
                      - cssExcludeSelector
                      - isManual
                      - lastIndexedAt
                      - canonicalUrl
                      - description
                      - image
                      - metaDescription
                      - metaTitle
                      - noIndex
                      - ogDescription
                      - ogImage
                      - ogTitle
                      - twitterDescription
                      - twitterImage
                      - twitterTitle
                      - descriptionForAgent
                      - type
                      - tags
                      - currentDraftId
                      - publishedAt
                      - status
                      - priority
                      - promptId
                      - redirectToUrl
                    additionalProperties: {}
                required:
                  - ok
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    enum:
                      - false
                  code:
                    type: string
                  message:
                    type: string
                  details: {}
                required:
                  - ok
                  - code
                  - message
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    enum:
                      - false
                  code:
                    type: string
                  message:
                    type: string
                  details: {}
                required:
                  - ok
                  - code
                  - message
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    enum:
                      - false
                  code:
                    type: string
                  message:
                    type: string
                  details: {}
                required:
                  - ok
                  - code
                  - message
        '404':
          description: Not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    enum:
                      - false
                  code:
                    type: string
                  message:
                    type: string
                  details: {}
                required:
                  - ok
                  - code
                  - message
        '422':
          description: Validation failed
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    enum:
                      - false
                  code:
                    type: string
                  message:
                    type: string
                  details: {}
                required:
                  - ok
                  - code
                  - message
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    enum:
                      - false
                  code:
                    type: string
                  message:
                    type: string
                  details: {}
                required:
                  - ok
                  - code
                  - message
      security:
        - apiKeyAuth: []
        - bearerAuth: []
        - cookieAuth: []
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Organization-scoped API key. Available scopes:

        - content:read: Read site pages, markdown content, and llms.txt files

        - content:write: Create, update, and delete site pages and content

        - prompts:read: Read prompts, topics, and prompt analysis results

        - prompts:write: Create, update, archive prompts

        - simulations:read: Read agent-simulation tasks, runs, environments, and
        analytics

        - simulations:write: Create and trigger simulation runs

        - logs:read: Read AI-traffic logs and request-level audit events

        - analytics:read: Read analytics aggregates (rankings, mentions,
        sources, SOV)

        - products:read: Read product metadata and competitor data

        - products:write: Update product settings and competitor lists
      x-scopes:
        content:read: Read site pages, markdown content, and llms.txt files
        content:write: Create, update, and delete site pages and content
        prompts:read: Read prompts, topics, and prompt analysis results
        prompts:write: Create, update, archive prompts
        simulations:read: Read agent-simulation tasks, runs, environments, and analytics
        simulations:write: Create and trigger simulation runs
        logs:read: Read AI-traffic logs and request-level audit events
        analytics:read: Read analytics aggregates (rankings, mentions, sources, SOV)
        products:read: Read product metadata and competitor data
        products:write: Update product settings and competitor lists
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Bearer session or OAuth access token. Available OAuth scopes:

        - content:read: Read site pages, markdown content, and llms.txt files

        - content:write: Create, update, and delete site pages and content

        - prompts:read: Read prompts, topics, and prompt analysis results

        - prompts:write: Create, update, archive prompts

        - simulations:read: Read agent-simulation tasks, runs, environments, and
        analytics

        - simulations:write: Create and trigger simulation runs

        - logs:read: Read AI-traffic logs and request-level audit events

        - analytics:read: Read analytics aggregates (rankings, mentions,
        sources, SOV)

        - products:read: Read product metadata and competitor data

        - products:write: Update product settings and competitor lists
      x-scopes:
        content:read: Read site pages, markdown content, and llms.txt files
        content:write: Create, update, and delete site pages and content
        prompts:read: Read prompts, topics, and prompt analysis results
        prompts:write: Create, update, archive prompts
        simulations:read: Read agent-simulation tasks, runs, environments, and analytics
        simulations:write: Create and trigger simulation runs
        logs:read: Read AI-traffic logs and request-level audit events
        analytics:read: Read analytics aggregates (rankings, mentions, sources, SOV)
        products:read: Read product metadata and competitor data
        products:write: Update product settings and competitor lists
    cookieAuth:
      type: apiKey
      in: cookie
      name: better-auth.session_token
      description: First-party browser session cookie.

````