Skip to main content
PUT
Update a detection

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.

Path Parameters

rule_id
integer
required

Body

application/json
name
string
required
Required string length: 1 - 255
schedule_cron
string
required
Minimum string length: 1
webhook_url
string
required
Required string length: 1 - 2048
code
string | null
Maximum string length: 100000
condition_type
enum<string> | null
Available options:
count_gt,
count_lt,
avg_gt,
avg_lt,
p95_gt
description
string
default:""
enabled
boolean
default:true
kind
enum<string>
default:threshold
Available options:
threshold,
code
query
Query · object | null
threshold
number | null

Response

Successful Response

code
string | null
required
condition_type
string | null
required
consecutive_triggers
integer
required
created_at
string<date-time>
required
description
string
required
enabled
boolean
required
kind
enum<string>
required
Available options:
threshold,
code
last_run_at
string<date-time> | null
required
last_triggered_at
string<date-time> | null
required
name
string
required
query
Query · object | null
required
rule_id
integer
required
schedule_cron
string
required
tenant_id
string
required
threshold
number | null
required
updated_at
string<date-time>
required
webhook_url
string
required