Create a domain

Request Information
URL POST {{basepath}}/domain
CategoryREPP Domain

Description

Creates a domainname

Expects a DomainCreateRequest object.

Returns a DomainCreateResponse object.

JSON
{
    "name": "zerg-test-controlpanel-2023-07-28-01.frl",
    "registrant": "MET_1k7060d648828c9ba3fa",
    "contact": [
        {
            "id": "MET_1k7060d648828c9ba3fa",
            "type": "admin"
        },
        {
            "id": "MET_1k7060d648828c9ba3fa",
            "type": "tech"
        },
        {
            "id": "MET_1k7060d648828c9ba3fa",
            "type": "billing"
        }
    ],
    "nameservers": [
        "ns3.yourdomainprovider.net",
        "ns1.yourdomainprovider.net",
        "ns2.yourdomainprovider.net"
    ]
}

Example responses

Create a domain
Request Method & URL
POST {{basepath}}/domain
Request Body:
{
    "name": "zerg-test-controlpanel-2023-06-23-01.frl",
    "registrant": "MET_1k7060d648828c9ba3fa",
    "contact": [
        {
            "id": "MET_1k7060d648828c9ba3fa",
            "type": "admin"
        },
        {
            "id": "MET_1k7060d648828c9ba3fa",
            "type": "tech"
        },
        {
            "id": "MET_1k7060d648828c9ba3fa",
            "type": "billing"
        }
    ],
    "nameservers": [
        "ns3.yourdomainprovider.net",
        "ns1.yourdomainprovider.net",
        "ns2.yourdomainprovider.net"
    ]
}
Response Code:
200 OK
Response Body:
{
    "responseId": "mapi1_552a4d1e691e1aa6dc77bce076a6ffcd10820f26",
    "status": "ok",
    "message": "Command completed successfully"
}