Warning: API Version 1 is deprecated. Please use API Version 2.
Api Documentation

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.
Json
XML
POST https://api.bundeling.com/V1/news

Parameters

Body

NameDescriptionTypeNillableRequired
author_idThe user id of the authorintfalsetrue
titleThe title of the newsitemstringfalsetrue
contentThe body of the newsitem.stringfalsetrue
category_idThe category idintfalsefalse
sponsor_idTo create a sponsored newsitem please set a customer id in this field.intfalsefalse
linkA link to an external website that will be appended to the newsitem.stringfalsefalse
social_sharingWhen set to true, users will be able to share this newsitem on social media.booleanfalsefalse
draftSave the event as draft or published.booleanfalsefalse
publicationdateThe date on which this newsitem will be available to users.datetimefalsetrue
labelsLabels to add to this newsitem.array(int)falsefalse

Example request

Headers

Content-Type:application/json
Api-Key:RAegSX8yZfEbqSPM

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