---
title: "UpdateDirectoryBody"
description: "Request body for updating a Directory."
section: "Reference"
group: "Types"
order: 70
---

## Definition

```ts
interface UpdateDirectoryBody {
  name?: string | undefined;
  parentId?: string | undefined;
}
```

## Fields

| Field      | Type                  | Notes                                                              |
| ---------- | --------------------- | ------------------------------------------------------------------ |
| `name`     | `string \| undefined` | `optional` — New display name.                                     |
| `parentId` | `string \| undefined` | `optional` — Destination parent directory if moving the directory. |
