文章 Create System Notification REST 端点

URLs

POST api/v1/systemnotifications.xml (or .json)

Enables external applications to send system notifications to system administrators or group owners. If GroupId is set, the calling user must have Modify Group permissions to send a notification. If GroupId is not set, the calling user must have Manage Settings permissions.

请求参数

名称

类型

描述

必需

默认值

选项

Subject

string

The subject of the notification

是

Body

string

The body of the notification

是

GroupId

int

The ID of the group to send to. If omitted, a notification is sent to site administrators.

否