API Documents
Contents
    Loading
Documentation API Documents Add a New Domain Group

Add a New Domain Group

1. API Description

This API (Domaingroup.Create) is used to add a new domain group.
Domain name for API request:https://api.dnspod.com/Domaingroup.Create
HTTP request method: POST

2. Request Parameters

The table below lists only the API request parameters. Common request parameters are required when the API is called. For more information, please see Common Request Parameters.

Parameter Required Description
group_name yes I think you know what this stands for.

3. Response Codes

Only the response codes related to this API are listed below. For other response codes, please see Common Return Codes.

Response Code Description
7 Invalid group name.
8 The group name already exists.
9 The number of groups is up to limit.

4. Sample

curl -X POST https://api.dnspod.com/Domaingroup.List -d 'login_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json&group_name=dnspod'

The following is a sample response:

  • JSON:
{
    "status": {
        "code": "1",
        "message": "Action completed successful",
        "created_at": "2012-09-18 21:41:00"
    },
    "groups": {
        "id": "1985"
    }
}

Attention:
This API only works for VIP accounts while free accounts will get an error.

Last updated on 2022-03-11 02:54

DNS health check tool powered by DNSPod

查询域名信息,快速排查网站问题

Official WeChat group

Join WeChat group to chat and feedback

Scan using WeChat