July 8, 2026
The API checks file paths and YouTube links when you create an asset
Anthias 2026.07.1 protects the files on your player when assets are created through the API. We recommend upgrading every player.
The change is to creating an asset with a POST to /api/v1/assets, /api/v1.1/assets, /api/v1.2/assets or /api/v2/assets. Two kinds of request that used to be accepted are now refused:
- A
urithat is a file path has to point at a file inside the player's asset folder. A file uploaded through/api/v1/file_assetor/api/v2/file_assetlands there, so uploading a file and then creating the asset from theurithe upload returns works as before. - An asset whose
mimetypeisyoutube_assetneeds a YouTube link as itsuri: anhttporhttpsaddress onyoutube.com,www.youtube.com,m.youtube.com,music.youtube.comoryoutu.be.
A refused request gets a 400 response with the reason under uri, either Invalid file path. Failed to add asset. or A youtube_asset URI must point at a YouTube URL.:
{"uri": ["Invalid file path. Failed to add asset."]}A uri that isn't a valid address now gets a 400 the same way, with Invalid URL. Failed to add asset. under uri. Before, a file path that didn't exist and an invalid address both got a 500 response with the message under error.
If this affects you: if your integration creates assets from files already on the player, upload each file through
file_assetfirst and create the asset from theurithat comes back. If it sends links that aren't YouTube videos asyoutube_asset, send them with themimetypethat matches, such aswebpage. If it looks forerrorin a500response to spot a bad address, readuriin the400response instead.