Twitch update channel information endpoint requires new mandatory field

Hey :slight_smile:

the updateChannelInformation endpoint sunnely seems to require ContentClassificationLabels:

Something went wrong while updating stream info: TwitchHelix#updateChannelInformation(String,String,ChannelInformation) failed and no fallback available., org.apache.commons.lang3.exception.ContextedRuntimeException: Helix API Error | Exception Context: | [1:requestUrl=https://api.twitch.tv/helix/channels?broadcaster_id=12345] | [2:requestMethod=PATCH] | [3:responseBody={“error”:“Bad Request”,“status”:400,“message”:“ContentClassificationLabels cannot be nil”}] | [4:errorType=Bad Request] | [5:errorStatus=400] | [6:errorType=ContentClassificationLabels cannot be nil] | [7:errorMessage=ContentClassificationLabels cannot be nil]

Can anyone confirm this?

  1. remove all content classifications on your stream at twitch.tv
  2. call updateChannelInformation endpoint with a new title
  3. get a 400 reponse

Copy of my discord response to the same query

Ths sounds like a bug in the library you are using since you have referred to things as the names/labels that a library would use. and ContentClassificationLabels has been set to nil/null instead of omited (to not update the CCLs) or an empty array (to remove labels). Since it’s a PATCH you only send what to change and here you or the lib send a nil/invalue value for the field and I doubt you intended to update CCL’s here so the key should of been omitted from the JSON body

Continues and follows up on