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

# Replace PAL Skills

> Replace a PAL's entire skill set in one call. Skills not present in the request are detached.


<Info>
  For AI agents, use `https://docs.tavus.io/openapi.yaml` for the full HTTP API contract.
</Info>


## OpenAPI

````yaml put /v2/pals/{pal_id}/skills
openapi: 3.0.3
info:
  title: Tavus Developer API Collection
  version: 1.0.0
  contact: {}
servers:
  - url: https://tavusapi.com
security:
  - apiKey: []
tags:
  - name: Videos
  - name: Faces
  - name: Voices
  - name: Conversations
  - name: Deployments
  - name: PALs
  - name: Tools
  - name: PAL Tools
  - name: Pronunciation Dictionaries
  - name: Replacements
  - name: Transcriptions
  - name: Documents
paths:
  /v2/pals/{pal_id}/skills:
    parameters:
      - name: pal_id
        in: path
        required: true
        description: The unique identifier of the PAL.
        schema:
          type: string
          example: pcb7a34da5fe
    put:
      tags:
        - Skills
      summary: Replace PAL Skills
      description: >
        Replace a PAL's entire skill set in one call. Skills not present in the
        request are detached.
      operationId: replacePersonaSkills
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                skills:
                  type: object
                  description: >-
                    The complete skill set for the PAL, keyed by `skill_id`.
                    Each value holds that skill's `config` object (omit or pass
                    `{}` for skills with no configuration).
                  additionalProperties:
                    type: object
                    properties:
                      config:
                        type: object
                        description: >-
                          The configuration for this skill. Validated against
                          the skill's config schema.
                  example:
                    internet_search: {}
                    presentation:
                      config:
                        document_ids:
                          - d1234567890
                        slides_trigger: on_demand
                    magic_canvas:
                      config: {}
              required:
                - skills
        required: true
      responses:
        '200':
          description: Successfully replaced the PAL's skill attachments
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    description: The PAL's new skill attachments keyed by `skill_id`.
                    additionalProperties:
                      $ref: '#/components/schemas/SkillAttachment'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: >-
                      Bad Request: {'skills': {'presentation': {'config':
                      {'document_ids': ['Missing data for required field.']}}}}
        '401':
          description: UNAUTHORIZED
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Invalid access token
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Unknown skill 'my_skill'
      security:
        - apiKey: []
components:
  schemas:
    SkillAttachment:
      type: object
      description: A skill attached to a PAL.
      properties:
        skill_id:
          type: string
          description: The unique identifier of the attached skill.
          example: presentation
        config:
          type: object
          description: >
            The skill's configuration. Empty object for skills with no
            configuration.


            Shape depends on `skill_id` - see
            [Skills](/sections/conversational-video-interface/skills/overview).
            For `magic_canvas`, `config.components` is a sparse overlay; see
            [Canvas
            configuration](/sections/conversational-video-interface/magic-canvas/api/configuration).
          example:
            document_ids:
              - d1234567890
              - d2468101214
            slides_trigger: walk_the_deck
            prompt: Walk the participant through the Q4 roadmap deck.
        attached_at:
          type: string
          description: ISO 8601 timestamp of when the skill was first attached to the PAL.
          example: '2026-06-10T14:30:45.123456+00:00'
        updated_at:
          type: string
          description: ISO 8601 timestamp of when the attachment was last modified.
          example: '2026-06-10T14:30:45.123456+00:00'
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````