CQC Syndication

(1 review)

3. Changes Examples

Example 1 - Retrieve Changed Providers

The GET request below retrieves page 1 of providers which have changed between two dates. Display 10 per page.

Request: https://api.cqc.org.uk/public/v1/changes/provider?page=1&perPage=10&startTimestamp=2019-03-10T06:30:00Z&endTimestamp=2019-03-14T06:30:00Z&partnerCode=OpenAnswers

Response:

{
   "total":13,
   "firstPageUri":"/changes/provider?page=1&perPage=10&startTimestamp=2019-03-10T06:30:00Z&endTimestamp=2019-03-14T06:30:00Z&partnerCode=OpenAnswers",
   "page":1,
   "previousPageUri":null,
   "lastPageUri":"/changes/provider?page=2&perPage=10&startTimestamp=2019-03-10T06:30:00Z&endTimestamp=2019-03-14T06:30:00Z&partnerCode=OpenAnswers",
   "nextPageUri":"/changes/provider?page=2&perPage=10&startTimestamp=2019-03-10T06:30:00Z&endTimestamp=2019-03-14T06:30:00Z&partnerCode=OpenAnswers",
   "perPage":10,
   "totalPages":2,
   "changes":[
      "1-468267562",
      "RA3",
      "RDY",
      "RHA",
      "RN7",
      "RP7",
      "RRU",
      "RW1",
      "RY2",
      "RY4"
   ],
   "uri":"/changes/provider?page=1&perPage=10&startTimestamp=2019-03-10T06:30:00Z&endTimestamp=2019-03-14T06:30:00Z"
}

Example 2 - Retrieve Changed Locations

The GET request below retrieves page 1 of locations which have changed between two dates. Display 10 per page.

Request: https://api.cqc.org.uk/public/v1/changes/location?page=1&perPage=10&startTimestamp=2019-03-10T06:30:00Z&endTimestamp=2019-03-14T06:30:00Z&partnerCode=OpenAnswers

Response:

{
   "total":71,
   "firstPageUri":"/changes/location?page=1&perPage=10&startTimestamp=2019-03-10T06:30:00Z&endTimestamp=2019-03-14T06:30:00Z&partnerCode=OpenAnswers",
   "page":1,
   "previousPageUri":null,
   "lastPageUri":"/changes/location?page=8&perPage=10&startTimestamp=2019-03-10T06:30:00Z&endTimestamp=2019-03-14T06:30:00Z&partnerCode=OpenAnswers",
   "nextPageUri":"/changes/location?page=2&perPage=10&startTimestamp=2019-03-10T06:30:00Z&endTimestamp=2019-03-14T06:30:00Z&partnerCode=OpenAnswers",
   "perPage":10,
   "totalPages":8,
   "changes":[
      "1-108946357",
      "1-110299837",
      "1-1134752815",
      "1-114347996",
      "1-115269563",
      "1-117277871",
      "1-117277887",
      "1-117277911",
      "1-118801845",
      "1-119173823"
   ],
   "uri":"/changes/location?page=1&perPage=10&startTimestamp=2019-03-10T06:30:00Z&endTimestamp=2019-03-14T06:30:00Z"
}

Reviews