curl --request POST \
--url https://apimgmt.cometchat.io/apps/{appId}/collaborators \
--header 'Content-Type: application/json' \
--header 'key: <key>' \
--header 'secret: <secret>' \
--data '
{
"admins": [
"<string>"
],
"moderators": [
"<string>"
],
"collaboratorsToRemove": [
"<string>"
]
}
'