Admin create an in-app notice
const url = 'https://api.deploybase.eu/api/v1/api/v1/admin/notices';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"audience_min_role":"example","audience_team_id":"example","body":"example","channels":["example"],"cta_label":"example","cta_url":"example","expires_at":"example","key":"example","presentation":"example","published_at":"example","requires_ack":true,"severity":"example","title":"example","version":"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://api.deploybase.eu/api/v1/api/v1/admin/notices \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "audience_min_role": "example", "audience_team_id": "example", "body": "example", "channels": [ "example" ], "cta_label": "example", "cta_url": "example", "expires_at": "example", "key": "example", "presentation": "example", "published_at": "example", "requires_ack": true, "severity": "example", "title": "example", "version": "example" }'Publishes a notice to the dashboard. Only key, title and body are required: presentation defaults to the bell, severity to info, the audience to every team at viewer and up, and publication to now. Set audience_team_id to address one team, published_at to schedule, expires_at to let it lapse on its own, and requires_ack with a version when the notice needs an acknowledgement on record. The key is the stable handle the frontend and the per-person state rows use, so it cannot be reused.
Authorizations
Section titled “ Authorizations ”Request Body
Section titled “ Request Body ”Notice to publish
object
Example generated
{ "audience_min_role": "example", "audience_team_id": "example", "body": "example", "channels": [ "example" ], "cta_label": "example", "cta_url": "example", "expires_at": "example", "key": "example", "presentation": "example", "published_at": "example", "requires_ack": true, "severity": "example", "title": "example", "version": "example"}Responses
Section titled “ Responses ”Created
object
object
object
CreatedBy is the authoring platform admin’s Zitadel subject. Text, not uuid: there is no users table (same reasoning as teams.deletion_requested_by).
EmailSentAt is the double-send guard for a fan-out that does not exist yet (v1 is in-app only). Always NULL today.
ExpiresAt is also how a notice is withdrawn: there is no delete, so the state rows people already wrote against the key stay meaningful.
Example generated
{ "data": { "audience_min_role": "example", "audience_team_id": "example", "body": "example", "channels": [ "example" ], "created_at": "example", "created_by": "example", "cta_label": "example", "cta_url": "example", "email_sent_at": "example", "expires_at": "example", "id": "example", "key": "example", "presentation": "example", "published_at": "example", "requires_ack": true, "severity": "example", "title": "example", "updated_at": "example", "version": "example" }, "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Bad Request
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Unauthorized
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Forbidden
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Conflict
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Internal Server Error
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Service Unavailable
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}