Path Parameters
AppID in which the extension has to be enabled/disabled
Body
application/json
Response
200 - application/json
Update TinyURL Settings
curl --request PUT \
  --url https://apimgmt.cometchat.io/apps/{appId}/extensions/url-shortener-tinyurl/v1/settings \
  --header 'Content-Type: application/json' \
  --header 'key: <key>' \
  --header 'secret: <secret>' \
  --data '{
  "settings": {
    "tinyUrlAPIToken": "1kn2kenkdnwnrn2in1n1",
    "tinyUrlDomain": "tiny.one"
  }
}'{
  "data": {
    "statusCode": 200,
    "success": true,
    "responseTime": 3.061743974685669,
    "body": {
      "data": {
        "settings": {
          "tinyUrlAPIToken": "1kn2kenkdnwnrn2in1n1",
          "tinyUrlDomain": "tiny.one"
        }
      }
    }
  }
}TinyURL : Update the settings for TinyURL extension.
curl --request PUT \
  --url https://apimgmt.cometchat.io/apps/{appId}/extensions/url-shortener-tinyurl/v1/settings \
  --header 'Content-Type: application/json' \
  --header 'key: <key>' \
  --header 'secret: <secret>' \
  --data '{
  "settings": {
    "tinyUrlAPIToken": "1kn2kenkdnwnrn2in1n1",
    "tinyUrlDomain": "tiny.one"
  }
}'{
  "data": {
    "statusCode": 200,
    "success": true,
    "responseTime": 3.061743974685669,
    "body": {
      "data": {
        "settings": {
          "tinyUrlAPIToken": "1kn2kenkdnwnrn2in1n1",
          "tinyUrlDomain": "tiny.one"
        }
      }
    }
  }
}AppID in which the extension has to be enabled/disabled
Show child attributes
Update TinyURL Settings
Show child attributes
Was this page helpful?