Create or update up to 100 auto monitor setups in a single request, keyed by external_id
Creates or updates up to 100 auto monitor setups in one request, keyed byDocumentation Index
Fetch the complete documentation index at: https://www.traceloop.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
external_id. Designed for IaC-style clients that would otherwise fan out one HTTP call per setup.
Each item is upserted independently using the same semantics as Update by External ID: if a setup with the given external_id exists in the project it is replaced (status reset to pending, evaluators replaced wholesale); otherwise it is created.
Authorization header.
See Authentication for details.207 Multi-Status when the batch is accepted, even if some items inside fail. Each item carries its own status (ok or error) — you must iterate the response array to check per-item results.
Request-level errors (empty batch, more than 100 items, duplicate external_id within the batch, missing external_id on any item) reject the entire batch with 400 Bad Request. No items are written.
| Field | Type | Required | Description |
|---|---|---|---|
external_id | string | Yes | Unique identifier for the setup within the project. Must be unique across items in the same batch. |
evaluators | string[] | Yes | List of evaluator slugs to run on matched spans. See Evaluator Slugs. |
selector | object[] | No | Array of filter rules used to match spans. See the Create endpoint for the selector schema. |
evaluator_configs | object[] | No | Optional per-evaluator configuration overrides. |
setups array contains one entry per input item, in the same order as the request.
Each entry has:
| Field | Type | Description |
|---|---|---|
external_id | string | The external_id of the input item. |
status | string | ok if the item was upserted, error if it failed. |
result | object | Present when status is ok. The full upserted setup, matching the Create response shape. |
error | string | Present when status is error. Human-readable message prefixed with the item index, e.g. setups[1]: unknown evaluator slug "...". Internal errors are reported as setups[N]: internal error — the underlying cause is logged server-side but not returned to the client. |
setups arrayexternal_idexternal_id