Moderation

Flags_list

GET
/api/v1/flags
AuthorizationBearer <token>

In: header

Query Parameters

content_type?array<Python model class name>
  • PRICE - Price
  • PROOF - Proof
object_id?integer
order_by?string

Which field to use when ordering the results.

page?integer

A page number within the paginated result set.

reason?array<string>
  • WRONG_TYPE - Wrong type
  • WRONG_PRICE_VALUE - Wrong price value
  • WRONG_CURRENCY - Wrong currency
  • WRONG_PRODUCT - Wrong product
  • WRONG_LOCATION - Wrong location
  • WRONG_DATE - Wrong date
  • OTHER - Other
size?integer

Number of results to return per page.

status?string
  • OPEN - Open
  • CLOSED - Closed
Value in"CLOSED" | "OPEN"

Response Body

curl -X GET "https://loading/api/v1/flags?content_type=PRICE&object_id=0&order_by=string&page=0&reason=OTHER&size=0&status=CLOSED"
{
  "items": [
    {
      "id": 0,
      "content_type": "string",
      "object_id": 9223372036854776000,
      "reason": "WRONG_TYPE",
      "comment": "string",
      "status": "OPEN",
      "owner": "string",
      "source": "string",
      "created": "2019-08-24T14:15:22Z",
      "updated": "2019-08-24T14:15:22Z"
    }
  ],
  "page": 1,
  "pages": 16,
  "size": 100,
  "total": 1531
}