POST api/notifications/marathon/{id}
Send 10xpro marathon notifications to coach and participants
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Logged in org member id. |
integer |
Required |
Body Parameters
marathon notification data.
MarathonNotifReq| Name | Description | Type | Additional information |
|---|---|---|---|
| org_id |
org id is required |
integer |
Required |
| org_member_id |
org member id is required |
integer |
Required |
| id |
marathon firebase id |
string |
Required |
| user_ids |
list of lifetrons user id |
Collection of integer |
Required |
| title |
notification title |
string |
Required |
| message |
notification body message (nullable) |
string |
None. |
| image_url |
notification image url if any (nullable) |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"org_id": 1,
"org_member_id": 2,
"id": "sample string 3",
"user_ids": [
1,
2
],
"title": "sample string 4",
"message": "sample string 5",
"image_url": "sample string 6"
}
application/xml, text/xml
Sample:
<MarathonNotifReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Domain.RequestAgg">
<id>sample string 3</id>
<image_url>sample string 6</image_url>
<message>sample string 5</message>
<org_id>1</org_id>
<org_member_id>2</org_member_id>
<title>sample string 4</title>
<user_ids xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</user_ids>
</MarathonNotifReq>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
On success, returns Lifetrons standard responses codes. On failure, return Lifetrons standard responses codes.
Response| Name | Description | Type | Additional information |
|---|---|---|---|
| resp_code |
Lifetrons response code |
string |
None. |
| resp_msg |
Lifetrons response message |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"resp_code": "sample string 1",
"resp_msg": "sample string 2"
}
application/xml, text/xml
Sample:
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Models"> <resp_code>sample string 1</resp_code> <resp_msg>sample string 2</resp_msg> </Response>