---
title: "CreateSwarmVersionBody"
description: "Request body for creating a SwarmVersion."
section: "Reference"
group: "Types"
order: 222
---

## Definition

```ts
interface CreateSwarmVersionBody {
  swarmId: string;
  name?: string | undefined;
  instructions?: string | undefined;
  models?: Array<string> | undefined;
  inputSchemaId?: string | null | undefined;
  outputSchemaId?: string | null | undefined;
}
```

## Fields

| Field            | Type                          | Notes                                          |
| ---------------- | ----------------------------- | ---------------------------------------------- |
| `swarmId`        | `string`                      | `required` — Swarm to create a new version of. |
| `name`           | `string \| undefined`         | `optional`                                     |
| `instructions`   | `string \| undefined`         | `optional`                                     |
| `models`         | `Array<string> \| undefined`  | `optional`                                     |
| `inputSchemaId`  | `string \| null \| undefined` | `optional`                                     |
| `outputSchemaId` | `string \| null \| undefined` | `optional`                                     |
