File a consumer flag against one bank record.
const url = 'https://api.utmelab.com/api/v1/report';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"detail":"example","reason":"example","target_id":"example","target_type":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.utmelab.com/api/v1/report \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "detail": "example", "reason": "example", "target_id": "example", "target_type": "example" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Optional context, capped at [crate::core::reports::MAX_DETAIL_CHARS]
characters. No PII.
One of: wrong_answer, unclear_stem, broken_option, wrong_explanation, other.
The target’s id. Topics have no single id, so theirs is the
slash-joined exam/subject/slug.
One of: question, topic, passage, novel.
Example generated
{ "detail": "example", "reason": "example", "target_id": "example", "target_type": "example"}Responses
Section titled “Responses”An identical filing already existed; the body carries the original’s id
Outcome of filing a consumer flag. duplicate is true when an
identical filing already existed; id is then the original’s.
object
Example generated
{ "duplicate": true, "id": "example", "reason": "example", "target_id": "example", "target_type": "example"}Filed
Outcome of filing a consumer flag. duplicate is true when an
identical filing already existed; id is then the original’s.
object
Example generated
{ "duplicate": true, "id": "example", "reason": "example", "target_id": "example", "target_type": "example"}An API key is missing or invalid.
Stable body returned by HTTP error responses.
object
Example generated
{ "code": "example", "error": "example"}The API key lacks the required scope.
Stable body returned by HTTP error responses.
object
Example generated
{ "code": "example", "error": "example"}No such target
Stable body returned by HTTP error responses.
object
Example generated
{ "code": "example", "error": "example"}The caller has exceeded the applicable rate limit.
Stable body returned by HTTP error responses.
object
Example generated
{ "code": "example", "error": "example"}The API is temporarily unavailable.
Stable body returned by HTTP error responses.
object
Example generated
{ "code": "example", "error": "example"}