Shivtr

Journals

Journals let your members share their adventures with your community. The Journals API lets you view, create, update, delete and restore journal entries.

Journals API
Fetch list of journal entries
GET /journals.json

Show journal entry 1000
GET /journals/1000.json

Create new journal entry
POST /journals.json

Update journal entry 1000
PATCH /journals/1000.json

Delete journal entry 1000
DELETE /journals/1000.json

Restore journal entry 1000
PATCH /journals/1000/restore.json


New or Edit Object
{
"journal": {
"title": "Adventures in Orgrimmar",
"entry": "Journal detailing my adventures through Orgrimmar",
}
}


List Object
{
"journals": [
{
"title": "Adventures in Orgrimmar",
"entry": "Journal detailing my adventures through Orgrimmar",
"comments_count": 50,
"created_at": "2013-06-16T14:37:20-04:00",
"member": {
"id": 2000,
"display_name": "Bipper"
}
}
]
}


Show Object
{
"journal": {
"title": "Adventures in Orgrimmar",
"entry": "Journal detailing my adventures through Orgrimmar",
"comments_count": 50,
"created_at": "2013-06-16T14:37:20-04:00",
"member": {
"id": 2000,
"display_name": "Bipper"
}
}
}


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

{
"journal": {
"title": "Orgrimmar Adventures"
}
}