Edit a chat room

Learn how to update global or private chat room using iFlyChat REST API

You can use iFlyChat API to programmatically edit any room.

post
Edit a chat room

https://api.iflychat.com/api/1.1/room/:id/edit
Request
Response
Request
Path Parameters
id
required
string
The id of the chat room to be updated
Body Parameters
api_key
required
string
The private API key of your website
room_name
required
string
The name of the chat room to be updated
room_role
required
string
The room role identifier. This determines the access to the chat room based upon user role. Use 0 if not sure.
room_private
optional
string
1 if the room is going to be private
room_moderate
optional
string
1 if the chat messages have to be approved before being published in the chat room
Response
200: OK
The response will be JSON object
{ success: true }

Curl Command

Here is the sample curl command required to make HTTP request:

curl -H "Content-Type: application/json" -X POST https://api.iflychat.com/api/1.1/room/4/edit -d "{\"api_key\":\"Wr4vpoJ_ET3lpBdX9E9TutUic4Dgb-gc7RGzuZvKqZgW55\", \"room_name\": \"room_4\", \"room_role\": \"1\", \"room_private\": \"1\", \"room_moderate\": \"1\"}"