v1

latestOpenAPI 3.0.02026-08-04265791.1 MB
News

Create

You may create a new single or multiple news using this action. When creating a single news object the body contains a json object, when creating multiple news objects the body contains an array of objects.
Warning: a maximum of 1000 items can be sent in a single request.

post/public/api/news

Headers

Acceptstring

e.g. application/json

Request body

user_idstring
titlestring
descriptionstring
authorised_viewersnumber
imagesstring[]
group_idsstring[]
tagsstring[]

Example request

{
  "user_id": "54ab03c6546847ee0d30072b",
  "title": "Rocket ltd exciting news",
  "description": "News content",
  "authorised_viewers": 100,
  "images": [
    "www.rocketltd.com/file/RocketsFile1.jpg"
  ],
  "group_ids": [
    "rockets_hq",
    "rockets_pr",
    "rockets_employees"
  ],
  "tags": [
    "rockets_stars",
    "rockets_fans"
  ]
}

Response

OK