> ## 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 copies of them cannot have their content edited, but a skill administrator may set `enabled` on one to enable or disable it for the whole company. The global built-in row is never changed; the response carries your company's state.



## 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 copies of them cannot
        have their content edited, but a skill administrator may set `enabled`
        on one to enable or disable it for the whole company. The global
        built-in row is never changed; the response carries your company's
        state.
      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: >-
            Conflict. A skill with the new slash key already exists for this
            scope, or, when disabling, agents still use the skill in their
            planning strategies.
        '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
          minLength: 1
          maxLength: 64
          pattern: ^(?!.*--)[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$
          description: >-
            The slash command key. Must use lowercase letters, digits, and
            single dashes, start and end with a letter or digit, and 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
            - teamspace
            - builtin
          description: >-
            Privacy scope. `user` = Private (author only), `account` = Public
            within the company, `teamspace` = deprecated legacy Public value
            retained only for compatibility, and `builtin` = global default. New
            skills never use `teamspace`; changing its privacy or assignments
            normalizes it.
        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. For a
            built-in skill, `false` when your company disabled it.
        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 built-in skills and company copies of them: the identifier of
            the 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

````

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