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

# Asynchronous Endpoint To Save Documentation Task

> Initiates an asynchronous task to save table documentation including descriptions and a data preview.




## OpenAPI

````yaml post /v3/semantic_model/save_documentation_task/{rag_config_id}/{table_name}
openapi: 3.0.0
info:
  title: Lyzr Semantic Model - Save Documentation Task
  version: v3
  description: >
    Asynchronously saves documentation for a specified table including table and
    column descriptions along with a preview of the data.
servers:
  - url: https://agent-prod.studio.lyzr.ai
security:
  - ApiKeyAuth: []
paths:
  /v3/semantic_model/save_documentation_task/{rag_config_id}/{table_name}:
    post:
      summary: Save Documentation Task Endpoint
      description: >
        Initiates an asynchronous task to save table documentation including
        descriptions and a data preview.
      operationId: saveDocumentationTask
      parameters:
        - name: rag_config_id
          in: path
          required: true
          schema:
            type: string
          example: gtyhyf
          description: The configuration ID for RAG
        - name: table_name
          in: path
          required: true
          schema:
            type: string
          example: yfvbv
          description: The name of the table
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                descriptions:
                  type: object
                  properties:
                    table_name:
                      type: string
                    table_description:
                      type: string
                    columns:
                      type: array
                      items:
                        type: object
                        properties:
                          name:
                            type: string
                          description:
                            type: string
                          type:
                            type: string
                table_preview:
                  type: array
                  items:
                    type: object
                    additionalProperties: true
            example:
              descriptions:
                table_name: string
                table_description: string
                columns:
                  - name: string
                    description: string
                    type: string
              table_preview:
                - additionalProp1: {}
      responses:
        '200':
          description: Task created successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  task_id:
                    type: string
                    format: uuid
              example:
                task_id: aa1c8ff4-1c39-4a63-9c56-df77eab86eb6
        '422':
          description: Validation Error
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````