v1

latestOpenAPI 3.0.02026-08-04265791.1 MB
News

Partial Update

Update a subset of properties of a news object

patch/public/api/news/{id}

Path parameters

idstring required

The id of the news

idstring required

The id of the news

Headers

Acceptstring

e.g. application/json

Response

OK

news_idstring
updated_datestring
created_datestring
user_idstring
titlestring
descriptionstring
viewsnumber
likesnumber
authorised_viewersnumber
imagesstring[]
group_idsstring[]

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"
  ]
}