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

# Change a skill

> Changes what is sent and keeps what is left out. A change to the name, description, instructions, sub-agent setting or files publishes a new version; `files` replaces the files under `references/`. Send the `version` you read as `expected_version` to be refused (409) if another change landed first. `enabled` turns it on or off for this workspace, Statisfy skills too. Every change goes live at once: there is no draft. A change to a skill an agent uses (`used_by`) needs 'skills:publish' as well. A Statisfy skill, and a skill with tools of its own (`has_tools`), can only be turned on or off here. A digital worker's own key can't write.



## OpenAPI

````yaml /api/statisfy-api.openapi.json patch /v1/skills/{key}
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/skills/{key}:
    patch:
      tags:
        - skills
      summary: Change a skill
      description: >-
        Changes what is sent and keeps what is left out. A change to the name,
        description, instructions, sub-agent setting or files publishes a new
        version; `files` replaces the files under `references/`. Send the
        `version` you read as `expected_version` to be refused (409) if another
        change landed first. `enabled` turns it on or off for this workspace,
        Statisfy skills too. Every change goes live at once: there is no draft.
        A change to a skill an agent uses (`used_by`) needs 'skills:publish' as
        well. A Statisfy skill, and a skill with tools of its own (`has_tools`),
        can only be turned on or off here. A digital worker's own key can't
        write.
      operationId: skills_update
      parameters:
        - description: The skill's key, from GET /v1/skills
          in: path
          name: key
          required: true
          schema:
            maxLength: 64
            type: string
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              description: >-
                What is sent changes; what is left out is kept. A change to any
                field but `enabled`

                publishes a new version.
              properties:
                description:
                  default: null
                  maxLength: 2000
                  minLength: 1
                  title: Description
                  type: string
                enabled:
                  default: null
                  description: Whether agents in this workspace load it
                  title: Enabled
                  type: boolean
                expected_version:
                  default: null
                  description: >-
                    The version you read: a 409 if another is live. Without it,
                    this change wins
                  minimum: 1
                  title: Expected Version
                  type: integer
                files:
                  default: null
                  description: >-
                    Replaces every file under references/; an empty list removes
                    them. Other files are kept
                  items:
                    $ref: '#/components/schemas/FileIn'
                  maxItems: 25
                  title: Files
                  type: array
                instructions:
                  default: null
                  description: At most 256 KB
                  minLength: 1
                  title: Instructions
                  type: string
                name:
                  default: null
                  maxLength: 255
                  minLength: 1
                  title: Name
                  type: string
                parent_addendum:
                  anyOf:
                    - maxLength: 4000
                      type: string
                    - type: 'null'
                  default: null
                  description: null clears it
                  title: Parent Addendum
                run_in_sub_agent:
                  default: null
                  description: Turning it off clears parent_addendum
                  title: Run In Sub Agent
                  type: boolean
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Skill'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    FileIn:
      additionalProperties: false
      properties:
        content:
          description: The file's text, at most 2 MB in UTF-8
          title: Content
          type: string
        path:
          description: Under references/, e.g. references/pricing.md
          maxLength: 512
          minLength: 1
          title: Path
          type: string
      required:
        - path
        - content
      title: FileIn
      type: object
    Skill:
      properties:
        description:
          description: What an agent reads every turn to decide when to use it
          title: Description
          type: string
        enabled:
          description: Whether agents in this workspace load it
          title: Enabled
          type: boolean
        key:
          description: 'Fixed when the skill is made: the name agents call it by'
          title: Key
          type: string
        name:
          title: Name
          type: string
        source:
          description: >-
            statisfy (shipped by Statisfy: read-only, but each workspace can
            turn it off) or workspace (this workspace's own)
          enum:
            - statisfy
            - workspace
          title: Source
          type: string
        status:
          description: >-
            The skill's own state. A Statisfy skill turned off by this workspace
            stays enabled here: see `enabled`
          enum:
            - enabled
            - disabled
            - archived
          title: Status
          type: string
        used_by:
          anyOf:
            - items:
                $ref: '#/components/schemas/SkillAgent'
              type: array
            - type: 'null'
          description: >-
            Every agent it is set on (archived agents left out). Changing a
            skill in use needs 'skills:publish'. Null when a change saved but
            its agents could not be read: read the skill again
          title: Used By
        version:
          anyOf:
            - type: integer
            - type: 'null'
          description: >-
            The live version, what a change or POST /v1/skills/{key}/live sends
            back as `expected_version`. Null when storage could not be read
          title: Version
      required:
        - key
        - name
        - description
        - source
        - status
        - enabled
        - version
        - used_by
      title: Skill
      type: object
    SkillAgent:
      properties:
        id:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The agent's id (a digital worker's, from GET /v1/digital_workers);
            null for Stella
          title: Id
        name:
          title: Name
          type: string
        type:
          description: >-
            stella; workbench (the workspace's workbench agent); digital_worker;
            or custom_agent (an Agent Studio agent)
          enum:
            - stella
            - workbench
            - digital_worker
            - custom_agent
          title: Type
          type: string
      required:
        - type
        - id
        - name
      title: SkillAgent
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

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