> ## Documentation Index
> Fetch the complete documentation index at: https://docs.graphiant.com/llms.txt
> Use this file to discover all available pages before exploring further.

# /v1/global/content-filters

> Configure a new content filter under the current enterprise

## OpenAPI

````json POST /v1/global/content-filters
{
  "openapi": "3.0.0",
  "info": {
    "title": "Graphiant APIs",
    "version": "1.0.0",
    "description": "Graphiant API documentation."
  },
  "servers": [
    {
      "url": "https://api.graphiant.com"
    }
  ],
  "security": [
    {
      "jwtAuth": []
    }
  ],
  "tags": [],
  "paths": {
    "/v1/global/content-filters": {
      "post": {
        "security": [
          {
            "jwtAuth": []
          }
        ],
        "parameters": [
          {
            "in": "header",
            "name": "Authorization",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Bearer token. Format: Bearer <your_token_here>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/v1GlobalContentFiltersPostRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GlobalContentFiltersPostResponse"
                }
              }
            }
          }
        },
        "description": "Configure a new content filter under the current enterprise"
      }
    }
  },
  "components": {
    "schemas": {
      "v1GlobalContentFiltersPostRequest": {
        "type": "object",
        "properties": {
          "config": {
            "$ref": "#/components/schemas/manaV2GlobalContentFilterConfig"
          }
        },
        "additionalProperties": false
      },
      "v1GlobalContentFiltersPostResponse": {
        "type": "object",
        "properties": {
          "globalContentFilterId": {
            "type": "integer",
            "format": "int64",
            "example": 1234567891011,
            "description": "Server-assigned ID for the newly created global content filter."
          }
        },
        "additionalProperties": false
      },
      "manaV2GlobalContentFilterConfig": {
        "type": "object",
        "properties": {
          "lanNames": {
            "type": "array",
            "items": {
              "type": "string",
              "example": "example string",
              "description": "LAN interface names to scope the filter; when empty, all LANs are included."
            }
          },
          "name": {
            "type": "string",
            "example": "example string",
            "description": "Display name for this global content filter configuration."
          },
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/manaV2GlobalContentFilterRule"
            }
          },
          "siteListId": {
            "type": "integer",
            "format": "int64",
            "example": 1234567891011,
            "description": "Site list whose members this content filter applies to; omit the oneof when no site scope is set."
          },
          "useAllSites": {
            "type": "boolean",
            "example": true,
            "description": "When true, the filter applies to all sites in the tenant (must be the constant true)."
          }
        },
        "additionalProperties": false
      },
      "manaV2GlobalContentFilterRule": {
        "type": "object",
        "properties": {
          "domainCategoryId": {
            "type": "integer",
            "format": "int64",
            "example": 1234567891011,
            "description": "ID of the category whose traffic will be blocked by the content filter."
          },
          "exceptionWildcards": {
            "type": "array",
            "items": {
              "type": "string",
              "example": "example string",
              "description": "List of wildcard strings each representing a selection of domains that are exceptions that will not be blocked even if it is in the provided category"
            }
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "jwtAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "authorization",
        "description": "Use `Bearer <token>`"
      }
    }
  }
}
````

