General - Update notifications
API Url
Used for updating status of notifications.
PUT
http://localhost:16010/ProMarkREST/rest/General/notifications
Permissions: user
Parameter
| Field | Type | Description |
|---|---|---|
| request | Object | Main object containing the request data. |
| data | Object | Object containg data to be uploaded. |
| notifications | Object[] | Collection of notifications. |
| created | Datetime | Date and time when the notification was sent (not updatable). |
| id | Number | Unique identifier of the notification (not updatable). |
| publisher | String | The notification publisher (not updatable). |
| read | Boolean | Notification status (true=Read, false=Unread). |
| subject | String | The notification subject (not updatable). |
| type | Number | Type of notification (1=Alert, 2=Info, 3=Message, 4=Request approved, 5=Request rejected, 6=Warning, 7=Error). Not updatable. 1-7 |
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
messageoptional | Object | Object containing response messages. |
| code | Number | Message code. |
| text | String | Message text. |
| type | String | Type of message. "warning""info" |
Error 4xx
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| errorCode | Number | Error code. |
| errorMessage | String | Error description. |