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

# Update a skill

> Rename a skill, turn it on or off, or change its scope. Send only the fields you want to change. An inactive skill is kept, but agents stop using it. A built-in skill and a skill the key owner does not own return 404 Not Found.



## OpenAPI

````yaml /openapi.json put /skills/{skill_pid}
openapi: 3.1.0
info:
  title: Cominty API
  description: >-
    The HTTP API behind the Cominty Python SDK: chat and threads, memory, MCP
    integrations, agents, skills, document sources, and documents. Send your API
    key in the x-cominty-token header.
  version: main.5359267
servers:
  - url: https://ds.cominty.com
security:
  - comintyToken: []
paths:
  /skills/{skill_pid}:
    put:
      tags:
        - agents
        - skills
      summary: Update a skill
      description: >-
        Rename a skill, turn it on or off, or change its scope. Send only the
        fields you want to change. An inactive skill is kept, but agents stop
        using it. A built-in skill and a skill the key owner does not own return
        404 Not Found.
      operationId: update_skill_skills__skill_pid__put
      parameters:
        - name: skill_pid
          in: path
          required: true
          schema:
            type: string
            title: Skill Pid
          description: Identifier of the skill.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SkillUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SkillOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SkillUpdate:
      properties:
        display_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Display Name
          description: New name. 1 to 100 characters.
        active:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Active
          description: false keeps the skill but agents stop using it.
        scope:
          anyOf:
            - $ref: '#/components/schemas/Scope'
            - type: 'null'
          description: private or organization.
      additionalProperties: false
      type: object
      title: SkillUpdate
    SkillOut:
      properties:
        id:
          type: string
          title: Id
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: When the default version was uploaded.
        display_name:
          type: string
          title: Display Name
        active:
          type: boolean
          title: Active
        scope:
          anyOf:
            - $ref: '#/components/schemas/Scope'
            - type: 'null'
          description: null for a built-in skill.
        frontmatter:
          $ref: '#/components/schemas/SkillFrontmatter'
        source:
          $ref: '#/components/schemas/SkillSource'
          readOnly: true
          description: >-
            cominty for a built-in, read-only skill. custom for one you
            uploaded.
      additionalProperties: false
      type: object
      required:
        - id
        - created_at
        - updated_at
        - display_name
        - active
        - scope
        - frontmatter
        - source
      title: SkillOut
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    Scope:
      type: string
      enum:
        - organization
        - private
      title: Scope
    SkillFrontmatter:
      properties:
        name:
          type: string
          title: Name
        description:
          type: string
          title: Description
        license:
          anyOf:
            - type: string
            - type: 'null'
          title: License
        compatibility:
          anyOf:
            - type: string
            - type: 'null'
          title: Compatibility
        metadata:
          additionalProperties:
            type: string
          type: object
          title: Metadata
        allowed_tools:
          items:
            type: string
          type: array
          title: Allowed Tools
      additionalProperties: false
      type: object
      required:
        - name
        - description
        - license
        - compatibility
        - metadata
        - allowed_tools
      title: SkillFrontmatter
    SkillSource:
      type: string
      enum:
        - cominty
        - custom
      title: SkillSource
    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
  securitySchemes:
    comintyToken:
      type: apiKey
      in: header
      name: x-cominty-token
      description: >-
        A Cominty Platform API secret. A key created now starts with sk-cmt-.
        Send it as is, or as Bearer sk-cmt-..., with at most one Bearer prefix.
        A key created before the prefix existed has no sk-cmt- and still works.

````

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