Create document API response and docs

31 views
Skip to first unread message

Tomas Bosak

unread,
Nov 26, 2014, 11:05:56 AM11/26/14
to aran...@googlegroups.com
Hi folks,

I noticed that API docs states (e.g. in create document part [1]) that:

The body of the response contains a JSON object with the following attributes:
_id contains the document handle of the newly created document
_key contains the document key
_rev contains the document revision

however the actual response object contains also 'error' field with 'false' value even when the status code of the response itself is 201/202. Is this field necessary to be sent even in the case of 'success' status code? If there is a reason for that then shouldn't it be also noted in the mentioned paragraph (since it's also present in examples)?

Thomas Schmidts

unread,
Dec 16, 2014, 7:42:08 AM12/16/14
to aran...@googlegroups.com
It is necessary to sent them even in case of a "success" status code. I will add a line to the documentation
Reply all
Reply to author
Forward
0 new messages