Skip to content

Create a User-defined Node



POST /api/v1/dialing_region/regist

Overview

Create a user-defined node

Body Request Parameters

Parameter Name Type Required Description
internal boolean Y Country attribute (true for domestic, false for overseas)
Nullable: False
isp string Y Internet service provider
Nullable: False
country string Y Country
Nullable: False
province string Province
Nullable: True
city string City
Nullable: True
name string [Test Node]Nickname
Empty string allowed: True
Nullable: True
company string Company information
Nullable: True
keycode string Y [Test Node]Keycode (unique)
Nullable: False

Additional Parameter Notes

Request Example

curl 'https://us1-openapi.truewatch.com/api/v1/dialing_region/regist' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{"internal":false,"isp":"telecom","country":"Singapore","city":"Singapore","keycode":"singapore-telecom","name":"test"}' \
--compressed

Response

{
    "code": 200,
    "content": {
        "ak": {
            "ak": "xxxx",
            "external_id": "wksp_xxxx32",
            "owner": "",
            "parent_ak": "ak_xxxx20",
            "sk": "xxxxxxx",
            "status": "",
            "update_at": 0
        },
        "regionInfo": {
            "city": "Singapore",
            "company": "",
            "country": "Singapore",
            "create_at": 0,
            "external_id": "sg_xxxx20-wksp_xxxx32",
            "heartbeat": 0,
            "internal": false,
            "isp": "telecom",
            "keycode": "singapore-telecom",
            "name": "test",
            "owner": "custom",
            "parent_ak": "",
            "province": "",
            "region": "",
            "status": "",
            "uuid": "reg_xxxx20"
        }
    },
    "errorCode": "",
    "message": "",
    "success": true,
    "traceId": "TRACE-A9074F0D-8F0B-4034-AD9B-9D8A894F1679"
}