News
Partial Update
Changed onUpdate a subset of properties of a news object
patch/public/api/news/{id}
Request
- Base URLhttps://<base_url>
- AuthHTTP bearer
Path parameters
idstring required
The id of the news
idstring required
The id of the news
Headers
Acceptstring
e.g. application/json
Request body
Example request
{
"title": "Rocket ltd incoming news"
}Response
OK
Example response
{
"news_id": "54ab03c6546847ee0d30081a",
"updated_date": "2018-05-23T04:51:40.862Z",
"created_date": "2018-05-23T04:51:40.862Z",
"user_id": "54ab03c6546847ee0d30072b",
"title": "Rocket ltd incoming news",
"description": "Contents of the feed.",
"views": 3,
"likes": 10,
"authorised_viewers": 100,
"images": [
"www.rocketltd.com/file/RocketsFile1.jpg"
],
"group_ids": [
"rockets_hq",
"rockets_pr",
"rockets_employees"
]
}Changes
- breaking
added the new path request parameter
id - warning
deleted the
pathrequest parameterid
- breaking
- breaking
added the new path request parameter
id - warning
deleted the
pathrequest parameterid
- breaking