---
title: "Grant or remove a skill for an agent"
method: PUT
path: "/v1/personal-agents/{id}/skills/{skillId}"
tags: ["Agents"]
---

# Grant or remove a skill for an agent

`PUT /v1/personal-agents/{id}/skills/{skillId}`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/personal-agents/{id}/skills/{skillId}`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Shares one of your accessible skills with the agent, or removes it. Returns the updated tools and skills.

## Path parameters

- `id` string, required
- `skillId` string, required

## Request body

- SetPersonalAgentSkill
  - `granted` boolean, required

## Response `200`

Tools and skills.

- PersonalAgentToolCatalog
  - `connections` PersonalAgentConnectionTools[], required
    - `connectionId` string, required
    - `name` string, required
    - `available` boolean, required: Whether the caller is connected to it. Tools are listed only then.
    - `blocked` boolean, required: The agent's policy blocks the whole connection.
    - `onlyChosenTools` boolean: The connection is off apart from the tools picked for the agent: those are the tools whose chosen value is allow or ask.
    - `lockedByOrganization` boolean, required
    - `sharedLogin` PersonalAgentPerson, nullable
      - `memberId` string, required
      - `name` string, required
    - `canShareLogin` boolean: The caller may lend their own account on this connection to the agent, or take it back: the organization allows shared logins, the caller is its owner or a manager and is connected.
    - `tools` PersonalAgentTool[], required
      - `name` string, required
      - `title` string, required
      - `write` boolean, required: False only when the connector says the tool reads and cannot destroy.
      - `access` 'allow' | 'ask' | 'block', required
      - `chosen` 'allow' | 'ask' | 'block', nullable, required
      - `lockedByOrganization` boolean, required: An admin blocked it for every agent; the agent's policy cannot change that.
      - `organizationRule` 'ask' | 'allow', nullable: An admin's rule for every agent: "ask" always asks first whatever the agent says; "allow" is allowed unless the agent says ask or block.
  - `skills` PersonalAgentSkill[]
    - `id` string, required
    - `capability` string, required
    - `name` string, required
    - `title` string, required
    - `description` string, required
    - `granted` boolean, required

## Other responses

- `403`: You cannot change this agent's skills.
- `404`: Agent or skill not found.

## Changes

- **2026-11-30** `8084fcf7429e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/personal-agents/:id/skills/:skillId/put.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/84fb0f99fb95?raw)
