Zype Content rule groups API

CRUD for custom groupings on the current site (e.g. country lists).

Operations 5

GET /v3/content_rule_groups List content rule groups #
POST /v3/content_rule_groups Create content rule group #
GET /v3/content_rule_groups/{id} View content rule group #
PUT /v3/content_rule_groups/{id} Update content rule group #
DELETE /v3/content_rule_groups/{id} Delete content rule group #

Documentation

📖
Documentation
https://docs.zype.com/reference/videos
📖
APIReference
https://docs.zype.com/reference/videos
📖
Documentation
https://docs.zype.com/reference/channels
📖
APIReference
https://docs.zype.com/reference/channels
📖
Documentation
https://docs.zype.com/reference/subscriptions
📖
APIReference
https://docs.zype.com/reference/subscriptions
📖
Documentation
https://docs.zype.com/reference/consumers
📖
APIReference
https://docs.zype.com/reference/consumers
📖
Documentation
https://docs.zype.com/reference/live-encoders
📖
APIReference
https://docs.zype.com/reference/live-encoders
📖
Documentation
https://docs.zype.com/reference/zobjects
📖
APIReference
https://docs.zype.com/reference/zobjects
📖
Documentation
https://docs.zype.com/reference/platform-dynamics
📖
APIReference
https://docs.zype.com/reference/platform-dynamics
📖
Documentation
https://docs.zype.com/reference/welcome-to-the-zype-api-documentation
📖
APIReference
https://docs.zype.com/reference/welcome-to-the-zype-api-documentation
📖
Documentation
https://docs.zype.com/reference/content-rule-groups
📖
APIReference
https://docs.zype.com/reference/content-rule-groups
📖
Documentation
https://docs.zype.com/reference/content-rule-profiles
📖
APIReference
https://docs.zype.com/reference/content-rule-profiles
📖
Documentation
https://docs.zype.com/reference/adobe
📖
APIReference
https://docs.zype.com/reference/adobe
📖
Documentation
https://docs.zype.com/reference/oauth
📖
APIReference
https://docs.zype.com/reference/oauth
📖
Documentation
https://docs.zype.com/reference/players
📖
APIReference
https://docs.zype.com/reference/players
📖
Documentation
https://docs.zype.com/reference/uploads
📖
APIReference
https://docs.zype.com/reference/uploads

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/zype:zype-content-rule-groups-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

zype-content-rule-groups-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Content rule groups API
  version: 1.0.0
  description: 'Site-scoped **content rule groups** and the read-only **global content rule groups** catalog.


    ReadMe maps `info.title` to the API **category** and each operation''s **first** `tags` entry to a **page** under that category, then `summary` lines as endpoint subpages. After upload you should see this OpenAPI file powering the Content rule groups section.'
servers:
- url: https://api.zype.com/
security:
- api_key: []
tags:
- name: Content rule groups
  description: CRUD for custom groupings on the current site (e.g. country lists).
