---
docId: doc_fc52c90ee70b4ea09a494f4c3820395f
title: Create a suite
description: Create a group of scenarios that run together, for the workspace or for an agent.
api:
  group: agentes/evals/suites
  auth: bearer
  operations:
    - operationId: createEvalSuite
      method: POST
      path: '/v1/evals/suites'
      postmanName: Create a suite
---

<script>
  import { Ways } from '$lib/components';
</script>

# Create a suite

Group the scenarios you want to test together. Send `name` and 1 to 50 scenarios in `members`. With `agentId`, the suite belongs to that agent; without it, the suite belongs to the workspace and can be used with any agent.

## Example

<Ways tabs="api,sdk">
<Ways.Way name="api">

```bash
curl -X POST "https://api.platic.ai/v1/evals/suites" \
  -H "Authorization: Bearer $PLATIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Smoke",
  "members": [{ "scenarioId": "greets" }]
}'
```

</Ways.Way>
<Ways.Way name="sdk">

```ts
await platic.evals.suites.create({ name: "Smoke", members: [{ scenarioId: "greets" }] });
```

</Ways.Way>
</Ways>

## Request body

```json
{
  "name": "Sales evals",
  "description": "What the sales agent must do well before publishing.",
  "agentId": "Xq8mTe2LwP4kZ1aB9cDf",
  "members": [
    { "scenarioId": "books_tuesday_appointment" },
    { "scenarioId": "no_invented_prices", "version": 2, "nTrials": 5 }
  ]
}
```

| Field | Type | Description | Required |
|-------|------|-------------|----------|
| `name` | string | 1 to 100 characters. | ✓ |
| `description` | string | Up to 1000 characters. | — |
| `agentId` | string | The agent the evals belong to. You need permission to edit that agent, and from then on changing or archiving the suite requires it too. | — |
| `members` | array | 1 to 50 scenarios. | ✓ |
| `members[].scenarioId` | string | The scenario. | ✓ |
| `members[].version` | number \| null | A pinned version of the scenario. `null` (default) uses the newest active version when each run starts. | — |
| `members[].nTrials` | number \| null | Trials of the scenario in this suite (1–32). `null` (default) uses the scenario's. | — |

## Response

`201` with the suite:

```json
{
  "status": "success",
  "data": {
    "suiteId": "s8Kd2LmQ",
    "name": "Sales evals",
    "description": "What the sales agent must do well before publishing.",
    "agentId": "Xq8mTe2LwP4kZ1aB9cDf",
    "members": [
      { "scenarioId": "books_tuesday_appointment", "version": null, "nTrials": null },
      { "scenarioId": "no_invented_prices", "version": 2, "nTrials": 5 }
    ],
    "archived": false,
    "createdAt": "2026-10-30T16:02:11.000Z",
    "updatedAt": "2026-10-30T16:02:11.000Z"
  }
}
```

## Response fields

The same as in [List suites](/api-reference/evals/suites/list#response-fields).

## Errors

| Status | `details.code` | When |
|--------|----------------|------|
| `400` | `INVALID_REQUEST` | The body is not valid; for example, `members` is empty or has more than 50 scenarios. `details.issues` has the path of each problem. |

## Notes

- It requires permission to edit agents (any) and, with `agentId`, permission to edit that agent.
- Next: [estimate a run](/api-reference/evals/runs/estimate) of the suite against the versions you want to evaluate.
