Command: update a source — propagates to every bound record set.
POST
/source-hosts/{sourceId}/update
const url = 'https://example.com/api/v1/source-hosts/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/update';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/source-hosts/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/update \ --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“sourceId
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“Updated 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"}Resource not found.
Media typeapplication/json
object
error
required
string
Examplegenerated
{ "error": "example"}