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

# Update a skill by ID



## OpenAPI

````yaml put /apps/{alias}/skills/{id}
openapi: 3.0.1
info:
  title: Elementum API
  description: ''
  contact:
    email: apiteam@elementum.io
  version: 0.0.1
servers:
  - url: /v1
security: []
tags:
  - name: Access Token
    description: Manage access tokens using OAuth 2.0 standards
  - name: Agents
    description: Manage AI agents
  - name: Apps
    description: Compose and manage apps
  - name: Attachments
    description: Manage the attachments of a record
  - name: Automations
    description: Manage automations
  - name: Comments
    description: Manage the conversation of a record
  - name: Flows
    description: Manage flows
  - name: Groups
    description: Manage groups and group membership
  - name: Domains
    description: Manage organization domains
  - name: Records
    description: Manage your records
  - name: Related-items
    description: Manage the related items of a record
  - name: Search Tables
    description: Manage search tables (snowflake and linked)
  - name: Skills
    description: Manage agent skills
  - name: Tables
    description: 'Manage tables: schemas, fields, joins, and join mappings'
  - name: Users
    description: Manage users in your organization
  - name: Views
    description: Manage app views
  - name: Watchers
    description: Manage the watchers of a record
externalDocs:
  description: Find out more about Elementum
  url: https://www.elementum.com/
paths:
  /apps/{alias}/skills/{id}:
    put:
      tags:
        - Skills
      summary: Update a skill by ID
      operationId: updateSkill
      parameters:
        - $ref: '#/components/parameters/alias'
        - $ref: '#/components/parameters/passthroughId'
      requestBody:
        description: Skill update request
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SkillBundleUpdateRequest'
        required: true
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Skill'
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '422':
          $ref: '#/components/responses/422'
        '429':
          $ref: '#/components/responses/429'
        '500':
          $ref: '#/components/responses/500'
      security:
        - ClientCredentials: []
components:
  parameters:
    alias:
      name: alias
      in: path
      description: The app's namespace or its UUID
      required: true
      schema:
        type: string
        format: string
    passthroughId:
      name: id
      in: path
      description: The resource ID
      required: true
      schema:
        type: string
        format: string
  schemas:
    SkillBundleUpdateRequest:
      required:
        - skill
      type: object
      properties:
        skill:
          $ref: '#/components/schemas/SkillUpdateInput'
        tools:
          type: array
          description: >-
            Optional tool list. If present, the skill's existing tools are
            replaced with this list.
          items:
            type: object
            additionalProperties: true
      description: Body for PUT /v1/apps/{alias}/skills/{id}.
    Skill:
      type: object
      properties:
        instructions:
          type: string
          description: System prompt steering the skill's behavior
        app:
          $ref: '#/components/schemas/Aspect'
        status:
          type: string
          description: Lifecycle status of the skill
          enum:
            - ACTIVE
            - INACTIVE
            - DRAFT
        tools:
          type: object
          additionalProperties: true
          description: Connection of tools attached to the skill
        id:
          type: string
          description: The skill ID
          format: uuid
        properties:
          type: object
          additionalProperties: true
          description: Type-specific skill configuration
        name:
          type: string
          description: The skill's display name
        type:
          type: string
          description: Skill kind
          enum:
            - INTERNAL
            - CUSTOM
        description:
          type: string
          description: Short summary of what the skill does
      description: A skill returned by the skills endpoints.
    SkillUpdateInput:
      type: object
      properties:
        status:
          type: string
          description: Lifecycle status of the skill
          enum:
            - ACTIVE
            - INACTIVE
            - DRAFT
        instructions:
          type: string
          description: System prompt steering the skill's behavior
        type:
          type: string
          description: Skill kind
          enum:
            - INTERNAL
            - CUSTOM
        discoveryProperties:
          $ref: '#/components/schemas/SkillDiscoveryProperties'
        properties:
          type: object
          additionalProperties: true
          description: Type-specific skill configuration
        description:
          type: string
          description: Short summary of what the skill does
        name:
          type: string
          description: The skill's display name
      description: Skill fields to change. Omitted fields keep their current value.
    Aspect:
      type: object
      properties:
        category:
          $ref: '#/components/schemas/AspectCategoryRef'
        configured:
          type: boolean
          description: Whether the aspect has been fully configured
        status:
          type: string
          description: Lifecycle status (DRAFT, ACTIVE, ARCHIVED, …)
        description:
          type: string
          description: The aspect description
        __typename:
          type: string
          description: >-
            The aspect variant (AspectApp, AspectElement, AspectTask,
            AspectTransaction)
        icon:
          type: string
          description: The aspect icon
        namespace:
          type: string
          description: The aspect namespace (lowercase identifier used in URLs)
        handle:
          type: string
          description: The aspect handle (uppercase identifier used in record handles)
        readOnly:
          type: boolean
        sourceType:
          $ref: '#/components/schemas/AspectSourceType'
        color:
          type: string
          description: The aspect color
        id:
          type: string
          description: The aspect ID
          format: uuid
        name:
          type: string
          description: The aspect display name
    SkillDiscoveryProperties:
      type: object
      properties:
        routingPriority:
          type: number
          description: Tie-breaker weight when multiple skills match
        negativeKeywords:
          type: array
          description: Keywords that disfavour selecting this skill
          items:
            type: string
        positiveKeywords:
          type: array
          description: Keywords that favour selecting this skill
          items:
            type: string
        aliases:
          type: array
          description: Alternate names the skill can be referred to by
          items:
            type: string
        exampleUtterances:
          type: array
          description: Sample phrases that should route to this skill
          items:
            type: string
      description: Optional metadata that tunes how the skill is discovered and routed to.
    AspectCategoryRef:
      type: object
      properties:
        name:
          type: string
          description: The category name
        id:
          type: string
          description: The category ID
          format: uuid
    AspectSourceType:
      type: string
      description: >-
        Where an aspect's data lives. ELEMENTUM = native; SNOWFLAKE = imported
        from a connected Snowflake table.
      enum:
        - ELEMENTUM
        - SNOWFLAKE
  responses:
    '400':
      description: Bad Request
    '401':
      description: Unauthorized
    '403':
      description: Forbidden
    '404':
      description: Not Found
    '422':
      description: Unprocessable Entity
    '429':
      description: Too Many Requests
    '500':
      description: Internal Server Error
  securitySchemes:
    ClientCredentials:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: /oauth/token
          scopes: {}

````

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