Adding metadata to videos after they're uploaded?

Is there any way we can add tags/metadata to an uploaded video?

This is interesting. I assumed there was one, but in the API Documentation I couldn’t find an ‘edit video’ section. It’s possible to edit the name of a video in the Cloudflare Dashboard so there must be an api call to do that (and attach the metadata), but it’s not documented. Maybe @renan or @zaid can shine a light on this.

I would also like to know if this is possible. We have a lot of videos uploaded to Cloudflare, and our metadata are used to associate these videos with a user. Since videos can change ownership, we would need to update metadata on Cloudflare to reflect the new ownership!

You can just send a PATCH/POST request with the new metadata via the API! :slight_smile:

I’ll make sure we can do this via the dashboard as well at some point in the coming months.

3 Likes

@renan Would you care positing a sample endpoint here? I can’t seem to find the right endpoint using a PATCH request.

Using this endpoint, POST works but PATCH fails:
accounts/:account_identifier/stream/:identifier

The given error is:

    "result": null,
    "success": false,
    "errors": [
        {
            "code": 10005,
            "message": "Bad Request"
        }
    ],
    "messages": [
        {
            "code": 10005,
            "message": "Invalid protocol: please use TUS for uploads (see https://tus.io/ for protocol details)."
        }
    ]
}

please make this happen
it will be really helpful =)