Zum Inhalt springen

Command: create a portal message (admin).

POST
/admin/announcements/create
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" }'
Media typeapplication/json
object
title
required
string
body
string
severity
string
default: info
Allowed values: info warning critical
active
boolean
startsAt

Empty = no lower bound.

string format: date-time
endsAt

Empty = no upper bound.

string format: date-time

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
Allowed values: info warning critical
active
boolean
startsAt
string format: date-time
nullable
endsAt
string format: date-time
nullable
updatedAt
string format: date-time
Example
{
"severity": "info"
}