curl --request POST \
--url http://localhost:3091/v1/api/reports \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reportedUserId": 123,
"reason": "<string>",
"description": "<string>"
}
'{
"id": 123,
"reporterId": 123,
"reportedUserId": 123,
"reason": "<string>",
"description": "<string>",
"status": "<string>",
"adminNotes": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"resolvedAt": "2023-11-07T05:31:56Z"
}Submit a report against another user with a reason and description
curl --request POST \
--url http://localhost:3091/v1/api/reports \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reportedUserId": 123,
"reason": "<string>",
"description": "<string>"
}
'{
"id": 123,
"reporterId": 123,
"reportedUserId": 123,
"reason": "<string>",
"description": "<string>",
"status": "<string>",
"adminNotes": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"resolvedAt": "2023-11-07T05:31:56Z"
}JWT access token from POST /v1/api/auth/login