Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Method description

Get a list of boosts for the requested 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
enabled(error)Filter by enabled/disabled state
visible(error)Filter by boost is activated or not on request time
lang(error)Filter by boost language
rows(tick)See: Empathy Play API - Pagination
offset(tick)See: Empathy Play API - Pagination

Response format and codes

...

languagejs

Responses

200 - successful information retrieve

Type: application/json

Code Block
titleExample application/json
collapsetrue
{
  "num_found": 1239,
  "results": [
    {
      "_idactivation_date": null,
      "created_on": "2017-08-08T15:27:43",
      "deactivation_date": ObjectId()null,
      "enabled": true,
      "zero_results": false"extra": {
        "user": "-"
      },
      "id": "5989d86fe6ece90012a92766",
      "image_url": null,
      "referenceskeywords": [
        "raffle"
      ],
   {   "reflang": "SKU12341234", "titleen",
      "match_all": false,
      "title": "Raffle",
      "type": "DIRECT",
      "updated_on": "2017-08-08T15:27:43",
      "url": "..."}http://empathybroker.com/raffle",
      "weight": 0
    },
    {
      "activation_date": null,
      "created_on": "2017-08-08T15:27:44",
      "deactivation_date": null,
      "enabled": true,
      "extra": {
        "user": "-"
      },
      ] "id": "5989d870e6ece90012a92767",
      "image_url": null,
      "keywords": ["blue trousers"]
        "returns",
        "return"
      ],
      "lang": "en",
      "match_all": false,
      "title": "Returning goods",
      "type": "PROMOTED",
      "updated_on": "2017-08-08T15:27:44",
      "url": "http://empathybroker.com/delivery-info",
      "weight": 9
    },
    {
      "activation_date": null"2015-12-20T00:00:00",
      "created_on": "2017-08-08T15:27:44",
      "deactivation_date": "2015-12-25T00:00:00",
      "enabled": false,
      "extra": {
        "user": "-"
      },
      "id": "5989d8701f3319000c833528",
      "image_url": null,
      "langskeywords": [
        "kids"
      ],
      "lang": "en_US", "en_GB"]",
      "match_all": false,
      "title": "http://empathybroker.com/children/partywear/boys",
      "type": "DIRECT",
      "updated_on": "2017-08-08T15:27:44",
      "url": "http://empathybroker.com/children/partywear/boys",
      "weight": 0
    },
    {
      "activation_date": null,
      "created_on": "2017-08-08T15:27:44",
      "deactivation_date": null,
      "enabled": true,
      "extra": {
        "user": "-"
      },
      "id": "5989d8701f3319000b83352f",
      "image_url": "https://preassets.empathybroker.com/images/4edaf2aa-b2ac-460c-b6d1-5d7a172e89f",
      "keywords": [
        "trousers"
      ],
      "lang": "en",
      "match_all": false,
      "title": "trousers",
      "type": "BANNER",
      "updated_on": "2017-08-08T15:27:45",
      "url": "http://www.google.es",
      "weight": 9
    }
  ]
}
400 - Invalid parameters. Error response will include details

Type: application/json

Code Block
titleExample application/json
collapsetrue
{
  "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

Code Block
titleExample application/json
collapsetrue
{
  "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

Code Block
titleExample application/json
collapsetrue
{
  "code": 404,
  "details": "",
  "message": "Not Found",
  "status": "error"
}


HTTP codeDescription
200OK. Response follows
400Invalid parameters. Error response will include details
401The user does not meet the security criteria
404See: Empathy Play API - Pagination