API Documents
Contents
    Loading
Documentation API Documents Change a Domain’s Group

Change a Domain’s Group

1. API Description

This API (Domain.Changegroup) is used to change a domain’s group.
Domain name for API request:https://dnsapi.cn/Domain.Changegroup
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
domain_id OR domain yes Stand for the id and the name of the domain. You only need to and must set one of them.
group_id yes

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
6 Invalid domain id.
7 Invalid group id.

4. Sample

curl -X POST https://api.dnspod.com/Domain.Changegroup -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json&domain_id=2059079&group_id=1985'

The following is a sample response:

  • JSON:
{
    "status": {
        "code": "1",
        "message": "Action completed successful",
        "created_at": "2012-09-23 17:33:01"
    }
}

Directions:

  • All the domains shared by others are always put into the group named “Shared With Me” because their group is unchangeable.
  • Only the owner of the domain has the permission to change the domain’s group.
Last updated on 2020-12-23 08:29