> ## 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.

# Update Outline

> Full replacement (PUT) of an outline. All existing sections are deleted and replaced with the provided structure.



## OpenAPI

````yaml /api-reference/openapi-v1.json put /api/v1/mrt-outlines/{outline_id}
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/mrt-outlines/{outline_id}:
    put:
      tags:
        - Outlines
      summary: Update Outline
      description: >-
        Full replacement (PUT) of an outline. All existing sections are deleted
        and replaced with the provided structure.
      operationId: updateOutline
      parameters:
        - name: outline_id
          in: path
          required: true
          description: UUID of outline
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateOutlineRequest'
      responses:
        '200':
          description: Outline updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetOneMRTOutlineResponse'
        '400':
          description: Invalid outline structure
        '401':
          description: Authentication failed
        '403':
          description: User not authorized
        '404':
          description: Outline not found
        '500':
          description: Database error
components:
  schemas:
    UpdateOutlineRequest:
      type: object
      properties:
        document_metadata:
          type: object
          description: Outline metadata
        connector_data_id:
          type: string
          nullable: true
          description: Data connector ID
        endpoint_analysis:
          type: string
          nullable: true
          description: Analysis text
        rule_type_to_table_like_status:
          type: object
          default: {}
          description: Rule type mappings
        sections:
          type: array
          items:
            type: object
          description: Section dictionaries with section_id, title, order_index
      required:
        - sections
    GetOneMRTOutlineResponse:
      type: object
      properties:
        outline:
          type: object
          description: Complete outline with sections
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Bearer token authentication. Token provides organization-scoped access.

````