Create Miscategorization
client.intel.miscategorizations.create(MiscategorizationCreateParams { account_id, content_adds, content_removes, 5 more } params, RequestOptionsoptions?): MiscategorizationCreateResponse { errors, messages, success }
POST/accounts/{account_id}/intel/miscategorization
Allows you to submit requests to change a domain’s category.
Requests that include category 169 (New Domains) or category 177 (Newly Seen)
in any of content_adds, content_removes, security_adds, or security_removes
will be rejected with a 400 Bad Request. These categories are automatically
managed and fall off 30 days after they are applied.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
API Email + API Key
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example:
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example:
Create Miscategorization
import Cloudflare from 'cloudflare';
const client = new Cloudflare({
apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted
});
const miscategorization = await client.intel.miscategorizations.create({
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
});
console.log(miscategorization.errors);{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"success": true
}Returns Examples
{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"success": true
}