/filesexperimentalWymagana sesjaBoth category and scopeId are required; there is no unscoped listing. Responds 403 when the caller is not a member of the workshop identified by scopeId.
Parametry zapytania
| Nazwa | Typ | Wymagane | Ograniczenia | Opis |
|---|---|---|---|---|
| category | FileCategory | Tak | enum"grid_tile_icon""estimate_pdf" | - |
| scopeId | string | Tak | - | The workshop id to list files for. |
Odpowiedzi
200SuccessPole Typ Wymagane Ograniczenia Opis files array of FileRecord Tak - - Przykład{ "files": [ { "id": "file-1", "scope": "workshop", "scopeId": "workshop-1", "category": "grid_tile_icon", "name": "chisel-icon.png", "contentType": "image/png", "sizeBytes": 48213, "uploadedByUid": "uid-1", "createdAt": "2026-08-05T10:15:00.000Z" } ] }400category or scopeId is missing or invalidBrak treści.
401Not authenticatedBrak treści.
403ForbiddenBrak treści.
Przykładowe żądanie
curl -X GET 'https://mercastra.cloud/api/files?category=<category>&scopeId=<scopeId>' \ -H 'Cookie: session=<session cookie>'