Update game and status of a channel

I’m trying to update game and status of my channel using following method

curl -X "PUT" "https://api.twitch.tv/kraken/channels/yyy" \
     -H 'Accept: application/vnd.twitchtv.v5+json' \
     -H 'Authorization: OAuth xxx' \
     -H 'Content-Type: application/json' \
     -H 'Client-ID: xxx' \
     -d $'{
  "status": "Channel status",
  "game": "Final Fantasy XV"

API responds with success status

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

  "_id": "yyy",
  "broadcaster_language": "en",
  "broadcaster_software": "unknown_rtmp",
  "broadcaster_type": "",
  "created_at": "2016-06-07T16:17:02Z",
  "description": "",
  "display_name": "name",
  "followers": 0,
  "game": null,
  "language": "en",
  "logo": "...png",
  "mature": false,
  "name": "name",
  "partner": false,
  "privacy_options_enabled": false,
  "private_video": false,
  "profile_banner": null,
  "profile_banner_background_color": null,
  "status": null,
  "updated_at": "2019-11-12T06:40:07Z",
  "url": "https://www.twitch.tv/zzz",
  "video_banner": null,
  "views": 100

But parameters have previous values. What I’m doing wrong?

Is wrong it should be

    "channel": {
        "status": "Channel Status",
        "game": "Game Name"

As per the example:

curl -H 'Accept: application/vnd.twitchtv.v5+json' \
-H 'Authorization: OAuth cfabdegwdoklmawdzdo98xt2fo512y' \
-H 'Content-Type: application/json' \
-d '{"channel": {"status": "The Finalest of Fantasies", "game": "Final Fantasy XV", "channel_feed_enabled": true}}' \
-X PUT 'https://api.twitch.tv/v5/channels/44322889'
1 Like

Thank you! I’ve missed it.

I did exactly the same thing the other day!

it happens!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.