Skip to content

Commit 052d917

Browse files
Maddy-Cloudflaremaheshwarip
authored andcommitted
[Security Center] Miscategorization API (#17363)
* [Security Center] Miscategorization API * Fixing quotes
1 parent 5029fa2 commit 052d917

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
pcx_content_type: concept
3+
title: Manage miscategorization reports
4+
sidebar:
5+
order: 4
6+
---
7+
8+
This guide will show you how to manage miscategorization of reports. To complete this guide, you will need to generate an [API token](/fundamentals/api/get-started/create-token/).
9+
10+
1. Create an [API token](/fundamentals/api/get-started/create-token/) if you do not have one already.
11+
2. Choose **Custom Token**.
12+
3. Name the token, and grant permissions.
13+
4. Send a `POST` request to the miscategorization [API endpoint](https://developers.cloudflare.com/api/operations/miscategorization-create-miscategorization). You can find an example below:
14+
15+
```json title="Example of a POST request to miscategorization API"
16+
17+
export URL="https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/intel/miscategorization"
18+
curl -X POST "$URL" \
19+
-H "Authorization: Bearer $TOKEN" \
20+
-H "Content-Type:application/json" \
21+
--data '{
22+
"content_adds": [
23+
],
24+
"content_removes": [
25+
],
26+
"indicator_type": "domain",
27+
"ip": null,
28+
"security_adds": [
29+
115
30+
],
31+
"security_removes": [
32+
],
33+
"url": "cloudflare.com"
34+
}'
35+
```
36+
37+
You should receive a response with the value `"success": true`:
38+
39+
```json
40+
{
41+
"result": "",
42+
"success": true,
43+
"errors": [],
44+
"messages": []
45+
}
46+
```
47+
48+
Once you send the request, the Cloudflare Support team will receive it and will be able to take action.

0 commit comments

Comments
 (0)