Update an item tag
This method updates the range or the tag_metadata of the specified tag and returns the tag. Send at least one field. A field you omit keeps its current value. To clear the end of the range, send end_sec as null. The tag becomes a single moment. The platform merges your changes to tag_metadata with the existing metadata:
- A key with a value creates or replaces that key.
- A key set to
nulldeletes that key. - A key set to an empty string (
"") or an empty array ([]) is ignored. - A key you omit from the request keeps its current value.
The tag must keep at least one key in tag_metadata, and it holds up to 50 pairs. If the merged result breaks either limit, the request fails.
Authentication
Your API key.
You can find your API key on the API Keys page.
Path parameters
Request
The new end of the range, in seconds from the start of the video. It must be greater than start_sec. It must not exceed the duration of the video. Send null to clear the end, which turns a range into a single moment. Omit the field to keep the current end.
The keys to change. Send at least one key. Keys are strings of up to 128 characters. String values can have up to 8192 characters. Values can be a string, a number, a boolean, an array of strings, or null to delete the key. A key you omit keeps its current value. A nested object and an array containing anything other than strings are rejected. The tag holds up to 50 pairs after the merge. An integer must fit in 53 bits (-9007199254740991 to 9007199254740991). Send a wider integer, or an identifier that must be preserved verbatim, as a string.
Response
The end of the range, in seconds from the start of the video. The value is null for a tag on a single moment.