The Videas public API now files the library it fills: a key makes folders, puts what it adds straight into one, and moves an asset to another folder of its workspace. No permission joins the eight, and nothing that was already under /v1 changes — but for the parent_id of what a hidden folder holds.
Added
- A folder made:
POST /v1/foldersmakes a folder in a workspace’s tree, at its root or under another folder, withassets.library.upload;GET /v1/folders/{folder_id}reads one, withassets.library.read. Two folders may have the same name, and the request is not idempotent: look a folder up in its workspace’s listing before making it — the guide. - What a key adds, filed:
POST /v1/uploadsandPOST /v1/assetstakeparent_id, the folder ofworkspace_idthe new asset lands directly in. Without it, the asset lands at the workspace’s root, as before. - An asset moved:
PATCH /v1/assets/{asset_id}takesparent_id, the folder of its workspace the asset moves to —nullfor its root —, withassets.library.edit. Sending theparent_idit already reads with moves nothing, a move leavesupdated_atas it is, and an asset never changes workspace here. - One rule for every
parent_id: it names a folder thatGET /v1/workspaces/{workspace_id}/folderslists for the workspace concerned, or it is a404and nothing is created or moved.
Changed
- What a hidden folder holds reads as at the root: a folder hidden in Videas is in no listing, so an asset or a folder filed in it now reads
parent_id: null, and?parent=rootlists it.
Keys already created gain these writes as they are: every key carrying assets.library.upload makes folders, and every key carrying assets.library.edit moves assets. Filing an asset in a folder shared by a link — on its upload, its import or a move — makes it visible to whoever holds the link, and moving it out stops that: the guide says what to agree on before an integration files anything.