PUT
/
apps
/
{appId}
/
extensions
/
url-shortener-tinyurl
/
v1
/
settings
TinyURL Update 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"
        }
      }
    }
  }
}

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

Update TinyURL Settings

The response is of type object.