ressource.socialbetadocumentation
API referenceFolders

File sources into a folder, or out of every folder

Up to 500 of the caller's own sources per call, all or nothing: if the folder is not the caller's, or any id is not one of the caller's sources, nothing moves and the answer is 404 — with the unknown ids in `details.missing` for the latter. `moved` lists the sources whose folder changed; `unchanged` counts the ones already there.

POST/api/v1/sources/move

“Try it” is off for this endpoint: it deletes or rewrites data in bulk. Use the code samples instead.

Up to 500 of the caller's own sources per call, all or nothing: if the folder is not the caller's, or any id is not one of the caller's sources, nothing moves and the answer is 404 — with the unknown ids in details.missing for the latter. moved lists the sources whose folder changed; unchanged counts the ones already there.

Authorization

headerAuthorizationBearer <token>

A personal access token (rsk_…) or a Supabase access token.

Request Body

application/json
  1. body
source_ids*array<>
Items1 <= items <= 500
folder_id*|null

Response Body

Moved

application/json
  1. response
moved*array<>
unchanged*number
curl -X POST 'https://www.ressource.social/api/v1/sources/move' \  -H 'Content-Type: application/json' \  -d '{  "source_ids": [    "0ef3b708-5992-473f-8907-de8eaa4f1ec9"  ],  "folder_id": "7695bac3-9397-4ec2-9335-45a2a16f1901"}'
{  "moved": [    "e0843386-b61f-4bac-9e6c-7f4d8b178913"  ],  "unchanged": 0}