You are currently viewing 'Create Notification ' page



Usage

POST /Notification/SendMessage

Content-Type

Application/json

Description

Creates and sends a new push notification or email to the users specified in the recipient list.

Note

Must be sent using the bearer token from User Login. Record ID is the GUID of the database element that should be tied to the notification, ie Game ID, Injury ID, Camp ID. For the recipients list you can either send a list of User IDs, email addresses, or both.

Example

Sample Body:

{
"recordID" : "250efe3e-1f28-4b38-983b-6bd1c85be385",
"typeID" : 7,
"sendType" : 1,
"title" : "Testing Notification Email",
"details" : "This is a test of the email body. This would go to all selected members.",
"recipients" : [
{"id": "0dd7c9c5-573d-46a4-a45e-3eb3c51cf6f2"},
{"id": "2fe95742-6e9e-4d13-a400-d21b2bacfa5a"},
{"id": "test1@test.com"},
{"id": " test2@test.com "},
{"id" : "4a5d1051-38c5-4c6c-b254-763734e24191"}
]
}

Returns “Message queued successfully!”.


TypeID Values

Value
TypeID
1
Game Added
2
Game Edited
3
Game Canceled
4
Score Updated
5
Summary Updated
6
New Injury
7
Camp Alert

SendType Values

Value
SendType
1
Email
3
Push Notification