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?