Saved Searches

Collection of savedsearch representations.

You create new savedsearches posting to this collection. To see what fields you should post and what errors you can expect when creating savedsearches look at the documentation for the savedsearch resource.

Reference

POST /v1/savedsearches

Create a new savedsearch.

Examples

Creating a new savedsearch :

Request :

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

{
  "searchRequest" : {
    "query" : "phone",
    "categoryId" : 2,
    "sellerId"   : 4,
            "filters"    : {
                   "price" : {
                           "from" : 10,
                           "to" : 20
                    },
                   "postCode" : "1000AB",
                   "distance" : 1000,
                   "condition" : [ "Nieuw" ],
                   "color" : [ "Rood", "Blauw" ],
                   "searchOnDescription" : true
    }
  }
}

Response :

HTTP/1.1 201 OK
Content-Type: application/json
Location: /v1/savedsearches/123

{
  "_links": {
    "self": {
      "href": "/v1/savedsearches/123"
    }
  },
  "id": 123,
  "userId": 2,
  "searchRequest" : {
    "query" : "phone",
    "categoryId" : 2,
    "sellerId"   : 4,
    "filters"    : {
                   "price" : {
                           "from": 10,
                           "to": 20
                    },
                   "postCode" : "1000AB",
                   "distance" : 1000,
                   "condition" : [ "Nieuw" ],
                   "color" : [ "Rood", "Blauw" ],
                   "searchOnDescription" : true
    }
  },
  creationDate: "2014-12-19T15:03:53Z"
}