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

# Duplicate Skill

> API key permission: Skills (Admin also opens it).



## OpenAPI

````yaml /api-reference/openapi.json post /skills/{skill_id}/duplicate
openapi: 3.1.0
info:
  title: Neural Factory API
  version: 0.1.0
  description: >-
    The endpoints a program can call with an API key. Exchange the key's secret
    for a token at POST /apikeys/token and send it as a Bearer token.
servers:
  - url: https://api.neuralfactory.ai
    description: SaaS
  - url: https://{apiHost}
    description: 'Enterprise: the API address of your own deployment'
    variables:
      apiHost:
        default: api.example.com
        description: Your deployment's API host
security:
  - bearerAuth: []
tags:
  - name: API keys
  - name: Chat
  - name: Runs
  - name: Agents
  - name: Workflows
  - name: Schedules
  - name: Knowledge bases
  - name: Documents
  - name: Search
  - name: Skills
  - name: Toolkits
  - name: Files
  - name: Interactions
  - name: Usage and billing
  - name: Catalogue
  - name: Browser
  - name: Users
  - name: Groups
  - name: Builds
paths:
  /skills/{skill_id}/duplicate:
    post:
      tags:
        - Skills
      summary: Duplicate Skill
      description: 'API key permission: Skills (Admin also opens it).'
      operationId: duplicate_skill_skills__skill_id__duplicate_post
      parameters:
        - name: skill_id
          in: path
          required: true
          schema:
            type: string
            title: Skill Id
        - name: env
          in: query
          required: false
          schema:
            title: Env
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SkillEntry'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SkillEntry:
      properties:
        id:
          type: string
          title: Id
        display_name:
          type: string
          title: Display Name
        name:
          type: string
          title: Name
        description:
          type: string
          title: Description
        files:
          items:
            $ref: '#/components/schemas/SkillFileEntry'
          type: array
          title: Files
          default: []
        total_size:
          type: integer
          title: Total Size
          default: 0
        organization_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Organization Id
        created_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Created By
        created_by_email:
          anyOf:
            - type: string
            - type: 'null'
          title: Created By Email
        visibility:
          type: string
          title: Visibility
          default: private
        allowed_user_ids:
          items:
            type: string
          type: array
          title: Allowed User Ids
          default: []
        allowed_group_ids:
          items:
            type: string
          type: array
          title: Allowed Group Ids
          default: []
        source:
          type: string
          enum:
            - manual
            - upload
            - ai_generated
            - system
          title: Source
          default: manual
        used_by_agents:
          type: integer
          title: Used By Agents
          default: 0
        active_version:
          anyOf:
            - type: integer
            - type: 'null'
          title: Active Version
        published_revision:
          anyOf:
            - type: integer
            - type: 'null'
          title: Published Revision
        latest_version:
          type: integer
          title: Latest Version
          default: 0
        has_unpublished_changes:
          type: boolean
          title: Has Unpublished Changes
          default: false
        created_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created At
        updated_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Updated At
      type: object
      required:
        - id
        - display_name
        - name
        - description
      title: SkillEntry
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SkillFileEntry:
      properties:
        path:
          type: string
          title: Path
        size:
          type: integer
          title: Size
      type: object
      required:
        - path
        - size
      title: SkillFileEntry
    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:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        The access_token returned by POST /apikeys/token for an API key's
        secret.

````

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