Add a file to the workspace
Store a new file at version 1. Send text kinds (markdown, html) as content, everything else base64-encoded as content_base64. The name must be free among the workspace's live files — a deleted file frees its name. Send folder_id to file it as it is created; the whole request is refused when that folder is not this workspace's, so a file is never stored somewhere nobody asked for. The new file is readable by the workspace (team); this route does not itself mint a public link, EXCEPT when folder_id names a folder that is already shared — filing into a shared folder publishes the file at once, and needs the same authority sharing does. Answers 404 for an unknown folder, 409 when the name is taken, 413 when the body is over the size cap, and 422 for an unknown kind or a mismatched content type.
Request
- Base URL: https://api.patricia.app (the document declares no server; this is the origin it was published from)
- URL: https://api.patricia.app/v1/assets
- Auth: HTTP bearer
Headers
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.