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": {
    "type": "<string>",
    "substring": "<string>"
  },
  "severity": "fail"
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "monitorId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "assertionType": "status_code",
    "config": {
      "type": "<string>",
      "substring": "<string>"
    },
    "severity": "fail"
  }
}

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

New assertion configuration (full replacement)

severity
enum<string>

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

Available options:
fail,
warn

Response

201 - */*

Created

data
object