API
In non-production environments an API is available under the base path /api.
GET /locations
Gets locations held by the service.
Parameters
-
is_attached_to_organisation- one oftrueorfalse -
status- one ofopen,closedorunknown -
type- one ofschool,generic_clinic,community_clinicorgp_practice -
year_groups[]- an array of year groups which are administered at the location
Response
-
address_line_1 -
address_line_2 -
address_postcode -
address_town -
gias_establishment_number -
gias_local_authority_code -
id -
is_attached_to_organisation -
name -
ods_code -
status -
type -
url -
urn -
year_groups
POST /onboard
Body
DELETE /organisations/:ods_code
Resets an organisation by deleting all associated records.
Parameters
-
keep_itself-trueorfalse, whether to keep the organisation itself and only delete associated information