/<instance_id>/blacklists/search - GET [DEPRECATED]

This method is deprecated. UseĀ /<instance_id>/blacklists - GET



Method description

Get a list of blacklist items for the client {instance_id}. The result list is paginated.

URI Parameters

Parameter NameRequiredDescription
rows(error)See: Empathy Play API - Pagination
offset(error)See: Empathy Play API - Pagination
lang(error)Filter by blacklist item language
keywords(error)Filter by blacklist item keywords

Responses

200 - successful information retrieve

Type: application/json

Example application/json
{
  "num_found": 3,
  "results": [
    {
      "created_on": "2017-02-24T10:19:27",
      "id": "58b008b0f9cdda056a241e49",
      "lang": "en_EN",
      "terms": "prueba 1 mod",
      "updated_on": "2017-02-24T10:20:23"
    },
    {
      "created_on": "2017-02-24T10:23:13",
      "id": "58b00991f9cdda056b78a7eb",
      "lang": "en_EN",
      "terms": "prueba 2",
      "updated_on": "2017-02-24T10:23:13"
    },
    {
      "created_on": "2017-02-24T10:23:23",
      "id": "58b0099bf9cdda056a241e4a",
      "lang": "es_ES",
      "terms": "prueba 1",
      "updated_on": "2017-02-24T10:23:23"
    }
  ]
}
400 - Invalid parameters. Error response will include details

Type: application/json

Example application/json
{
  "code": 400,
  "details": "\"rows\" must be in range 10-200",
  "message": "Bad Request",
  "status": "error"
}
401 - the user performing the action doesn't meet the security criteria

Type: application/json

Example application/json
{
  "code": 401,
  "details": "The server could not verify that you are authorized to access the URL requested.  You either supplied the wrong credentials (e.g. a bad password), or your browser doesn't understand how to supply the credentials required.",
  "message": "Unauthorized",
  "status": "error"
}
404 - the instance doesn't exist or offset is wrong

Type: application/json

Example application/json
{
  "code": 404,
  "details": "",
  "message": "Not Found",
  "status": "error"
}

SeeEmpathy Play API - Pagination