POST api/NotificationMessages
Request Information
URI Parameters
None.
Body Parameters
NotificationMessageName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
Title | string |
None. |
|
Message | string |
None. |
|
Date | date |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "Title": "sample string 2", "Message": "sample string 3", "Date": "2025-04-29T06:17:09.4219813+00:00" }
application/xml, text/xml
Sample:
<NotificationMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PetraAPI.Models"> <Date>2025-04-29T06:17:09.4219813+00:00</Date> <Id>1</Id> <Message>sample string 3</Message> <Title>sample string 2</Title> </NotificationMessage>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
NotificationMessageName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
Title | string |
None. |
|
Message | string |
None. |
|
Date | date |
None. |
Response Formats
application/json, text/json
Sample:
{ "Id": 1, "Title": "sample string 2", "Message": "sample string 3", "Date": "2025-04-29T06:17:09.4527327+00:00" }
application/xml, text/xml
Sample:
<NotificationMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PetraAPI.Models"> <Date>2025-04-29T06:17:09.4527327+00:00</Date> <Id>1</Id> <Message>sample string 3</Message> <Title>sample string 2</Title> </NotificationMessage>