user
/api/v1/user/domains (POST)
POST
/api/v1/user/domains
const url = 'https://dpg.example.com/api/v1/user/domains';const options = { method: 'POST', headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'}, body: '{"domains":["example"]}'};
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://dpg.example.com/api/v1/user/domains \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data '{ "domains": [ "example" ] }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
domains
required
Array<string>
Examplegenerated
{ "domains": [ "example" ]}Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
domains
required
Array<string>
Examplegenerated
{ "domains": [ "example" ]}
