Skip to main content
Changes only the fields present. A test is never deleted: status: "archived" takes it out of the runs and keeps its runs as history.

Endpoint

Required scope

agents:write

Path parameters

Body

Every field of POST .../tests, all optional, plus:

Example request

curl

Response

200 OK

The test comes whole, with the same fields as in GET .../tests; the example trims it.

400 Bad Request

A malformed testId, an unknown status, a field over its limit, or an unknown property.

404 Not Found

AGENT_NOT_FOUND when the agent belongs to another project of the company, UPSTREAM_ERROR (message AGENT_NOT_FOUND) when no agent has that id in the company. test_not_found when the test is not from this agent; route_not_found for a route of another agent.

401 Unauthorized

Missing, invalid, revoked, or expired token.

403 Forbidden

The token does not have the agents:write scope.

502 Bad Gateway

The agent service is unreachable.