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

# Upload a skill version

> Upload a new zip for a skill (same layouts as POST /skills). The new version becomes the default, and frontmatter and updated_at describe it. Versions are tagged to the second: two uploads of the same skill within one second collide and return 500, so space them out. Success is 201.



## OpenAPI

````yaml /openapi.json post /skills/{skill_pid}/versions
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}/versions:
    post:
      tags:
        - agents
        - skills
      summary: Upload a skill version
      description: >-
        Upload a new zip for a skill (same layouts as POST /skills). The new
        version becomes the default, and frontmatter and updated_at describe it.
        Versions are tagged to the second: two uploads of the same skill within
        one second collide and return 500, so space them out. Success is 201.
      operationId: add_skill_version_skills__skill_pid__versions_post
      parameters:
        - name: skill_pid
          in: path
          required: true
          schema:
            type: string
            title: Skill Pid
          description: Identifier of the skill.
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: >-
                #/components/schemas/Body_add_skill_version_skills__skill_pid__versions_post
      responses:
        '201':
          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:
    Body_add_skill_version_skills__skill_pid__versions_post:
      properties:
        file:
          type: string
          contentMediaType: application/octet-stream
          title: File
          description: Zip archive of at most 30 MB, with the same layouts as POST /skills.
      type: object
      required:
        - file
      title: Body_add_skill_version_skills__skill_pid__versions_post
    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.