Skip to content

Admin Erase

POST
/ratchet/admin/privacy/erase
curl --request POST \
--url http://localhost:8000/ratchet/admin/privacy/erase \
--header 'Content-Type: application/json' \
--data '"example"'

Erase stored examples for good (privacy.erase): by client, end_user (in client’s scope, or with no client in every API key’s scope, every scope the ledger holds end users in and the keyless one), hashes and contains, each narrowing the scope; reason is required. A dry run unless dry_run is false. Needs an admin key (open in mock mode without admin keys, like the other management calls).

x-api-key
Any of:
string
Media typeapplication/json
Body

Example generated

example

Successful Response

Media typeapplication/json
Response Admin Erase Ratchet Admin Privacy Erase Post
object

Example generated

{}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}