Skip to content

Protocol Message Draft

Kim Rostgaard Christensen edited this page Apr 16, 2014 · 2 revisions

Drafts

The draft system is very simple. It merely stores, retrieves and deletes non-constrained objects (JSON fomatted) on the server. In contrast to the message API, draft visibility and operations are restricted to the owner.

Creating a new draft

POST /message/draft

With a <draft_object> in the body of the request.

Pushes a the supplied <draft_object> into draft list of the client.

Updating an existing draft

PUT /message/draft/<draft_id>/

With a <draft_object> in the body of the request.

Pushes a new version of the <draft_object> into draft list of the client.

Getting a list current drafts

GET /message/draft/list

Returns the draft list associated with current the client.

Delete a draft

DELETE /message/draft/<draft_id>/

Deletes the draft list associated with current the client.

Clone this wiki locally