Act on a report or a claim
PATCH
/api/v1/hub/reports/{id}
const url = 'http://localhost:3000/api/v1/hub/reports/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"status":"open","delist":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url http://localhost:3000/api/v1/hub/reports/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "status": "open", "delist": true }'Mark it resolved, or open again; delist takes its listing off BrandHub (the brand goes private).
Scope: admin.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
The report’s id
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
status
string
delist
Take the listing off BrandHub: the brand goes private
boolean
Responses
Section titled “Responses”The report
Media typeapplication/json
object
data
required
object
id
required
string format: uuid
status
required
string
brand
required
object
slug
required
string
visibility
required
string
Example
{ "data": { "status": "open", "brand": { "visibility": "private" } }}default
Section titled “default”An error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}