EdgeNext
Documentation home

EdgeNext Documentation

Product guides, setup instructions, and technical references.

CDN

Assign Domains to Group

API Endpoint

Request URL: domain/group/assign (POST)

API request domain: cdn.api.edgenext.com
API version: v2

Description

Adds domains to a group or removes domains from a group.

Notes:

  • You can only manage groups under the current account.
  • Domains are automatically deduplicated when added, preventing duplicate entries.

Input Parameters

The following table lists only the API-specific request parameters. You must also include the common request parameters when making an actual API call. For details, see the Common Request Parameters page.

Request Parameters (POST)

Parameters can be passed in formats such as form-data, x-www-form-urlencoded, and JSON.

Parameter Data Type Required Description
type string Yes Operation type: add: add domains to a group; delete: remove domains from a group.
group_name string Yes Group name. It must be 1–50 characters long and can contain letters, digits, underscores, hyphens, and Chinese characters.
domains array Yes List of domains.

Sample Request

curl -X POST  'https://cdn.api.edgenext.com/v2/domain/group/assign?token=xxx' \
  --header 'content-type: application/json' \
  -d '{
  "type": "add",
  "group_name": "test3",
  "domains": "abc.test.com"
}'

Sample Response

JSON format

Domains Added Successfully

{
  "code": 0,
  "data": {
    "status": "success",
    "message": "domains added to group successfully"
  }
}

Response Headers

HTTP/1.0 200 OK
Api-Id:                 112006099
Content-Type:           application/json; charset=utf-8
X-Ratelimit-Grad:       minute
X-Ratelimit-Limit:      300
X-Ratelimit-Remaining:  300
X-Retry-After:          53

Need help? Contact our support team at support@edgenext.com.

Back to documentation home