Send Message
Path
http://supOS ip:port/api/openapi/notification/v1/message
Request body
{
"content": { //required when message type is specified
"title": "title",
"text": "text"
},
"multipleType": [ //specify multiple types of message. When type is specified, multipleType is invalid
[
"email",
""
],
[
"stationLetter",
""
]
],
"receivers": [ //required
"userName" //admin cannot be a receiver
],
"sender": "sender", //required
"source": "source", //required
"text": "text", //required when multipleType is set
"title": "title", //required when multipleType is set
"type": "email"
}
Response
- 200: Successful.
{
"taskCode": "taskCode"
}
- 400
{
"code": 100000001,
"message": "'sender' cannot be empty"
}
- 100000001: 'source' cannot be empty.
- 100000001: 'receivers' cannot be empty.
- 100102002: Non-existent receivers.
- 500
{
"code": 100000001,
"message": "internal service exception"
}