---
title: "CreateGraphDefinitionBody"
description: "Request body for creating a GraphDefinition."
section: "Reference"
group: "Types"
order: 114
---

## Definition

```ts
interface CreateGraphDefinitionBody {
  workspaceId: string;
  name: string;
  slug: string;
  description?: string | undefined;
}
```

## Fields

| Field         | Type                  | Notes                                                          |
| ------------- | --------------------- | -------------------------------------------------------------- |
| `workspaceId` | `string`              | `required` — Workspace that will own the new graph definition. |
| `name`        | `string`              | `required` — Definition name                                   |
| `slug`        | `string`              | `required` — URL-friendly slug                                 |
| `description` | `string \| undefined` | `optional` — Definition description                            |
