Bulletins - Update an bulletin
API Url
Use it for updating the bulletin.
PUT
http://localhost:16010/ProMarkREST/rest/Bulletins/bulletins/{id}
Permissions: user
Request headers
| Field | Type | Description |
|---|---|---|
Accept-Languageoptional | String | =en-GB Language use for localization. |
Path parameters
| Field | Type | Description |
|---|---|---|
objectIdoptional | String | The id of the bulletin. |
Parameter
| Field | Type | Description |
|---|---|---|
| request | Object | Main object containing the request data. |
| data | Object | Object containg data to be uploaded. |
| bulletins | Object[] | Collection of bulletins. |
| body | String | The content of the bulletin. |
| context | Object[] | Collection of data about departments/groups. |
| id | String | The id of department/group. |
| draft | Logical | True = the bulletin is just a draft. |
| from | Date | From when the bulletin is active. |
| preview | String | A part of the bulletin. |
| title | String | The title of the bulletin |
| to | Date | End date |
| type | Integer | To whom the bulletin is addressed(0=Default, 1=Copmany, 2=Department, 3=Group). |
Request example:
{"request": {"data": {"bulletins": [{"title":" Bulletin 2","type":2,"from": "2019-01-01","to": "2019-05-12","draft": false,"preview":"The...","body": "The first bulletin.","context":[{"id": "MFA_AND"}]}]}}}
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data. |
messageoptional | Object | Object containing response messages. |
| code | Number | Message code. |
| text | String | Message text. |
| type | String | Type of message. "warning""info" |