Hi,
I want to create a team with a secondary supervisor using the REST API :
{"teamname":"testfab5","primarySupervisor":{"@name":"fabienuccx","refURL":"https://10.20.2.188:8443/adminapi/resource/fabienuccx"},"resources":{"resource":[{"@name":"fabienuccx2","refURL":"https://10.20.2.188:8443/adminapi/resource/fabienuccx2"},{"@name":"fabienuccx","refURL":"https://10.20.2.188:8443/adminapi/resource/fabienuccx"}]},"secondarySupervisors":{"secondarySupervisor":[{"@name":"fabienuccx2","refURL":"https://10.20.2.188:8443/adminapi/resource/fabienuccx2"}]}}
But the answer is HTTP 400 Bad Request.
What is wrong with my request ?
The simple request without resources and secondary supervisor works :
{"teamname":"testfab5","primarySupervisor":{"@name":"fabienuccx","refURL":"https://10.20.2.188:8443/adminapi/resource/fabienuccx"}}
Thanks,
Fabien