developerWorks  >  Lotus  >  Forums & community  >  IBM Sametime Forum

IBM Sametime Forum

developerWorks




How to add Invitees list to chat rooms using Rest api
Lakshmi Vall 08/02/2016 06:41 PM
Sametime Advanced 9.0 Windows


Hi All,

I am trying to add invitees list to the chat room using same time advanced rest api call. I am passing Array containing user emails using ajax put request but receiving error.
var users = [];
users.push('x_test@test.com');
users.push('y_test@test.com');
$.ajax({
url: "http://st9advanced.waters.com:9080/stadvancedapi/api/chat/id/"+currentChatRoomId+"?invitees="+users,
type: "PUT",
contentType: "text/xml",
dataType: "xml",
useDefaultXhrHeader: false,
processData: true,
traditional: true,


what am i missing in this request. Please suggest me the right way to use array .

Thank you,

Go back