Gamma API

List unreferenced files

GET
/api/organizations/{slug}/storage/orphans

Files in the organization's own bucket that no record points at, found by the daily cleanup and kept because automatic deletion is off. Switched back on, the next cleanup deletes them.

Who may call it: An owner or security admin of the organization. API keys: no.

Authorization

session
cookiegamma.session_token<token>

The session cookie a sign-in sets. Over HTTPS its name carries the __Host- prefix. Browsers send it on their own; other clients keep it from the sign-in response.

Path Parameters

slug*string

The organization's slug, as in its URL.

Response Body

OK.

application/json
  1. response
orphans*array<>
Example Request
curl -X GET 'http://localhost:3000/api/organizations/string/storage/orphans'
Example Response
{  "orphans": [    {      "id": "string",      "key": "string",      "projectId": "string",      "size": 0,      "foundAt": "2019-08-24T14:15:22Z"    }  ]}