API Method: PUT room
Updates the room identified by its integer id. Must be owned by
the authenticated account.
URL:
https://jaconda.im/api/rooms/#{room_id}.#{format}
Formats:
xml, json
HTTP Method(s):
PUT, POST (with the added parameter _method=PUT)
Parameters:
Note that all parameters are encapsulated within a room array (see example)
titleOptional. The title of the room you are creating. This will be displayed in your friends' contact lists.is_publicOptional. Whether your room is public or private. Values can betruefor public andfalsefor private. Rooms are public by default.status_messageOptional. The status message of the room you are creating. This will be displayed in your friends' contact lists.greeting_textOptional. New people will be greeted with this text.
Usage examples:
cURL:
$ curl -u api_token:x -X PUT -d "room[title]=Designers" https://jaconda.im/api/rooms/3.xml
Response:
XML example:
<?xml version="1.0" encoding="UTF-8"?>
<room>
<account-id type="integer">1</account-id>
<created-at type="datetime">2010-03-24T10:56:20Z</created-at>
<greeting-text>Hi, welcome to Developers. Type !help for a list of commands.</greeting-text>
<id type="integer">3</id>
<is-public type="boolean">true</is-public>
<jid>developers</jid>
<status-message>Available</status-message>
<title>Designers</title>
<updated-at type="datetime">2010-03-24T10:56:20Z</updated-at>
</room>