Shivtr

News

The News section lets you keep your members up-to-date on everything related to your community. The News API lets you view, create, update, delete and restore news entries.

News Entries API
Fetch list of news entries
GET /news_entries.json

Show news entry 1000
GET /news_entries/1000.json

Create new news entry
POST /news_entries.json

Update news entry 1000
PATCH /news_entries/1000.json

Delete news entry 1000
DELETE /news_entries/1000.json

Restore news entry 1000
PATCH /news_entries/1000/restore.json


New or Edit Object
{
"news_entry": {
"title": "5.4 Siege of Orgrimmar",
"entry": "Find out what's new in the latest patch for WoW",
}
}


List Object
{
"news_entries": [
{
"title": "5.4 Siege of Orgrimmar",
"entry": "Find out what's new in the latest patch for WoW",
"comments_count": 25,
"created_at": "2013-07-20T14:37:20-04:00",
"member": {
"id": 2300,
"display_name": "Nuzo"
}
}
]
}


Show Object
{
"news_entry": {
"title": "5.4 Siege of Orgrimmar",
"entry": "Find out what's new in the latest patch for WoW",
"comments_count": 25,
"created_at": "2013-07-20T14:37:20-04:00",
"member": {
"id": 2300,
"display_name": "Nuzo"
}
}
}


Example Request
To change the title of the news entry with the id of 1000, send a PATCH request to /news_entries/1000.json with the following data:

{
"news_entry": {
"title": "5.4 Patch Notes"
}
}