Reputation: 51
This is not shown anywhere in the API documentation, but seeing as it is the youtube developers who are making the API, there must be a way.
Upvotes: 0
Views: 608
Reputation: 6955
The category of a live stream can be set using the Videos.update
API endpoint invoked with a request body that has:
id
set to that broadcast's ID, andsnippet.categoryId
set to the desired video category ID.Be aware that, according to the official doc referenced above, snippet.title
must also be set:
snippet.title
- This property is only required if the request updates the video resource'ssnippet
.
Upvotes: 2