cURL
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>" ] }'
{ "data": { "collaboratorsToRemove": [], "admins": { "admin1@cometchat.com": { "success": true }, "admin2@cometchat.com": { "success": true } }, "developers": { "developer1@cometchat.com": { "success": true } }, "moderators": [] } }
Adds or removes collaborators for an app.
Authorization Key
Authorization Secret
AppID in which the extension has to be enabled/disabled
Created App
The response is of type object.
object
Was this page helpful?