---
title: Create Miscategorization
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/go)

[Intel](https://developers.cloudflare.com/api/go/resources/intel)

[Miscategorizations](https://developers.cloudflare.com/api/go/resources/intel/subresources/miscategorizations)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Create Miscategorization

client.Intel.Miscategorizations.New(ctx, params) (\*[MiscategorizationNewResponse](<https://developers.cloudflare.com/api/go/resources/intel#(resource)%20intel.miscategorizations%20%3E%20(model)%20MiscategorizationNewResponse%20%3E%20(schema)>), error)

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

<details>

<summary>API Token</summary>



The preferred authorization scheme for interacting with the Cloudflare API. <a href="https://developers.cloudflare.com/fundamentals/api/get-started/create-token/">Create a token</a>.

**Example:**<code>Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY</code>

</details>

<details>

<summary>API Email + API Key</summary>



The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

**Example:**<code>X-Auth-Email: user@example.com</code>

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

**Example:**<code>X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194</code>

</details>

##### ParametersExpand Collapse

<details>

<summary>

params MiscategorizationNewParams

</summary>

AccountID param.Field\[string]

Path param: Identifier.

maxLength32

<a href="#(resource)%20intel.miscategorizations%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20account_id">Link to this property</a>

ContentAdds param.Field\[\[]int64]Optional

Body param: Content category IDs to add.

<a href="#(resource)%20intel.miscategorizations%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20content_adds">Link to this property</a>

ContentRemoves param.Field\[\[]int64]Optional

Body param: Content category IDs to remove.

<a href="#(resource)%20intel.miscategorizations%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20content_removes">Link to this property</a>

<details>

<summary>

IndicatorType param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/intel/subresources/miscategorizations/methods/create#(resource)%20intel.miscategorizations%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20indicator_type%20%3E%20(schema)">MiscategorizationNewParamsIndicatorType</a>]Optional

Body param

</summary>

const MiscategorizationNewParamsIndicatorTypeDomain <a href="https://developers.cloudflare.com/api/go/resources/intel/subresources/miscategorizations/methods/create#(resource)%20intel.miscategorizations%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20indicator_type%20%3E%20(schema)">MiscategorizationNewParamsIndicatorType</a> = "domain"

<a href="#(resource)%20intel.miscategorizations%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20indicator_type%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

const MiscategorizationNewParamsIndicatorTypeIPV4 <a href="https://developers.cloudflare.com/api/go/resources/intel/subresources/miscategorizations/methods/create#(resource)%20intel.miscategorizations%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20indicator_type%20%3E%20(schema)">MiscategorizationNewParamsIndicatorType</a> = "ipv4"

<a href="#(resource)%20intel.miscategorizations%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20indicator_type%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

const MiscategorizationNewParamsIndicatorTypeIPV6 <a href="https://developers.cloudflare.com/api/go/resources/intel/subresources/miscategorizations/methods/create#(resource)%20intel.miscategorizations%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20indicator_type%20%3E%20(schema)">MiscategorizationNewParamsIndicatorType</a> = "ipv6"

<a href="#(resource)%20intel.miscategorizations%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20indicator_type%20%3E%20(schema)%20%3E%20(member)%202">Link to this property</a>

const MiscategorizationNewParamsIndicatorTypeURL <a href="https://developers.cloudflare.com/api/go/resources/intel/subresources/miscategorizations/methods/create#(resource)%20intel.miscategorizations%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20indicator_type%20%3E%20(schema)">MiscategorizationNewParamsIndicatorType</a> = "url"

<a href="#(resource)%20intel.miscategorizations%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20indicator_type%20%3E%20(schema)%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20intel.miscategorizations%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20indicator_type">Link to this property</a>

IP param.Field\[string]Optional

Body param: Provide only if indicator\_type is <code>ipv4</code> or <code>ipv6</code>.

<a href="#(resource)%20intel.miscategorizations%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20ip">Link to this property</a>

SecurityAdds param.Field\[\[]int64]Optional

Body param: Security category IDs to add.

<a href="#(resource)%20intel.miscategorizations%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20security_adds">Link to this property</a>

SecurityRemoves param.Field\[\[]int64]Optional

Body param: Security category IDs to remove.

<a href="#(resource)%20intel.miscategorizations%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20security_removes">Link to this property</a>

URL param.Field\[string]Optional

Body param: Provide only if indicator\_type is <code>domain</code> or <code>url</code>. Example if indicator\_type is <code>domain</code>: <code>example.com</code>. Example if indicator\_type is <code>url</code>: <code>https://example.com/news/</code>.

<a href="#(resource)%20intel.miscategorizations%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20url">Link to this property</a>

</details>

[Link to this property](<#(resource)%20intel.miscategorizations%20%3E%20(method)%20create%20%3E%20(params)%20default>)

##### ReturnsExpand Collapse

<details>

<summary>

type MiscategorizationNewResponse struct{…}

</summary>

<details>

<summary>

Errors \[]MiscategorizationNewResponseError

</summary>

Code int64

minimum1000

<a href="#(resource)%20intel.miscategorizations%20%3E%20(model)%20MiscategorizationNewResponse%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

Message string

<a href="#(resource)%20intel.miscategorizations%20%3E%20(model)%20MiscategorizationNewResponse%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

DocumentationURL stringOptional

<a href="#(resource)%20intel.miscategorizations%20%3E%20(model)%20MiscategorizationNewResponse%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

Source MiscategorizationNewResponseErrorsSourceOptional

</summary>

Pointer stringOptional

<a href="#(resource)%20intel.miscategorizations%20%3E%20(model)%20MiscategorizationNewResponse%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20intel.miscategorizations%20%3E%20(model)%20MiscategorizationNewResponse%20%3E%20(schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20intel.miscategorizations%20%3E%20(model)%20MiscategorizationNewResponse%20%3E%20(schema)%20%3E%20(property)%20errors">Link to this property</a>

<details>

<summary>

Messages \[]MiscategorizationNewResponseMessage

</summary>

Code int64

minimum1000

<a href="#(resource)%20intel.miscategorizations%20%3E%20(model)%20MiscategorizationNewResponse%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

Message string

<a href="#(resource)%20intel.miscategorizations%20%3E%20(model)%20MiscategorizationNewResponse%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

DocumentationURL stringOptional

<a href="#(resource)%20intel.miscategorizations%20%3E%20(model)%20MiscategorizationNewResponse%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

Source MiscategorizationNewResponseMessagesSourceOptional

</summary>

Pointer stringOptional

<a href="#(resource)%20intel.miscategorizations%20%3E%20(model)%20MiscategorizationNewResponse%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20intel.miscategorizations%20%3E%20(model)%20MiscategorizationNewResponse%20%3E%20(schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20intel.miscategorizations%20%3E%20(model)%20MiscategorizationNewResponse%20%3E%20(schema)%20%3E%20(property)%20messages">Link to this property</a>

Success MiscategorizationNewResponseSuccess

Whether the API call was successful.

<a href="#(resource)%20intel.miscategorizations%20%3E%20(model)%20MiscategorizationNewResponse%20%3E%20(schema)%20%3E%20(property)%20success">Link to this property</a>

</details>

[Link to this property](<#(resource)%20intel.miscategorizations%20%3E%20(model)%20MiscategorizationNewResponse%20%3E%20(schema)>)

### Create Miscategorization

Go

HTTPTypeScriptPythonGoTerraform

```
package main

import (
  "context"
  "fmt"

  "github.com/cloudflare/cloudflare-go"
  "github.com/cloudflare/cloudflare-go/intel"
  "github.com/cloudflare/cloudflare-go/option"
)

func main() {
  client := cloudflare.NewClient(
    option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
  )
  miscategorization, err := client.Intel.Miscategorizations.New(context.TODO(), intel.MiscategorizationNewParams{
    AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", miscategorization.Errors)
}
```

200 example

```
{
  "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

200 example

```
{
  "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
}
```