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

# Update skill

> Update a skill. Requires an API key with `ep:skills:write` whose user administers skills in the account. A shared (`account`-scope) skill may be updated by any skill administrator; a private (`user`-scope) skill only by its author. Built-in skills and company overrides of them cannot have their content edited; `enabled` may still be toggled on an override.



## OpenAPI

````yaml patch /skills/{skill_id}
openapi: 3.0.3
info:
  version: 0.1.1
  title: Datagrid API
  description: Datagrid API
servers:
  - url: https://api.datagrid.com/v1
security:
  - BearerAuth: []
paths:
  /skills/{skill_id}:
    patch:
      tags:
        - Skills
      summary: Update skill
      description: >-
        Update a skill. Requires an API key with `ep:skills:write` whose user
        administers skills in the account. A shared (`account`-scope) skill may
        be updated by any skill administrator; a private (`user`-scope) skill
        only by its author. Built-in skills and company overrides of them cannot
        have their content edited; `enabled` may still be toggled on an
        override.
      operationId: UpdateSkill
      parameters:
        - name: skill_id
          in: path
          required: true
          description: The ID of the skill to update.
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateSkillRequest'
      responses:
        '200':
          description: Updated skill
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Skill'
        '403':
          description: >-
            Forbidden. The caller does not administer skills in this account, or
            the skill is private and the caller is not its author.
        '404':
          description: >-
            Not found. The skill does not exist or the caller does not have
            permission to view it.
        '409':
          description: A skill with the new slash key already exists for this scope.
        '429':
          description: Rate limit exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RateLimitError'
components:
  schemas:
    UpdateSkillRequest:
      type: object
      properties:
        name:
          type: string
          nullable: true
          maxLength: 255
          description: Display name of the skill.
        slash_key:
          type: string
          nullable: true
          maxLength: 255
          description: The slash command key. Must be unique within the scope.
        description:
          type: string
          nullable: true
          maxLength: 1000
          description: >-
            Short description. Pass an empty string to clear it and re-enable AI
            generation.
        instructions:
          type: string
          nullable: true
          description: The full instructions / system prompt.
        category:
          type: string
          nullable: true
          enum:
            - document_analysis
            - construction_project_management
            - financial_analysis
            - estimation
            - quality_and_safety
            - scheduling
            - contracts_and_legal
            - data_and_reporting
            - research
            - communication
            - general_productivity
          description: Category bucket.
        required_tools:
          type: array
          nullable: true
          items:
            type: string
          description: Tool identifiers required by this skill.
        preferred_tools:
          type: array
          nullable: true
          items:
            type: string
          description: Tool identifiers preferred by this skill.
        enabled:
          type: boolean
          nullable: true
          description: Whether the skill is active.
    Skill:
      type: object
      required:
        - object
        - id
        - scope
        - category
        - slash_key
        - name
        - description
        - instructions
        - required_tools
        - preferred_tools
        - enabled
        - account_id
        - builtin_key
        - promoted_at
        - creator_id
        - created_at
        - updated_at
      properties:
        object:
          type: string
          enum:
            - skill
          description: The object type, always 'skill'.
        id:
          type: string
          description: Unique identifier for the skill.
        scope:
          type: string
          enum:
            - user
            - account
            - builtin
          description: >-
            Ownership scope. `user` = private (author only), `account` =
            company-owned, `builtin` = global default.
        category:
          type: string
          enum:
            - document_analysis
            - construction_project_management
            - financial_analysis
            - estimation
            - quality_and_safety
            - scheduling
            - contracts_and_legal
            - data_and_reporting
            - research
            - communication
            - general_productivity
          description: Category bucket for grouping in the skill picker.
        slash_key:
          type: string
          description: >-
            The slash command key used to invoke this skill (e.g.
            `budget-check`).
        name:
          type: string
          description: Display name of the skill.
        description:
          type: string
          description: Short description shown in the skill picker.
        instructions:
          type: string
          description: The full instructions / system prompt for this skill.
        required_tools:
          type: array
          items:
            type: string
          description: Tool identifiers that this skill requires to function.
        preferred_tools:
          type: array
          items:
            type: string
          description: Tool identifiers that this skill works best with.
        enabled:
          type: boolean
          description: Whether the skill is active and available for selection.
        account_id:
          type: string
          nullable: true
          description: >-
            The account (company) that owns this skill. `null` for `user`-scope
            and `builtin` skills.
        builtin_key:
          type: string
          nullable: true
          description: >-
            For company overrides of built-in skills: the identifier of the
            underlying built-in. `null` for user-authored skills.
        promoted_at:
          type: string
          format: date-time
          nullable: true
          description: >-
            ISO timestamp when this skill was promoted to company scope. `null`
            for `user`-scope skills.
        creator_id:
          type: string
          nullable: true
          description: >-
            ID of the user who created this skill. `null` for built-in skills
            that have never been edited.
        created_at:
          type: string
          format: date-time
          description: ISO timestamp when this skill was created.
        updated_at:
          type: string
          format: date-time
          description: ISO timestamp when this skill was last updated.
    RateLimitError:
      type: object
      description: >-
        Returned when the rate limit is exceeded. Rate limits are enforced per
        teamspace, endpoint path, and HTTP method over a 60-second sliding
        window. Each endpoint may have its own limit — check the
        X-RateLimit-Limit response header for the effective value.
      required:
        - error
        - message
        - retryable
        - status_code
      properties:
        status_code:
          type: integer
          description: The HTTP status code (429).
        statusCode:
          type: integer
          deprecated: true
          description: Deprecated. Use status_code instead.
        error:
          type: string
          enum:
            - rate_limit_exceeded
          description: The error code identifying this as a rate limit error.
        message:
          type: string
          description: A human-readable error message.
        mitigation:
          type: string
          description: Suggested action to resolve the error.
        retryable:
          type: boolean
          description: Whether the request can be retried after a delay.
        details:
          type: object
          properties:
            reason:
              type: string
              description: A detailed explanation of why the rate limit was exceeded.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````