Create a host

Request Information
URL POST {{basepath}}/domain/:name/host
CategoryREPP-Host

Description

Allows you to create a host (aka Glue record)

Expects a HostCreateRequest object.

Returns a HostCreateResponse object.

Url variables
:namezerg-test-controlpanel-2023-06-09-07.frl
JSON
{
    "hostname": "ns5.zerg-test-controlpanel-2023-06-09-01.frl",
    "addr": [
        {
            "ipAddress": "213.249.80.251",
            "ip": "v4"
        }
    ]
}

Example responses

Create a host
Request Method & URL
POST {{basepath}}/domain/:name/host
Request Body:
{
    "hostname": "ns5.zerg-test-controlpanel-2023-06-09-01.frl",
    "addr": [
        {
            "ipAddress": "213.249.80.251",
            "ip": "v4"
        }
    ]
}
Url variables
:namezerg-test-controlpanel-2023-06-09-07.frl
Response Code:
200 OK
Response Body:
{
    "responseId": "mapi1_ff403abd63826ed085aea0c0398e2f5987c351fc",
    "status": "ok",
    "message": "Command completed successfully"
}