Replace a suite

SDK platic.evals.suites.update()

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

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

Path parameters

ParameterTypeDescriptionRequired
suiteIdstringThe suite you replace✓

Request body

{
  "name": "Sales evals",
  "members": [
    { "scenarioId": "books_tuesday_appointment", "version": null, "nTrials": null }
  ],
  "archived": false
}
FieldTypeDescriptionRequired
namestring1 to 100 characters.✓
membersarray1 to 50 scenarios: the complete list, with the shape from Create a suite.✓
archivedbooleantrue archives the suite.✓
descriptionstringUp to 1000 characters. If you do not send it, the current one is kept. Empty ("") removes it.—
agentIdstring | nullIf 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:

{
  "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.

Errors

Statusdetails.codeWhen
400INVALID_REQUESTThe body is not valid. details.issues has the path of each problem.
404EVAL_NOT_FOUNDThe suite does not exist in your workspace.
409CONFLICTSomeone 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 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.