DELETE
/api/admin/errorsAdminDelete captured errors before a cutoff
Bulk-deletes rows of the captured server errors table older than the before cutoff. resource_id carries the number of deleted rows. A cutoff of 0 is valid and deletes nothing.
operationId
delete_api_admin_errorsAdministrationAuthentication & permissionsAdmin
Platform administrators only
- Accepted credentials
- Auth server session (refresh token cookie)
cookie "refresh_token_<auth_server_app_id>" - Access token (cookie)
cookie "access_token_<auth_server_app_id>" - Access token (Bearer)
Authorization: Bearer <JWT>
- Auth server session (refresh token cookie)
- Who may call
- Platform administrators only
Query parameters
| Name | Type | Description |
|---|---|---|
| before* | string | Cutoff: errors captured before this instant are deleted. An ISO-8601 datetime or a non-negative integer Unix epoch in milliseconds. |
Responses
application/json
ResourceCreationResponse
| Property | Type | Description |
|---|---|---|
| success* | true | |
| message* | string | |
| resource_id* | string | Identifier of the created / affected resource |
JSONExample
"success"true
"message""string"
"resource_id""string"
Example request
bashcurl
curl -X DELETE 'https://auth.schemavaults.com/api/admin/errors?before=<before>' \
-b 'refresh_token_<auth_server_app_id>=<value>'