AnsweredAssumed Answered

[Agile Central] Creating an iteration through REST API not working

Question asked by otsuki.hitoshi on Nov 9, 2018
Latest reply on Nov 12, 2018 by otsuki.hitoshi

I tried to create an iteration through REST API with the following command. (username and password are masked)

$ curl -XPOST -H "Content-Type: application/json" -u 'username:password' 'https://rally1.rallydev.com/slm/webservice/v2.0/iteration/create' -d '{"endDate": "2018-11-16T00:00:00+09:00","startDate":"2018-11-12T00:00:00+09:00","name":"Iteration#42" ,"project":"166266038080","state":"Planning","sync":"true"}'

But I got the following error. It says the JSON data is not valid but I think it's valid. Do you have any idea why?

{ "CreateResult": { "_rallyAPIMajor": "2", "_rallyAPIMinor": "0", "Errors": [ "Cannot parse input stream due to I/O error as JSON document: Parse error: expected '}' but saw ',' [ chars read = >>>{\"endDate\":\"2018-11-16T00:00:00+09:00\",<<< ]" ], "Warnings": [] } }

Outcomes