Skip to main content
POST
/
api
/
v1
/
monitors
/
{monitorId}
/
assertions
Add an assertion to a monitor
curl --request POST \
  --url https://api.devhelm.io/api/v1/monitors/{monitorId}/assertions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "config": {
    "substring": "<string>"
  }
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "monitorId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "config": {
      "substring": "<string>"
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.devhelm.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key (dh_live_...) or Auth0 JWT token

Path Parameters

monitorId
string<uuid>
required

Body

application/json

Replace all assertions; null preserves current

config
object
required
severity
enum<string> | null

Outcome severity: FAIL (fails the check) or WARN (warns without failing, default: FAIL)

Available options:
fail,
warn

Response

Created

data
object
required