Creating timeslip results in HttpStatus 422

Check the format of dated_on - I think it’s normally “2012-09-01” not
a date object.

And comments:null may be a problem - it’s a bit picky about what it
takes in. Remove it, or set it to “”.On Tue, Sep 25, 2012 at 1:42 PM, Evert e.dieperink@live.nl wrote:

I get the error Task must be specified.

I use the following Json:

{“timeslip”:
{
“user”:“https://api.freeagent.com/v2/users/102596”,
“project”:“https://api.freeagent.com/v2/projects/252330”,
“task”:“https://api.freeagent.com/v2/tasks/351237”,
“dated_on”:“/Date(1348524000000)/”,
“hours”:“4.0”,
“comments”:null
}
}

When I get the task, it is valid.

Best regards,

Evert


You received this message because you are subscribed to the Google Groups
“FreeAgent API” group.
To view this discussion on the web visit
https://groups.google.com/d/msg/freeagent_api/-/7yfD9XvzWJcJ.
To post to this group, send email to freeagent_api@googlegroups.com.
To unsubscribe from this group, send email to
freeagent_api+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/freeagent_api?hl=en.

Nic Wise
t. +44 7788 592 806 | @fastchicken | Nic Wise - Tend Health Ltd | LinkedIn
b. http://www.fastchicken.co.nz/

mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
Earnest: Self-employed? Track your business expenses and income.
http://earnestapp.com
Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2