Skip to main content
POST
/
api
/
v1
/
storage
/
sandboxes
/
{sandbox_id}
/
sources
/
_sweep_ephemeral
Archive ephemeral sources inactive for >= threshold
curl --request POST \
  --url https://api.copass.id/api/v1/storage/sandboxes/{sandbox_id}/sources/_sweep_ephemeral \
  --header 'Authorization: Bearer <token>'
{
  "archived_count": 123,
  "inactivity_seconds": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null

Path Parameters

sandbox_id
string
required

Query Parameters

inactivity_seconds
integer
default:86400

Response

Successful Response

archived_count
integer
required
inactivity_seconds
integer
required