Impressions

Represent viewings of a widget. It can only be posted for a specific Widget.

Request Body

name required default constraints
widgetId yes
features yes

widgetId

A unique identifier of the widget we want to add a impression to

features

A list of comma delimited features (context elements) for which we want to register an impression

Errors

http error code description
400 feature-missing No feature string provided
500 internal-server-error Oops! Sorry, something went wrong on our side.
400 widget-id-missing No widget id provided

Reference

POST /v1/impressions

Examples

Posting a single impression

Request :

POST /v1/impressions HTTP/1.1
Host: api.marktplaats.nl
Content-Type: application/json

{
  "widgetId": 10000,
  "features": "feature1,feature2",
}

Response :

HTTP/1.1 201 Created