bot

/:channel/levels

Changed on

Add user to permissions table

post/bot/{channel}/levels

Request

Path parameters

channelstring required
Example:5b2e2007760aeb7729487dab

guid - Channel id

Headers

Acceptstring required
Example:application/json; charset=utf-8

Request body

usernamestring required
levelinteger required

Example request

{
  "username": "",
  "level": 500
}

Response

usernamestring required
lastActivestring required
moderatorboolean required
subscriberboolean required
levelinteger required

Example response

{
  "username": "testuser",
  "lastActive": "0001-01-01T00:00:00Z",
  "moderator": false,
  "subscriber": false,
  "level": 500
}

Changes

    • breaking

      added the new required request property

    • breaking

      added the new required request property

    • breaking

      the request's body type changed from no type to object

    • 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