跳转到主要内容
POST
Create a notification

请求体

application/json
recipients
string[]
必填

List of user IDs to receive the notification

scope
enum<string>
必填

Type of the notification

可用选项:
SYSTEM,
USER,
GROUP
示例:

"USER"

type
enum<string>
必填

Type of the notification

可用选项:
WORKSPACE_CREATED,
VULNERABILITY_ANALYSIS_COMPLETED,
ASSET_NEW_DETECT,
NEW_VULNERABILITY_FOUND
metadata
object

Metadata for the notification content (variables for translation)

示例:

响应

200 - application/json

The response is of type object.