# Handle routes: update

URL: /code/api/handle/records-update · Id: `page:code/api/handle/records-update`

> The Handle Verbs update as api.sb routes, with inputs, result, refusals and an example.

Reference for [Handle](/business/nouns/handle), one group of [Handle routes](/code/api/handle).

### Handle.update
Changes the given properties of a Handle. [Verb page](/business/nouns/handle/update?interface=api).

```text
PATCH /{namespace}/handles/{id}
```

Path: `id`. Body, as JSON: the other inputs. Emits `Handle.updated`.

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | The id of the Handle. |
| `venue` | `string` | No | The venue it lives on, by id. |
| `name` | `string` | No | The name as the platform shows it, such as `@example`. |
| `shared` | `boolean` | No | True for a Studio account shared across sibling Startups; every Post names the Startup it speaks for. |
| `agent` | `boolean` | No | True when an Agent runs it; its bio says so. |
| `integration` | [Integration](/business/nouns/integration) | No | The Integration credential it publishes through. |

**Returns**

| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `handle` | [Handle](/business/nouns/handle) | Yes | The Handle. |

**Refuses when**

| Check | Error | Fix | Then call |
| --- | --- | --- | --- |
| The key is valid, but its scopes do not allow this operation. | [`forbidden`](/code/api/errors/forbidden) | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |

**Example**

```bash
curl -X PATCH https://api.sb/leaseline.app/handles/handle_FcnNwYQujc \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Leaseline"}'
```

```json
{
  "api": "https://api.sb/leaseline.app",
  "handle": {
    "$id": "https://api.sb/leaseline.app/handles/handle_FcnNwYQujc",
    "$type": "Handle",
    "venue": "Example venue",
    "name": "Leaseline"
  },
  "action": {
    "$id": "https://api.sb/leaseline.app/actions/act_br07HsG8MG",
    "operation": "Handle.update",
    "status": "done"
  },
  "links": {
    "self": "https://api.sb/leaseline.app/actions/act_br07HsG8MG"
  }
}
```