v1

latestSwagger 2.02026-08-06114111152.5 KB
Codeless tests

Add an alert to a Codeless test

Adds a notification channel (email, SMS, or callback URL) that fires when a scheduled run fails. Use PUT to modify an existing alert.

post/v1/lab/{id}/alert

Path parameters

idinteger required

Numeric Codeless test ID.

Request body

kind'EMAIL' | 'API' | 'SMS' required

Alert channel.

level'IMMEDIATELY' | 'DAILY' required

When to send (every failure vs. daily digest).

contentstring required

Destination — email address, callback URL, or phone number.

Response

Add an alert to a Codeless test

successboolean required

Whether the operation succeeded.

errorsobject required

Validation errors keyed by field name. Only present when success is false.

errorstring required

Single human-readable reason, used by the older endpoints in place of errors. Only present when success is false.