POST
/
apps
/
{appId}
/
collaborators
Adds/Remove collaborators
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": []
  }
}

Headers

key
string
required

Authorization Key

secret
string
required

Authorization Secret

Path Parameters

appId
string
required

AppID in which the extension has to be enabled/disabled

Body

application/json

Response

200 - application/json

Created App

The response is of type object.