In the description it says Create a single scheduled broadcast or a recurring scheduled broadcast for a channel’s stream schedule.
Unfortunately I did not manage to create a single scheduled broadcast.
Using the CURL example and putting my token, my userId and my clientId and I get:
{ [0] error: 'Forbidden', [0] status: 403, [0] message: 'single segment creation not authorized' [0] }
Also I have seen that in the docs the duration is an optional parameter but when I try to use the API I get a response saying it is a required parameter.
CURL that I use:
curl -X POST ‘https://api.twitch.tv/helix/schedule/segment?broadcaster_id=myUserId’
-H ‘Authorization: Bearer myTOken’
-H ‘Client-Id: myCLientId’
-H “Content-Type: application/json” \ -d ‘{
“start_time”: “2021-07-01T18:00:00Z”,
“timezone”: “America/New_York”,
“is_recurring”: false,
“duration”: “60”,
“category_id”: “509670”,
“title”: “TwitchDev Monthly Update”
}’