---
title: "updateSkill"
---

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

# updateSkill

Path: agenthold API › tools

`PUT /skills/{skillId}`

URL: `/api/v1/skills/{skillId}`

## Authentication

Requires one of the following:

- `session`, apiKey, in cookie
- `token`, http bearer, header `Authorization`

## Path parameters

- `skillId` (`updateSkill.path.skillId`; string, required)

## Request body

_Required._

- `name` (`updateSkill.name`; string, required) — Lowercase letters, digits and dashes.
- `description` (`updateSkill.description`; string, required) — When the agent should use the skill.
- `content` (`updateSkill.content`; string, required) — The SKILL.md instructions (Markdown).

## Example request

```json
{
  "name": "string",
  "description": "string",
  "content": "string"
}
```

## Code samples

### cURL

```bash
curl --request PUT \
  --url '<base-url>/api/v1/skills/<skillId>' \
  --header 'Content-Type: application/json' \
  --cookie 'agenthold_session=<agenthold_session>' \
  --data '
{
  "name": "string",
  "description": "string",
  "content": "string"
}
'
```

### TypeScript

```typescript
const url = '<base-url>/api/v1/skills/<skillId>';
const options = {
  method: 'PUT',
  headers: {
    'Content-Type': 'application/json',
    cookie: 'agenthold_session=<agenthold_session>'
  },
  body: JSON.stringify({name: 'string', description: 'string', content: 'string'})
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "<base-url>/api/v1/skills/<skillId>"

payload = {
    "name": "string",
    "description": "string",
    "content": "string"
}
headers = {
    "cookie": "agenthold_session=<agenthold_session>",
    "Content-Type": "application/json"
}

response = requests.put(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

Updated.

#### Example

```json
{
  "name": "string",
  "description": "string",
  "content": "string",
  "id": "string",
  "workspaceId": "string",
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z"
}
```

- `name` (`updateSkill.response.200.name`; string, required) — Lowercase letters, digits and dashes.
- `description` (`updateSkill.response.200.description`; string, required) — When the agent should use the skill.
- `content` (`updateSkill.response.200.content`; string, required) — The SKILL.md instructions (Markdown).
- `id` (`updateSkill.response.200.id`; string, required)
- `workspaceId` (`updateSkill.response.200.workspaceId`; string, required)
- `createdAt` (`updateSkill.response.200.createdAt`; string, required)
  - format: `date-time`
- `updatedAt` (`updateSkill.response.200.updatedAt`; string, required)
  - format: `date-time`

### 400

Error.

#### Example

```json
{
  "error": "string"
}
```

- `error` (`updateSkill.response.400.error`; string, required)

### 403

Error.

#### Example

```json
{
  "error": "string"
}
```

- `error` (`updateSkill.response.403.error`; string, required)

### 404

Error.

#### Example

```json
{
  "error": "string"
}
```

- `error` (`updateSkill.response.404.error`; string, required)


Source: https://agenthold.dev/api/skills/update/index.md
