# Member Directory methods: update

URL: /code/sdk/member-directory/records-update · Id: `page:code/sdk/member-directory/records-update`

> The Member Directory Verbs update as typed SDK methods, with inputs, result, refusals and an example.

Reference for [Member Directory](/business/nouns/member-directory), one group of [Member Directory methods](/code/sdk/member-directory).

### MemberDirectory.update
Changes the given properties of a Member Directory. [Verb page](/business/nouns/member-directory/update?interface=sdk).

```ts
interface MemberDirectoryVerbs {
  update(input: MemberDirectoryUpdateInput, options?: SB.CallOptions): SB.Call<MemberDirectory>
}
```

Emits `MemberDirectory.updated`.

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | The id of the Member Directory. |
| `groupRoles` | `json` | No | Which directory group fills which Role in the Tenant. |
| `lastChangeAt` | `datetime` | No | When the Customer’s directory last pushed a change. |

**Returns**

| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `memberDirectory` | [Member Directory](/business/nouns/member-directory) | Yes | The Member Directory. |

**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**

```ts
import { $ } from 'startup-builder'

const memberDirectory = await $.MemberDirectory.update({ id: 'directory_qZldlwGLVN', groupRoles: {} })
```