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

# Patch a skill

> Change individual fields of a skill without resending the full object.

Partial update: only the fields you send change, everything else is preserved. Send a field as `null` to clear it. The merged result is validated like a [full update](/computer-use-agents/skills/update), and `name` is not patchable (renames are not supported).

**Returns** the updated [Skill](/computer-use-agents/skills/overview) object.

***

## Path parameters

<ParamField path="name" type="string" required>
  The skill's `name` (e.g. `extract-table-data` or `myorg/web-helper`). Slash-containing names are supported.
</ParamField>

***

## Request body

Any subset of the [Skill](/computer-use-agents/skills/overview) object's fields except `name`: `description`, `body`, `source`, `url_pattern`.

***

## Examples

Change the description and nothing else:

<CodeGroup>
  ```bash cURL theme={null}
  curl -X PATCH https://agp.eu.hcompany.ai/api/v2/skills/extract-table-data \
    -H "Authorization: Bearer $HAI_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"description": "Extract data from HTML tables, with CSV output support."}'
  ```

  ```python Python theme={null}
  from hai_agents import Client

  client = Client()

  skill = client.skills.patch_skill(
      name="extract-table-data",
      description="Extract data from HTML tables, with CSV output support.",
  )
  print(skill.description)
  ```

  ```typescript TypeScript theme={null}
  import { HaiAgentsClient } from "hai-agents";

  const client = new HaiAgentsClient();

  const skill = await client.skills.patchSkill({
    name: "extract-table-data",
    description: "Extract data from HTML tables, with CSV output support.",
  });
  console.log(skill.description);
  ```
</CodeGroup>

***

## Errors

| Status | Cause                                                                                           |
| ------ | ----------------------------------------------------------------------------------------------- |
| `403`  | The skill is reserved (`h/`) and read-only.                                                     |
| `404`  | Skill not found or you don't have access.                                                       |
| `422`  | The merged spec fails validation; common cases: `description` or `body` set to `null` or empty. |
