I am inserting data into a table via an OData service. I've been able to format the URL to properly update records but I am having an issue when creating new records and I believe my issue is with the way I am formatting my URL. I have tried the various two methods with the same error result.
batchChanges.push(model.createBatchOperation("/TOOL", "POST", entry));
model.create("/TOOL", entry);
TOOL is my entity set, the root of my OData that I would like to insert the record in. The error I receive is basic and indicates that my path ("/TOOL") is incorrect but I can't figure out why!
2014-11-12 18:26:11 The following problem occurred: HTTP request failed400,Bad Request,{ "error": { "code": "", "message": { "lang": "en-US", "value": "Syntax error at position 0."}}} - "
Any ideas why?