As per documentation I’m trying to crate a document on sever via ync gateway REST interface using POST verb. This is my request:
curl -X POST -u user:password -H "Content-type: application/json" -d @TestStep.json 'http://myserver.com:4985/task'
and this is my json in TestStep.json file:
{ "completed": false, "created_at": "2016-03-27T10:00:00.000Z", "description": "blabla", "taskid": "testStepNew", "owner": "user", "parent_id": "1234", "task_type": -3, "title": "bla", "order_pos": 1000 }
The request end with no response form server and object is not created. The same command line with PUT verb and new object ID specified in the URL works.
Can anyone help me addressing this issue? Is there something wrong in my call?
Thanks.
Paolo