commands

/:channel/default/:commandId

Changed on

Update default command

put/bot/commands/{channel}/default/{commandId}

Request

Path parameters

channelstring required
Example:5b2e2007760aeb7729487dab

guid - Channel id

commandIdstring required

string - command id

Headers

Acceptstring required
Example:application/json

Request body

object required

Example request

{}

Response

aliasesstring[] required
keywordsstring[] required
enabledboolean required
enabledOnlineboolean required
enabledOfflineboolean required
hiddenboolean required
costinteger required
typestring required
accessLevelinteger required
_idstring
regexstring required
replystring required
commandstring required
channelstring required
createdAtstring
updatedAtstring

Example response

{
  "cooldown": {
    "user": 15,
    "global": 5
  },
  "aliases": [],
  "keywords": [],
  "enabled": true,
  "enabledOnline": true,
  "enabledOffline": true,
  "hidden": false,
  "cost": 0,
  "type": "say",
  "accessLevel": 100,
  "_id": "5c0a5172de9a4c5b7da14d8a",
  "regex": "test[0-9]{3}",
  "reply": "test response",
  "command": "test",
  "channel": "5b2e2007760aeb7729487dab",
  "createdAt": "2018-12-07T10:54:42.594Z",
  "updatedAt": "2018-12-07T10:54:42.594Z"
}

Changes

    • breaking

      removed the required property from the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • warning

      the optional response header Access-Control-Allow-Credentials removed for the status 200

    • warning

      the optional response header Access-Control-Expose-Headers removed for the status 200

    • warning

      the optional response header ETag removed for the status 200

    • warning

      the optional response header Server removed for the status 200

    • warning

      the optional response header Strict-Transport-Security removed for the status 200

    • warning

      the optional response header X-Content-Type-Options removed for the status 200

    • warning

      the optional response header X-DNS-Prefetch-Control removed for the status 200

    • warning

      the optional response header X-Download-Options removed for the status 200

    • warning

      the optional response header X-Frame-Options removed for the status 200

    • warning

      the optional response header X-Requested-From removed for the status 200

    • warning

      the optional response header X-XSS-Protection removed for the status 200