Attach files to one of the caller's sources
Multipart: `files` (repeat the field, up to 10). Each file succeeds or fails on its own: `attachments` lists the ones attached, `errors` the others with why. 201 when at least one was attached, 200 when none were. Someone else's source is 404. Accepted types: image/jpeg, image/jpg, image/png, image/gif, image/webp, image/svg+xml, image/avif, image/bmp, image/tiff, image/heic, image/heif, image/x-icon, image/vnd.microsoft.icon, application/pdf, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, text/plain, text/markdown, application/zip, application/x-zip-compressed. At most 50 MB.
Sends a real request with your token. Prefer a read-only token; it is kept in this browser's storage.
Multipart: files (repeat the field, up to 10). Each file succeeds or fails on its own: attachments lists the ones attached, errors the others with why. 201 when at least one was attached, 200 when none were. Someone else's source is 404. Accepted types: image/jpeg, image/jpg, image/png, image/gif, image/webp, image/svg+xml, image/avif, image/bmp, image/tiff, image/heic, image/heif, image/x-icon, image/vnd.microsoft.icon, application/pdf, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, text/plain, text/markdown, application/zip, application/x-zip-compressed. At most 50 MB.
AuthorizationBearer <token>A personal access token (rsk_…) or a Supabase access token.
id*string1 <= lengthmultipart/form-data- body
files*array<>1 <= itemsNothing attached — see errors
curl -X POST 'https://www.ressource.social/api/v1/sources/string/attachments' \ -F 'files=[ "string"]'Rename, describe, recolour or move a folder PATCH
Only the fields sent change. `parent_folder_id` moves the folder with its whole subtree — `null` to the root. Moving a folder into itself or one of its own subfolders, or past ten levels deep, is 400; a parent that is not the caller's is 404; a name a new sibling already has is 409.
Remove an attachment and its file DELETE
Owner only: someone else's attachment is 404.