paths:
  /v3/content_rule_groups:
    get:
      tags:
      - Content rule groups
      summary: List content rule groups
      description: Retrieve custom content rule groups (e.g. country groupings) for the current site.
      operationId: listContentRuleGroups
      parameters: []
      responses:
        '200':
          description: Response will contain an array of content rule groups, ordered by name.
          content:
            application/json:
              schema:
                title: ContentRuleGroupsResponse
                type: object
                properties:
                  response:
                    type: array
                    items:
                      $ref: '#/paths/~1v3~1content_rule_groups/post/responses/201/content/application~1json/schema/properties/response'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                title: NotFound
                type: object
                required:
                - message
                properties:
                  message:
                    type: string
    post:
      tags:
      - Content rule groups
      summary: Create content rule group
      description: Create a custom content rule group for the current site.
      operationId: createContentRuleGroup
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              title: ContentRuleGroupRequest
              type: object
              required:
              - content_rule_group
              properties:
                content_rule_group:
                  title: ContentRuleGroupProperties
                  type: object
                  properties:
                    name:
                      type: string
                    group_type:
                      type: string
                      description: Optional. One of `country`, `state`, `city`, `zip_code`, `dma_code`, or `ip_address`. Defaults to `country` when omitted.
                    countries:
                      type: array
                      items:
                        type: string
                    states:
                      type: array
                      items:
                        type: string
                    cities:
                      type: array
                      items:
                        type: string
                    zip_codes:
                      type: array
                      items:
                        type: string
                    dma_codes:
                      type: array
                      items:
                        type: string
                    ip_addresses:
                      type: array
                      items:
                        type: string
                    ip_ranges:
                      type: array
                      items:
                        type: object
                        properties:
                          start:
                            type: string
                          end:
                            type: string
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                title: ContentRuleGroupResponse
                type: object
                properties:
                  response:
                    title: ContentRuleGroup
                    type: object
                    properties:
                      _id:
                        type: string
                      name:
                        type: string
                      countries:
                        type: array
                        description: ISO 3166-1 alpha-2 country codes (uppercase). Empty strings are stripped and values are normalized on save. Required payload when `group_type` is `country`.
                        items:
                          type: string
                      states:
                        type: array
                        description: US state codes (uppercase) when targeting states. Required payload when `group_type` is `state` (US-only semantics match content rules).
                        items:
                          type: string
                      cities:
                        type: array
                        description: City names as stored for matching. Required payload when `group_type` is `city`.
                        items:
                          type: string
                      zip_codes:
                        type: array
                        description: ZIP/postal codes (normalized uppercase). Required payload when `group_type` is `zip_code`.
                        items:
                          type: string
                      dma_codes:
                        type: array
                        description: DMA codes. Required payload when `group_type` is `dma_code`.
                        items:
                          type: string
                      ip_addresses:
                        type: array
                        description: Single hosts or CIDR blocks for `group_type` `ip_address`. At least one entry in `ip_addresses` or `ip_ranges` is required for IP groups.
                        items:
                          type: string
                      ip_ranges:
                        type: array
                        description: Inclusive start–end pairs for `group_type` `ip_address`. Bounds must be literal host addresses (not CIDR).
                        items:
                          type: object
                          properties:
                            start:
                              type: string
                            end:
                              type: string
                      group_type:
                        type: string
                        description: One of `country`, `state`, `city`, `zip_code`, `dma_code`, or `ip_address`. Site-persisted groups default to `country`. Global catalog entries use `country`.
                        default: country
                      created_at:
                        type: string
                      updated_at:
                        type: string
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/paths/~1v3~1content_rule_groups/get/responses/403/content/application~1json/schema'
        '422':
          description: Unprocessable entity
          content:
            application/json:
              schema:
                title: Unprocessable Entity
                type: object
                properties:
                  message:
                    type: string
  /v3/content_rule_groups/{id}:
    get:
      tags:
      - Content rule groups
      summary: View content rule group
      description: Retrieve a single content rule group from the current site.
      operationId: getContentRuleGroup
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: ID of the content rule group.
      responses:
        '200':
          description: Return content rule group.
          content:
            application/json:
              schema:
                $ref: '#/paths/~1v3~1content_rule_groups/post/responses/201/content/application~1json/schema'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/paths/~1v3~1content_rule_groups/get/responses/403/content/application~1json/schema'
        '404':
          description: Content rule group not found
          content:
            application/json:
              schema:
                $ref: '#/paths/~1v3~1content_rule_groups/get/responses/403/content/application~1json/schema'
    put:
      tags:
      - Content rule groups
      summary: Update content rule group
      description: Update a content rule group for the current site.
      operationId: updateContentRuleGroup
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: ID of the content rule group.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/paths/~1v3~1content_rule_groups/post/requestBody/content/application~1json/schema'
      responses:
        '200':
          description: Updated content rule group.
          content:
            application/json:
              schema:
                $ref: '#/paths/~1v3~1content_rule_groups/post/responses/201/content/application~1json/schema'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/paths/~1v3~1content_rule_groups/get/responses/403/content/application~1json/schema'
        '404':
          description: Content rule group not found
          content:
            application/json:
              schema:
                $ref: '#/paths/~1v3~1content_rule_groups/get/responses/403/content/application~1json/schema'
        '422':
          description: Unprocessable entity
          content:
            application/json:
              schema:
                $ref: '#/paths/~1v3~1content_rule_groups/post/responses/422/content/application~1json/schema'
    delete:
      tags:
      - Content rule groups
      summary: Delete content rule group
      description: Delete a content rule group from the current site.
      operationId: deleteContentRuleGroup
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: ID of the content rule group.
      responses:
        '204':
          description: Content rule group deleted successfully.
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/paths/~1v3~1content_rule_groups/get/responses/403/content/application~1json/schema'
        '404':
          description: Content rule group not found
          content:
            application/json:
              schema:
                $ref: '#/paths/~1v3~1content_rule_groups/get/responses/403/content/application~1json/schema'
        '422':
          description: Unprocessable entity
          content:
            application/json:
              schema:
                $ref: '#/paths/~1v3~1content_rule_groups/post/responses/422/content/application~1json/schema'
components:
  securitySchemes:
    api_key:
      type: apiKey
      name: api_key
      in: query
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: OAuth access token
      description: OAuth access token of the consumer