Command: create a named IP source.
POST
/projects/{projectId}/source-hosts/create
const url = 'https://example.com/api/v1/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/source-hosts/create';const options = { method: 'POST', headers: {cookie: 'dnse_session=<dnse_session>', 'Content-Type': 'application/json'}, body: '{"name":"example","ipv4":["example"],"ipv6":["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://example.com/api/v1/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/source-hosts/create \ --header 'Content-Type: application/json' \ --cookie dnse_session=<dnse_session> \ --data '{ "name": "example", "ipv4": [ "example" ], "ipv6": [ "example" ] }'Authorizations
Abschnitt betitelt „Authorizations“Parameters
Abschnitt betitelt „Parameters“Path Parameters
Abschnitt betitelt „Path Parameters“projectId
required
string format: uuid
Request Bodyrequired
Abschnitt betitelt „Request Bodyrequired“Media typeapplication/json
object
name
required
string
ipv4
Array<string>
ipv6
Array<string>
Examplegenerated
{ "name": "example", "ipv4": [ "example" ], "ipv6": [ "example" ]}Responses
Abschnitt betitelt „Responses“Created source host.
Media typeapplication/json
Named IP source of a project (DOMAIN 15).
object
id
string format: uuid
projectId
string format: uuid
name
string
ipv4
Array<string>
ipv6
Array<string>
updatedAt
string format: date-time
Examplegenerated
{ "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "projectId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "ipv4": [ "example" ], "ipv6": [ "example" ], "updatedAt": "2026-04-15T12:00:00Z"}