# OutlineApi.setTitle()

```ts
setTitle(path: number[], title: string, options?: SignedDocumentOptions): Promise<void>
```

Rename the bookmark at a path, in place. Needs the `edit-pages` feature.

- Kind: method
- Since: 1.0.0

| Parameter | Type | Description |
| --- | --- | --- |
| `path` | `number[]` | The bookmark's path into `get()`'s tree. |
| `title` | `string` | The new title. |
| `options?` | `SignedDocumentOptions` | `{ invalidateSignatures? }`. |

Returns `Promise<void>`

Throws:

- `INVALID_ARGUMENT` — a `path` that names no bookmark.
- `FEATURE_NOT_LICENSED` — the license lacks `edit-pages`.
- `PAGE_ERROR` — the change could not be written.
- `DOCUMENT_CLOSED` — the document has been closed.
- `INVALID_STATE` — a certified document, unless `options.invalidateSignatures` (no certification level allows bookmark changes); or a progressive document still downloading.

```ts
await doc.outline.setTitle([0], 'Introduction');
```

Part of [OutlineApi](https://kernstra.com/docs/web-sdk/api/doc-outline) in the Kernstra Web SDK 1.0.0 API reference.

Web page: https://kernstra.com/docs/web-sdk/api/doc-outline/settitle
