Linode API (4.0.1) - List Domains
Error in requestion
https://api.linode.com/v4/domains
Errors:
public 'reason' => string 'domain is required'
public 'reason' => string 'type is required'
But I am not identifying in the documentation the name of these fields and what information I should send.
Could anybody help me?
1 Reply
multishow,
Here is another link that will provide more information: APIv4 Domains
If you look in the "Request Body Schema" section you will see two attributes that are required: domain
and type
.
domain
would be the domain name, like "example.org" but whatever your domain is.
type
is either going to be "master" or "slave" depending on whether or not it's the authoritative source or a copy of whatever the master is.
Please also be aware that if the Domain you are creating an entry for is master
then you will also have to provide the soa_email
as well. This is also noted in the same Request Body Schema section.
There are also examples on the right side of that endpoint information, which will hopefully help you as well.