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

# Set Project Skill Library

> Link the project to a skill library (#432, ADR-0031): another project
whose skills it resolves from then on, instead of its own — its library
is the only place its agents' skill names are looked up. `null` unlinks
it. Requires the platform credential (X-Platform-Key): no API key, admin
included, can make its project read another's skills. A 422 for the
project itself, a project that is missing or deleted, a project linked
to a library of its own, or linking a project other projects read from
(no chains). Applies to the next call, message or save; a call already
running keeps the skills it resolved.



## OpenAPI

````yaml /openapi.json put /v1/projects/{project_id}/skill-library
openapi: 3.1.0
info:
  title: TurnCall
  description: Production voice agent platform API
  version: 2.1.1
servers: []
security: []
paths:
  /v1/projects/{project_id}/skill-library:
    put:
      tags:
        - projects
      summary: Set Project Skill Library
      description: |-
        Link the project to a skill library (#432, ADR-0031): another project
        whose skills it resolves from then on, instead of its own — its library
        is the only place its agents' skill names are looked up. `null` unlinks
        it. Requires the platform credential (X-Platform-Key): no API key, admin
        included, can make its project read another's skills. A 422 for the
        project itself, a project that is missing or deleted, a project linked
        to a library of its own, or linking a project other projects read from
        (no chains). Applies to the next call, message or save; a call already
        running keeps the skills it resolved.
      operationId: set_project_skill_library_v1_projects__project_id__skill_library_put
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Project Id
        - name: x-platform-key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Platform-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProjectSkillLibrary'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: >-
                  Response Set Project Skill Library V1 Projects  Project Id 
                  Skill Library Put
          headers:
            X-TurnCall-Audit-Id:
              description: >-
                The id of the audit log entry for this request's primary
                resource. Every entry the request wrote (a publish also archives
                versions and re-points numbers) carries it as `request_id`: `GET
                /v1/audit-log?request_id=<this id>` returns them all.
              schema:
                type: string
                format: uuid
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ProjectSkillLibrary:
      properties:
        library_project_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Library Project Id
          description: >-
            The skill library's project id, or null to unlink. Required: a PUT
            naming nothing must not unlink the project
      additionalProperties: false
      type: object
      required:
        - library_project_id
      title: ProjectSkillLibrary
      description: |-
        The project whose skills this project resolves (#432, ADR-0031): its
        skill library, the only place its agents' skill names are looked up.
        Null = none, the project's own skills. Set only with the platform
        credential.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.