---
title: "Make a skill always available, or stop [write]"
method: PATCH
path: "/skills/{skillId}"
---

# Make a skill always available, or stop \[write\]

`PATCH /skills/{skillId}`

## Request

- Base URL: `https://api.agentsky.dev/v1`
- URL: `https://api.agentsky.dev/v1/skills/{skillId}`
- Auth: HTTP bearer

With `attachByDefault: true`, every session created in the workspace from then on is provisioned with the skill's latest revision, unless the session is created with `defaults: "none"`. Sessions of agents that cannot take skills start without it.

## Path parameters

- `skillId` string, required

## Request body

- object
  - `attachByDefault` boolean, required

## Response `200`

OK

- object
  - `skill` Skill, required
    - `id` string, required
    - `displayName` string, required
    - `latestRevisionId` string, nullable, required: What `latest` references resolve to.
    - `attachByDefault` boolean, required: Whether every new session in the workspace starts with this skill's latest revision.
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required

## Other responses

- `default`: Error — { error: { code, message, request_id } }

## Changes

- **2026-11-02** `e5e8f0229a99`: 4 info
  - added the optional property `error/request_id` to the response with the `default` status
  - the response property `error` became required for the status `default`
  - the response property `error/code` became required for the status `default`
  - the response property `error/message` became required for the status `default`

[Operation history](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/skills/:skillId/patch.md)

---

[API](https://skmtc.dev/agentsky/apis/agentsky-developer-api.md) - [All operations](https://skmtc.dev/agentsky/apis/agentsky-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentsky/apis/agentsky-developer-api/revisions/8280a065ef6a?raw)
