| [ Web Proxy ] |
| Viewing: https://developers.cloudflare.com/api/resources/alerting/subresources/silences/methods/create | [Back] [Original] |
Creates a new silence for an account.
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYYThe previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
X-Auth-Email: user@example.comThe previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194Notifications WriteAccount Settings Writecurl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/alerting/v3/silences \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
-d '[
{
"end_time": "2022-01-01T00:00:00Z",
"policy_id": "0da2b59ef118439d8097bdfb215203c9",
"start_time": "2022-01-01T00:00:00Z"
}
]'{
"errors": [
{
"message": "message",
"code": 1000
}
],
"messages": [
{
"message": "message",
"code": 1000
}
],
"success": true
}{
"errors": [
{
"message": "message",
"code": 1000
}
],
"messages": [
{
"message": "message",
"code": 1000
}
],
"success": true
}| Web Proxy Viewer | New URL | Original Page |