I trying to post multiple time entries using intervals api.
But i am getting the following error:
HTTP/1.1 400 Bad Request
Server: nginx
Date: Wed, 16 Jan 2013 07:27:08 GMT
Content-Type: application/json
Content-Length: 221
Connection: close
Vary: Accept-Encoding
PelagoLB: 10.8.229.199
P3P: CP="OTI DSP COR CUR ADMo TAIo PSAo CONi OUR PUBi IND NAV ONL PUR
PRE", policyref="/w3c/p3p.xml"
{"personid":"*******","status":"Bad
Request","code":400,"error":{"code":17,"message":"Parameter not
recognized","verbose":["Unable to parse PUT\/POST input. Please check
your XML\/JSON for validity and well-formedness."]}}
For single record in json file code works perfectly fine but for
multiple entries i am getting the above error.I checked that my json
file is well formedPlease assist me
on this issue asap ,i really stuck here.
Regards,
Poonam Chaudhari
Hey Poonam,
The Intervals API does not support submitting multiple items through PUT/POST (or any method, for that matter). You must submit items one at a time. The reason for this is that multiple errors may be encountered when submitting any single item, and the restriction forces developers to implement more precise error handling.
Cameron
1 to 2 of 2
Comments are closed.
For more Intervals help documentation, please visit help.myintervals.com