loyalties

Update loyalty settings

put/loyalty/{channel}

Request

Path parameters

channelstring required
Example:5b2e2007760aeb7729487dab

guid - Channel id

Headers

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

Response

_idstring required
channelstring required
createdAtstring required
updatedAtstring required

Example response

{
  "loyalty": {
    "bonuses": {
      "follow": 0,
      "tip": 0,
      "subscriber": 0,
      "cheer": 0,
      "host": 0
    },
    "name": "points",
    "enabled": false,
    "amount": 5,
    "subscriberMultiplier": 3,
    "ignored": [
      "streamelements"
    ]
  },
  "_id": "5b2e2007760aeb7230487dc1",
  "channel": "5b2e2007760aeb7729487dab",
  "createdAt": "2018-06-23T10:25:11.768Z",
  "updatedAt": "2018-06-23T10:25:11.768Z"
}

Changes

    • 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