News
News keeps your users up-to-date about current events surrounding your network.
Retrieves a collection of news.
Retrieves a single newsitem.
Creates a new newsitem. Only available to API keys without user authentication.
Updates an existing newsitem. Only available to API keys without user authentication.
Deletes a single newsitem. Only available to API keys without user authentication.
PUT https://api.bundeling.com/V1/news
Parameters
Url
Name | Description | Type |
---|
id | A unique integer used to identify a newsitem | int |
Body
Name | Description | Type | Nillable |
---|
author_id | The user id of the author | int | false |
title | The title of the newsitem | string | false |
content | The body of the newsitem. | string | false |
category_id | The category id | int | false |
sponsor_id | To create a sponsored newsitem please set a customer id in this field. | int | false |
link | A link to an external website that will be appended to the newsitem. | string | false |
social_sharing | When set to true, users will be able to share this newsitem on social media. | boolean | false |
draft | Save the event as draft or published. | boolean | false |
publicationdate | The date on which this newsitem will be available to users. | datetime | false |
labels | Labels to add to this newsitem. Replaces current labels | array(int) | false |
Example request
Headers
Body
{
"author_id": 14,
"title": "Welcome to Bundeling",
"content": "Bundeling would like to welcome...",
"category_id": 14,
"sponsor_id": 6,
"link": "www.ecom.nl",
"social_sharing": true,
"draft": false,
"publicationdate": "2017-01-15T18:00:00+0000",
"labels": [
14
]
}
Example response
{
"id": 14,
"author_id": 15,
"title": "Welcome to Bundeling",
"content": "Bundeling would like to welcome...",
"category": "Technology",
"category_id": 16,
"sponsor_id": 6,
"link": "www.ecom.nl",
"social_sharing": true,
"draft": false,
"publicationdate": "2017-01-15T18:00:00+0000",
"labels": [
14
]
}