apistockdocs
v0.4 GitHub apistock.dev
API reference/Ops: settings

List retention policies

GET /ops/retention
How long each kind of data is kept, the runtime setting that decides it, the oldest stored row, and the job that deletes expired rows with its last and next run. Change a policy with PUT /ops/settings/{key}.

Authorization

bearer
Authorizationheader · stringrequired

Session token from POST /v1/auth/login with "transport": "bearer". Browsers use the session cookie that login sets instead.

Responses

errors: application/problem+json
200

OK

401

Unauthorized

403

Forbidden

500

Internal Server Error

Match errors on the problem's code, which stays the same, not on its message.

esc
↑↓ move↵ openesc close