Skip to content

Admin Export

GET
/ratchet/admin/export/{kind}
curl --request GET \
--url http://localhost:8000/ratchet/admin/export/example

One table as NDJSON (privacy.export_lines, FR-13.5): examples (those that still have their text, with their provenance: teacher, license, license URL, hash, split, seen, redactions, clients), requests, versions (with their BOMs as stored), events or erasures (with their items). Filters: task, split, since (epoch seconds or an ISO 8601 date) and client, where the kind has them (400 otherwise). Needs an admin key, like the other management calls. End-user hashes are left out; API keys are never stored.

kind
required
Kind
string
task
Any of:
string
split
Any of:
string
since
Any of:
string
client
Any of:
string
x-api-key
Any of:
string

Successful Response

Media typeapplication/json

Example generated

example

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"
}
]
}