hub.room.name.set
- Set room name.
Broadcasts | Description |
---|---|
hub.room.edited | informs about room name was changed |
Edit
{
"method": "hub.room.name.set",
"id": "_ID_",
"params": {
"_id": "_OBJECT_ID_",
"name":"_NEW_NAME_"
}
}
Field | Description |
---|---|
_id | Room’s id |
name | New room name, can’t be empty |
Edit
{
"error": null,
"id": "_ID_",
"result": {}
}
Edit
Code | Message | Data |
---|---|---|
-32600 | Bad request, name is empty | rpc.params.empty.name |
-32600 | Bad request, name does not exist | rpc.params.notfound.name |
-32500 | Room not found | nma.room.notfound |