createDowntime
POST/api/v1/downtimes
With dry_run, returns the open alerts the selector matches now and
those it would have matched over the last 7 days, per team. Limits
and the roles needed are in docs/pipeline.md §8; a token with a
selector creates only downtimes at least as narrow.
Request
Responses
- 200
- 201
- 403
- 404
- 422
Dry run
Created
downtime.admin_required: longer than pipeline.maxDowntime or matching more than pipeline.wideDowntime alerts; auth.selector: not at least as narrow as the token's selector
object.not_found: a CI of cis isn't in the active snapshot
selector.invalid; selector.empty: neither a selector nor CIs; downtime.window: the end is not after the start, or in the past