Command: create a portal message (admin).
POST
/admin/announcements/create
const url = 'https://example.com/api/v1/admin/announcements/create';const options = { method: 'POST', headers: {cookie: 'dnse_session=<dnse_session>', 'Content-Type': 'application/json'}, body: '{"title":"example","body":"example","severity":"info","active":true,"startsAt":"2026-04-15T12:00:00Z","endsAt":"2026-04-15T12:00:00Z"}'};
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/admin/announcements/create \ --header 'Content-Type: application/json' \ --cookie dnse_session=<dnse_session> \ --data '{ "title": "example", "body": "example", "severity": "info", "active": true, "startsAt": "2026-04-15T12:00:00Z", "endsAt": "2026-04-15T12:00:00Z" }'Authorizations
Abschnitt betitelt „Authorizations“Request Bodyrequired
Abschnitt betitelt „Request Bodyrequired“Media typeapplication/json
object
title
required
string
body
string
severity
string
active
boolean
startsAt
Empty = no lower bound.
string format: date-time
endsAt
Empty = no upper bound.
string format: date-time
Responses
Abschnitt betitelt „Responses“Created announcement.
Media typeapplication/json
Portal message shown as a banner in the user shell.
object
id
string format: uuid
title
string
body
Longer context, shown in a dialog.
string
severity
string
active
boolean
startsAt
string format: date-time
endsAt
string format: date-time
updatedAt
string format: date-time
Example
{ "severity": "info"}