---
docId: doc_0d659aed9ad14271a4b6897e9c6677b2
title: Replace a suite
description: Replace a whole suite. It also removes scenarios, moves the suite to another agent or archives it.
api:
  group: agentes/evals/suites
  auth: bearer
  operations:
    - operationId: updateEvalSuite
      method: PUT
      path: '/v1/evals/suites/{suiteId}'
      postmanName: Replace a suite
---

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

# Replace a suite

Add or remove scenarios, change the agent or archive a suite. Always send `name`, the complete `members` list and `archived`. You can also change `description` and `agentId`; omitted values are preserved. Previous runs do not change.

## Example

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

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

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

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

</Ways.Way>
</Ways>

## Path parameters

| Parameter | Type | Description | Required |
|-----------|------|-------------|----------|
| `suiteId` | string | The suite you replace | ✓ |

## Request body

```json
{
  "name": "Sales evals",
  "members": [
    { "scenarioId": "books_tuesday_appointment", "version": null, "nTrials": null }
  ],
  "archived": false
}
```

| Field | Type | Description | Required |
|-------|------|-------------|----------|
| `name` | string | 1 to 100 characters. | ✓ |
| `members` | array | 1 to 50 scenarios: the complete list, with the shape from [Create a suite](/api-reference/evals/suites/create#request-body). | ✓ |
| `archived` | boolean | `true` archives the suite. | ✓ |
| `description` | string | Up to 1000 characters. If you do not send it, the current one is kept. Empty (`""`) removes it. | — |
| `agentId` | string \| null | If you do not send it, it is kept. `null` leaves the suite as the workspace's. Another ID moves it to that agent. | — |

## Response

`200` with the suite:

```json
{
  "status": "success",
  "data": {
    "suiteId": "s8Kd2LmQ",
    "name": "Sales evals",
    "description": "",
    "agentId": "Xq8mTe2LwP4kZ1aB9cDf",
    "members": [
      { "scenarioId": "books_tuesday_appointment", "version": null, "nTrials": null }
    ],
    "archived": false,
    "createdAt": "2026-10-30T16:02:11.000Z",
    "updatedAt": "2026-11-01T10:12:45.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. `details.issues` has the path of each problem. |
| `404` | `EVAL_NOT_FOUND` | The suite does not exist in your workspace. |
| `409` | `CONFLICT` | Someone else changed this at the same time. Try again. |

## Notes

- To **remove a scenario** from an agent's evals, replace the suite without it: the scenario stays in the workspace.
- To **archive the suite**, send `archived: true`: it can no longer be chosen to [run on publish](/api-reference/evals/on-publish/set) and its runs are kept.
- A suite always has at least one scenario; to leave an agent without evals, archive it.
- If the suite has `agentId`, you need permission to edit that agent; to move it to another, permission to edit both. If it has none, permission to edit agents.
