---
type: api
title: Update a skill
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana/operation/operation-put-agent-builder-skills-skillid
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana/operation/operation-put-agent-builder-skills-skillid
products:
  - Kibana
---

# Update a skill

Availability: 9.4+

- Server: `https://{kibana_url}`

## Paths

- `PUT` `/api/agent_builder/skills/{skillId}`
- `PUT` `/s/{space_id}/api/agent_builder/skills/{skillId}`

- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/kibana/authentication#apikeyauth)
- [Basic auth](/elastic/docs-builder/docs/4371/api/doc/kibana/authentication#basicauth)

#### Path Parameters

- `skillId` (string · min: 1 · max: 512)
  The unique identifier of the skill.

## Description

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

Update an existing user-created skill. To learn more about Agent Builder skills, refer to the [skills documentation](https://www.elastic.co/docs/explore-analyze/ai-features/agent-builder/skills).<br/><br/>[Required authorization] Route required privileges: agentBuilder:manageSkills.

## Request Body

`application/json`

- `content` (string) — optional
  Updated skill instructions content.
- `description` (string) — optional
  Updated description.
- `name` (string) — optional
  Updated name for the skill.
- `referenced_content` ([] object · max: 100) — optional
  - `content` (string) — required
    Content of the reference.
  - `name` (string) — required
    Name of the referenced content.
  - `relativePath` (string) — required
    Relative path of the referenced content.
- `tool_ids` ([] string · max: 100) — optional
  Updated tool IDs from the tool registry.

## Response

Indicates a successful response

## Code Examples

#### Console

```console
PUT kbn:/api/agent_builder/skills/{skillId}
{
  "name": "Updated Skill Name",
  "description": "Updated description for the skill."
}
```

#### curl

```curl
curl \
  -X PUT "https://${KIBANA_URL}/api/agent_builder/skills/{skillId}" \
  -H "Authorization: ApiKey ${API_KEY}" \
  -H "kbn-xsrf: true" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Updated Skill Name",
    "description": "Updated description for the skill."
  }'
```

## Response Examples

#### Update skill response

Example response returning the updated skill

```json
{
  "content": "Updated skill instructions content.",
  "description": "Updated description for the skill.",
  "experimental": false,
  "id": "my-custom-skill",
  "name": "Updated Skill Name",
  "readonly": false,
  "tool_ids": [
    "platform.core.search",
    "platform.core.execute_esql"
  ]
}
```

