Update videos via api

I have a bunch of videos on Cloudflare Stream, that I would like to update to require signed urls (“requireSignedURLs”: true) via the API. It seems like this can only be set upon create, but not updated later via the API?

There is a GET video details (Cloudflare API v4 Documentation), but no way to update them?

best regards, Simon

So to confirm, this won’t update the URL?:

https://api.cloudflare.com/#stream-videos-create-a-signed-url-token-for-a-video

The only other thing I can think of is to try PATCH instead of POST; it’s not shown as supported, but might be worth a try.

You can update the video object with a POST request:

curl --request POST \
  --url https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/stream/$VIDEO_ID \
  --header 'Authorization: Bearer $TOKEN’ \
  --data '{"creator":"test123"}'

In this example, you are setting the creator property to test123 on an existing video.

Thank you, that worked Zaid. I don’t get that information from reading the documentation that I posted a link to. Is this documented anywhere else, that I can go next time instead of spending everyones time on investigation and support?

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