Skip to main content

Sync endpoint

Endpoint

https://directory.spineservices.nhs.uk/ORD/2-0-0/sync?{search parameters}

Description

Returns a list of organisation records that have been modified since a specified date.

Parameters

Parameter Description
LastChangeDate Date
Date in the format YYYY-MM-DD. Note that the API will only return records that have been updated in the last 6 months.
_format String
Can take xml, json, text/json, text/xml, application/json and application/xml as arguments. If this parameter is not supplied, the format will default to JSON.

 

Example

The following query returns summary information for one or more organisations where the LastChangeDate specified (15 March 2019) is greater than or equal to the LastChangeDate within the organisation records.

https://directory.spineservices.nhs.uk/ORD/2-0-0/sync?LastChangeDate=2019-03-15&_format=xml

Example extract of results:

Copy
<?xml version=’1.0′ encoding=’UTF-8′?>

<Organisations>

  <Organisation>

    <OrgLink>https://directory.spineservices.nhs.uk/ORD/2-0-0/organisations/8HD87?_format=xml</OrgLink>

  </Organisation>

  <Organisation>

    <OrgLink>https://directory.spineservices.nhs.uk/ORD/2-0-0/organisations/8HA83?_format=xml</OrgLink>

  </Organisation>

  <Organisation>

    <OrgLink>https://directory.spineservices.nhs.uk/ORD/2-0-0/organisations/8HD96?_format=xml</OrgLink>

  </Organisation>

  <Organisation>

    <OrgLink>https://directory.spineservices.nhs.uk/ORD/2-0-0/organisations/8GY44?_format=xml</OrgLink>

  </Organisation>

</Organisations>

HTML

Last edited: 3 May 2019 2:28 pm