POST
/
apps
/
{appId}
/
extensions
/
message-shortcuts
/
v1
/
settings
Message Shortcuts Store settings
curl --request POST \
  --url https://apimgmt.cometchat.io/apps/{appId}/extensions/message-shortcuts/v1/settings \
  --header 'Content-Type: application/json' \
  --header 'key: <key>' \
  --header 'secret: <secret>' \
  --data '{
  "settings": {
    "shortcuts": {
      "!cu": "See you later.",
      "!ty": "Hey! Thanks a lot! 😊",
      "!hbd": "Happy Birthday! 🥳",
      "!ssup": "What'\''s up!?",
      "!wc": "You'\''re welcome!"
    }
  }
}'
{
  "data": {
    "statusCode": 200,
    "success": true,
    "responseTime": 1.8547508716583252,
    "body": {
      "data": {
        "settings": {
          "shortcuts": {
            "!cu": "See you later.",
            "!ty": "Hey! Thanks a lot! 😊",
            "!hbd": "Happy Birthday! 🥳",
            "!ssup": "What's up!?",
            "!wc": "You're welcome!"
          }
        }
      }
    }
  }
}

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

Save Message Shortcuts Settings

The response is of type object.