AnsweredAssumed Answered

Create a Team in UCCX using REST API - Code 500

Question asked by fabien.bonic on Dec 3, 2014
Latest reply on Dec 11, 2014 by fabien.bonic

Hi,

I need to create a Team in UCCX using the REST API.

When I do the GET request on a team, I get the result :


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<team>

  <self>https://uccx/adminapi/team/1</self>

  <teamId>1</teamId>

  <teamname>Default</teamname>

  <resources>

   <resource name="XXXX">

   <refURL>https://uccx/adminapi/resource/XXXX</refURL>

   </resource>

  </resources>

</team>

 

So I do the following request to create a new team :

POST https://uccx/adminapi/team/

{"teamname":"test2"

"resources":{"resource":{"@name":"XXXX","refURL":"https://uccx/adminapi/resource/XXXX"}}}

 

But the return code is 500 and the error is "java.lang.ArrayIndexOutOfBoundsException: -1".

 

How can I create a new team in UCCX using the REST API ?

 

Thanks,

 

Fabien

Outcomes