Api Subscribe room

In ejabberd api, i can fill user,nick,room, but how can i fill the nodes? Is there any example. Thank you.

POST /api/subscribe_room
  {
    "user": "aaaaa",
    "nick": "bbbbb",
    "room": "ccccc",
    "nodes": "ddddd"
  }
   
  HTTP/1.1 200 OK
  [
    "aaaaa",
    "bbbbb"
  ]

My example :

{

  "user":"muuser",
  "nick":"ccccdd",
  "room":"myRoom",
  "nodes":["urn:xmpp:mucsub:nodes:presence","urn:xmpp:mucsub:nodes:messages","urn:xmpp:mucsub:nodes:affiliations","urn:xmpp:mucsub:nodes:subject", "urn:xmpp:mucsub:nodes:config","urn:xmpp:mucsub:nodes:system"]
  }

The "Nodes" argument must be

The "Nodes" argument must be a binary, where it has nodes separated by commas.
Example shell call (i've put one argument in each line, so you can understand that strange format:

$ ejabberdctl  subscribe_room
 user2@localhost/tka1
 User2
 room1@conference.localhost
 urn:xmpp:mucsub:nodes:messages,urn:xmpp:mucsub:nodes:affiliations
Syndicate content