# update_directory

**Rename a directory**

Owners · destructive

Renames a directory, for its owners. Phones show a directory’s name in every one of its groups, like “Riverside FC • Parents”. A directory has no other settings.

## Parameters

| Parameter | Type | Required | Limits |
|---|---|---|---|
| `directory` | `string` | required |  |
| `name` | `string` | required |  |

## Who can use it

Owners of an organization have it, and each call is checked against which organizations they own. A person’s tool list only includes it when they can use it, and clients like ChatGPT see the same list.

Annotated **destructive**, so clients like ChatGPT ask the person before calling it.

## Errors

Errors carry a stable code and a message written for people. See [errors and their status codes](https://withopenbook.com/docs/api#errors).

HTTP:

```bash
curl https://api.withopenbook.com/v1/actions/update_directory \
  -H "Authorization: Bearer $OPENBOOK_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "directory": "0b8e2f4a-6c1d-4e7b-9a3f-5d2c8e1b7f60",
  "name": "Riverside Football Club"
}'
```

MCP:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "update_directory",
    "arguments": {
      "directory": "0b8e2f4a-6c1d-4e7b-9a3f-5d2c8e1b7f60",
      "name": "Riverside Football Club"
    }
  }
}
```

> IDs are made up. Get real ones from `my_access` and `search_contacts`, and send the person’s own OAuth token.
