POST api/NotificationMessages
Request Information
URI Parameters
None.
Body Parameters
NotificationMessage| Name | 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-10-28T18:11:13.6476332+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-10-28T18:11:13.6476332+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
NotificationMessage| Name | 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-10-28T18:11:13.9288894+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-10-28T18:11:13.9288894+00:00</Date> <Id>1</Id> <Message>sample string 3</Message> <Title>sample string 2</Title> </NotificationMessage>