Backpack API

Notes

List

POST /ws/page/#{page_id}/notes/list

Notes are ordered by age, eldest first.

Request

<request>
  <token>202cb962ac59075b964b07152d234b70</token>
</request>

Response

Status: 200 OK

<response success='true'>
  <notes>
    <note id='1132' title='My world!' created_at='2007-07-03 19:15:55'>
      It's a pretty place
    </note>
    <note id='1133' title='Your world!' created_at='2007-07-03 19:20:00'>
      Also pretty
    </note>
  </notes>
</response>

Create

POST /ws/page/#{page_id}/notes/create

Add a new note to the page.

Request

<request>
  <token>202cb962ac59075b964b07152d234b70</token>
  <note>
    <title>My new note!</title>
    <body>I'm a new note!</body>
  </note>
</request>

Response

Status: 200 OK

<response success='true'>
  <note id='5' title='My new note!' created_at='2007-07-03 19:21:00'>
    I'm a new note!
  </note>
</response>

Update

POST /ws/page/#{page_id}/notes/update/#{id}

Change a note.

Request

<request>
  <token>202cb962ac59075b964b07152d234b70</token>
  <note>
    <title>My updated note!</title>
    <body>I'm updated here too!</body>
  </note>
</request>

Response

Status: 200 OK

<response success='true' />

Destroy

POST /ws/page/#{page_id}/notes/destroy/#{id}

Remove a note from the page.

Request

<request>
  <token>202cb962ac59075b964b07152d234b70</token>
</request>

Response

Status: 200 OK

<response success='true' />