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

# Rename Template Section

> Rename a section in an existing template. Provide the full new name (e.g., '2.1 Efficacy Results').



## OpenAPI

````yaml /api-reference/openapi-v1.json put /api/v1/templates/{template_id}/sections/{section_id}/rename
openapi: 3.0.0
info:
  title: Artos API
  description: API for document generation, template management, and document organization
  version: 1.0.0
  contact:
    name: Artos Support
    email: internal@artosai.com
servers:
  - url: https://api.artosai.com
    description: Production server
  - url: http://localhost:8000
    description: Local development server
security:
  - bearerAuth: []
paths:
  /api/v1/templates/{template_id}/sections/{section_id}/rename:
    put:
      tags:
        - Templates
      summary: Rename Template Section
      description: >-
        Rename a section in an existing template. Provide the full new name
        (e.g., '2.1 Efficacy Results').
      operationId: renameTemplateSection
      parameters:
        - name: template_id
          in: path
          required: true
          description: UUID of template
          schema:
            type: string
        - name: section_id
          in: path
          required: true
          description: UUID of section to rename
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RenameSectionRequest'
            example:
              section_name: 2.1 Efficacy Results
      responses:
        '200':
          description: Section renamed successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RenameSectionResponse'
        '400':
          description: Authentication errors
        '403':
          description: Unauthorized access
        '404':
          description: Template or section not found
        '500':
          description: Database operation failures
components:
  schemas:
    RenameSectionRequest:
      type: object
      properties:
        section_name:
          type: string
          description: New name/title for the section (e.g., '2.1 Efficacy Results')
      required:
        - section_name
    RenameSectionResponse:
      type: object
      properties:
        section_id:
          type: string
          description: UUID of the renamed section
        section_name:
          type: string
          description: Updated section name
        message:
          type: string
          description: Success message
      required:
        - section_id
        - section_name
        - message
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Bearer token authentication. Token provides organization-scoped access.

````