Zum Inhalt springen

CreatePlatformEmergencyRule

POST
/api/v1/platform/security/emergency-rules
curl --request POST \
--url https://example.com/api/v1/platform/security/emergency-rules \
--header 'Content-Type: application/json' \
--data '{ "host": "App", "method": "example", "conditions": [ { "kind": "PathStartsWith", "value": "example", "headerName": "example" } ], "action": "Block", "reason": "example", "endsAt": "2026-04-15T12:00:00Z", "testToken": "example" }'
Media typeapplication/json
object
host
required
Allowed values: App Auth Files All
method
required
null | string
conditions
required
Array<object> | null
object
kind
required
Allowed values: PathStartsWith PathContains QueryContains HeaderContains
value
required
string
headerName
null | string
action
required
Allowed values: Block Count
reason
required
string
endsAt
required
null | string format: date-time
testToken
required
null | string

Created

Media typeapplication/json
object
id
required
string format: uuid
Examplegenerated
{
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}

Bad Request

Media typeapplication/problem+json
object
type
null | string
title
null | string
status
null | integer format: int32
detail
null | string
instance
null | string
errors
object
key
additional properties
Array<string>
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"errors": {
"additionalProperty": [
"example"
]
}
}

Forbidden

Media typeapplication/problem+json
object
type
null | string
title
null | string
status
null | integer format: int32
detail
null | string
instance
null | string
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Too Many Requests

Media typeapplication/problem+json
object
type
null | string
title
null | string
status
null | integer format: int32
detail
null | string
instance
null | string
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}