Skip to main content
POST
/
v1
/
admin
/
detections
/
test
Test detection code
curl --request POST \
  --url https://api.withsplendor.com/v1/admin/detections/test \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-splendor-tenant-id: <x-splendor-tenant-id>' \
  --data '
{
  "code": "<string>"
}
'
{
  "duration_ms": 42,
  "logs": [
    "evaluated 1000 records"
  ],
  "output": "3 records would match",
  "status": "ok"
}

Authorizations

Authorization
string
header
required

API token issued from the Splendor console.

Headers

x-splendor-tenant-id
string
required

Selects the tenant (workspace) the request acts within.

Body

application/json
code
string
required
Required string length: 1 - 100000

Response

Successful Response

duration_ms
integer
required
logs
string[]
required
output
string
required
status
string
required