{ "id": "165225", "key": "AC-4717", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-01-11T16:25:00.000+0000", "created": "2017-01-07T18:22:13.000+0000", "labels": [], "versions": [ { "id": "17038", "name": "Appcelerator Studio 4.5.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-01-11T16:25:00.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14559", "name": "ArrowDB" } ], "description": "I sent below data for creating custom object but it returned \"Missing FIelds\" error callback.\r\n\r\nMethod : \"POST\"\r\nURL : https://api.cloud.appcelerator.com/v1/objects/announcement/create.json?&key=MY_KEY&_session_id=MY_SESSION_ID&pretty_json=true\r\n\r\nParams : {\"fields\": {\"title\":\"aa\",\"description\":\"bb\"}}\r\n\r\nI followed rest api syntax from this link \"http://docs.appcelerator.com/arrowdb/latest/#!/api/CustomObjects-method-create\"\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "create objects rest api call fails ", "creator": { "name": "heedoo", "key": "heedoo", "displayName": "heedoo moon", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "heedoo", "key": "heedoo", "displayName": "heedoo moon", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "I am using rest api for making http call.", "comment": { "comments": [ { "id": "404361", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Can you share the full curl command you are running for creating objects. The usual command is like\r\n{code}\r\n$ curl -b cookies.txt -c cookies.txt -F \"fields={\\\"color\\\":\\\"blue\\\", \\\"make\\\": \\\"nissan\\\", \\\"purchased_at\\\" : \\\"2011-11-02 17:07:37 -0700\\\", \\\"year\\\" : 2005, \\\"used\\\" : false, \\\"coordinates\\\":[-122.1, 37.1]}\" https://api.cloud.appcelerator.com/v1/objects/car/create.json?key=&pretty_json=true\r\n{code}\r\nAlso, send the error log. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-01-10T16:23:22.000+0000", "updated": "2017-01-10T16:23:22.000+0000" }, { "id": "404411", "author": { "name": "heedoo", "key": "heedoo", "displayName": "heedoo moon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Sharif,\r\n\r\nI tested with Postman not curl command and this is error log.\r\n{\r\n \"meta\": {\r\n \"status\": \"fail\",\r\n \"code\": 400,\r\n \"message\": \"Missing fields\",\r\n \"method_name\": \"createObject\"\r\n }\r\n}\r\n\r\nAre you able to get data?", "updateAuthor": { "name": "heedoo", "key": "heedoo", "displayName": "heedoo moon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-10T23:45:33.000+0000", "updated": "2017-01-10T23:45:33.000+0000" }, { "id": "404430", "author": { "name": "heedoo", "key": "heedoo", "displayName": "heedoo moon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Never mind. I found that arrowdb rest api requires to pass all data as in url instead of body.\r\n\r\nexample)\r\nmethod : POST\r\nurl : https://api.cloud.appcelerator.com/v1/objects/announcement/create.json?&key=MY_KEY&_session_id=MY_SESSION_ID&fields='{\"title\\\":\"aa\",\"description\":\"bb\"}'&pretty_json=true", "updateAuthor": { "name": "heedoo", "key": "heedoo", "displayName": "heedoo moon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-11T03:22:34.000+0000", "updated": "2017-01-11T03:22:34.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }