Skip to content

createZone error #25

@DAThosting

Description

@DAThosting

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions