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

# Update Scripture

> Update metadata on a scripture. Pass `displayOrder` to reorder; subsequent siblings shift automatically.



## OpenAPI

````yaml PATCH /scriptures/{scriptureId}
openapi: 3.1.0
info:
  title: Haystack API
  description: Content management and semantic search API for Haystack
  version: 2.0.0
  contact:
    name: Haystack Support
    email: support@thehaystack.ai
    url: https://thehaystack.ai
servers:
  - url: https://api.thehaystack.ai/v2/haystack
    description: Production server
security:
  - bearerAuth: []
tags:
  - name: Items
    description: Content item management
  - name: Collections
    description: Top-level content organization
  - name: Series
    description: Multi-part content grouping
  - name: Speakers
    description: Content presenter management
  - name: Media
    description: Video and audio asset management
  - name: Search
    description: Semantic content search
  - name: Analytics
    description: Usage statistics and metrics
  - name: Resources
    description: Attach supplementary files, links, and videos to items
  - name: Scriptures
    description: Attach Bible references to items
  - name: Chapters
    description: Time-based chapter markers on media assets
  - name: Stats
    description: Analytics and reporting
  - name: Frontend
    description: Public frontend configuration
paths:
  /scriptures/{scriptureId}:
    patch:
      tags:
        - Scriptures
      summary: Update scripture
      description: >-
        Update metadata on a scripture. Pass `displayOrder` to reorder;
        subsequent siblings shift automatically.
      parameters:
        - name: scriptureId
          in: path
          required: true
          schema:
            type: integer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                book:
                  type: string
                chapter:
                  type: integer
                verseStart:
                  type: integer
                  nullable: true
                verseEnd:
                  type: integer
                  nullable: true
                keyVerse:
                  type: boolean
                accepted:
                  type: boolean
                  description: Only valid for suggested scriptures
                suggested:
                  type: boolean
                displayOrder:
                  type: integer
      responses:
        '200':
          description: Updated scripture
          content:
            application/json:
              schema:
                type: object
                properties:
                  scripture:
                    $ref: '#/components/schemas/Scripture'
components:
  schemas:
    Scripture:
      type: object
      properties:
        id:
          type: integer
        itemId:
          type: integer
        book:
          type: string
          description: Lowercase book key, e.g. "john"
        bookName:
          type: string
          description: Display name of the book, e.g. "John"
        chapter:
          type: integer
        verseStart:
          type: integer
          nullable: true
        verseEnd:
          type: integer
          nullable: true
        citation:
          type: string
          description: Formatted citation string, e.g. "John 3:16-18"
        keyVerse:
          type: boolean
        suggested:
          type: boolean
          description: True if AI-suggested, awaiting acceptance
        accepted:
          type: boolean
          nullable: true
          description: For suggested scriptures; null otherwise
        displayOrder:
          type: integer
          nullable: true
        text:
          type: string
          nullable: true
          description: Bible text; populated when requested with a translation
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Enter your API token from the Haystack dashboard

````