ejabberd icon indicating copy to clipboard operation
ejabberd copied to clipboard

Can we edit srg label and description after creation through ejabberd api?

Open manimeik opened this issue 2 years ago • 3 comments

In ejabberd console, I can edit description of srg but I can't find api for that in ejabberd api doc. Also I want to edit label of srg through ejabberd api. Are these imposible?

manimeik avatar Oct 23 '23 02:10 manimeik

In ejabberd console, I can edit description of srg

You mean in the ejabberd Web Admin page, right?

I can't find api for that in ejabberd api doc.

You are right, there is no command API to change the label or description of a Shared Roster Group. That right now can only be done in the WebAdmin.

When using the commands API, it is expected that the Label and Description are set when creating the group:

$ ejabberdctl srg_create gr2 localhost "Other Label" "Other Description" grr

$ ejabberdctl srg_get_info gr2 localhost
label   Other Label
displayed_groups        ["grr"]
description     Other Description

A workaround when using the API would be to obtain the details of an existing group, destroy it, then create again with the desired label and description.

badlop avatar Oct 23 '23 15:10 badlop

Thanks for your help @badlop Why doesn't Ejabberd have command api for this? Can I expect this feature on next update?

manimeik avatar Oct 23 '23 16:10 manimeik

Hi, are you still interested in this feature? It should be easy to implement

badlop avatar Nov 23 '23 16:11 badlop