Command: put a provider zone under management (baseline = full ownership). The zone lives in its account's project.
POST
/zones/adopt
const url = 'https://example.com/api/v1/zones/adopt';const options = { method: 'POST', headers: {cookie: 'dnse_session=<dnse_session>', 'Content-Type': 'application/json'}, body: '{"accountId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","zone":"example.com"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/zones/adopt \ --header 'Content-Type: application/json' \ --cookie dnse_session=<dnse_session> \ --data '{ "accountId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "zone": "example.com" }'Authorizations
Abschnitt betitelt „Authorizations“Request Bodyrequired
Abschnitt betitelt „Request Bodyrequired“Media typeapplication/json
object
accountId
required
string format: uuid
zone
required
string
Example
example.comResponses
Abschnitt betitelt „Responses“Zone adopted.
Media typeapplication/json
object
id
string format: uuid
name
string
accountId
string format: uuid
projectId
string format: uuid
Examplegenerated
{ "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "accountId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "projectId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Malformed request.
Media typeapplication/json
object
error
required
string
Examplegenerated
{ "error": "example"}Zone already managed by this account.