POST api/NotificationContent
Request Information
URI Parameters
None.
Body Parameters
NotificationContentBindingModelName | Description | Type | Additional information |
---|---|---|---|
Title | string |
None. |
|
Body | string |
None. |
|
ReferenceId | string |
None. |
|
Image | string |
None. |
|
Type | NotificationTypeName |
None. |
|
NotificationCategoryId | integer |
None. |
|
UserIdsRececeiver | Collection of string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Title": "sample string 1", "Body": "sample string 2", "ReferenceId": "sample string 3", "Image": "sample string 4", "Type": 0, "NotificationCategoryId": 6, "UserIdsRececeiver": [ "sample string 1", "sample string 2" ] }
application/xml, text/xml
Sample:
<NotificationContentBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO"> <Body>sample string 2</Body> <ImageContent>sample string 4</ImageContent> <ImageName>sample string 5</ImageName> <NotificationCategoryId>6</NotificationCategoryId> <ReferenceId>sample string 3</ReferenceId> <Title>sample string 1</Title> <Type>None</Type> <UserIdsRececeiver xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </UserIdsRececeiver> </NotificationContentBindingModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
NotificationContentViewModelName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
Title | string |
None. |
|
Body | string |
None. |
|
ReferenceId | string |
None. |
|
Image | string |
None. |
|
Type | string |
None. |
|
NotificationCategory | string |
None. |
|
IsRead | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "Id": 1, "Title": "sample string 2", "Body": "sample string 3", "ReferenceId": "sample string 4", "Image": "sample string 5", "Type": "sample string 6", "NotificationCategory": "sample string 7", "IsRead": true }
application/xml, text/xml
Sample:
<NotificationContentViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO"> <Body>sample string 3</Body> <Id>1</Id> <Image>sample string 5</Image> <IsRead>true</IsRead> <NotificationCategory>sample string 7</NotificationCategory> <ReferenceId>sample string 4</ReferenceId> <Title>sample string 2</Title> <Type>sample string 6</Type> </NotificationContentViewModel>