powered by Jive Software

Rest API Creating chatroom error

hello!
I just try to create room whith Rest API

Make post request to http://mydomain:9090/plugins/restapi/v1/chatrooms
Header: Authorization: s3kr3t
Header: Content-Type: application/xml

body:

<chatRoom>
    <naturalName>ChatName</naturalName>
    <roomName>ChatRoomName</roomName>
    <description>Global Chat Room</description>
</chatRoom>

And received reponse with status code “201 Created”

But there is no such room in DB, also I cant see it in Spark.

It’ probably there, but you cant see it because it is not public

<chatRoom>
    <naturalName>ChatName</naturalName>
    <roomName>ChatRoomName</roomName>
    <description>Global Chat Room</description>
    <persistent>true</persistent>
    <publicRoom>true</publicRoom>
</chatRoom>

Thnx it works. Probably youll need to add it to documentation