Trying to create a zone, but the api gives me 400 Bad Request response:\n{"desc":"Invalid request","code":80}
My code looks like:
$createZone = array(
'domain' => array(
'extension' => $tld,
'name' => $domain
),
'type' => 'master',
'records' => $records_array,
);
$model = $client->getDnsModule()->getZoneServiceApi()->createZone($createZone);
$records_array is:
Array
(
[domain] => Array
(
[extension] => de
[name] => domain
)
[type] => master
[records] => Array
(
[0] => Array
(
[name] => www
[ttl] => 86400
[type] => CNAME
[value] => domain.de
[prio] =>
)
)
)
I also tried it with json instead of a php array, which also doesn't work.
Trying to create a zone, but the api gives me
400 Bad Request response:\n{"desc":"Invalid request","code":80}My code looks like:
$records_array is:
I also tried it with json instead of a php array, which also doesn't work.