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

Parameters

Url

NameDescriptionType
idA unique integer used to identify a newsitemint

Body

NameDescriptionTypeNillable
author_idThe user id of the authorintfalse
titleThe title of the newsitemstringfalse
contentThe body of the newsitem.stringfalse
category_idThe category idintfalse
sponsor_idTo create a sponsored newsitem please set a customer id in this field.intfalse
linkA link to an external website that will be appended to the newsitem.stringfalse
social_sharingWhen set to true, users will be able to share this newsitem on social media.booleanfalse
draftSave the event as draft or published.booleanfalse
publicationdateThe date on which this newsitem will be available to users.datetimefalse
labelsLabels to add to this newsitem. Replaces current labelsarray(int)false

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