{"openapi":"3.1.0","info":{"title":"FaCT API","description":"API for all operations relating to the FaCT application.","license":{"name":"MIT","url":"https://opensource.org/licenses/MIT"},"version":"1.0.0"},"externalDocs":{"description":"README","url":"https://github.com/hmcts/fact-api"},"servers":[{"url":"http://localhost","description":"Generated server url"}],"paths":{"/courts/{slug}/general":{"get":{"tags":["admin-courts-controller"],"summary":"Find court details by slug","operationId":"findCourtByName","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Court"}}}}}},"put":{"tags":["admin-courts-controller"],"summary":"Update court","operationId":"updateCourtBySlug","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Court"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Court"}}}}}}},"/courts/{slug}/courtPhoto":{"get":{"tags":["admin-courts-controller"],"summary":"Find the photo for a court","operationId":"getCourtImageBySlug","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"string"}}}},"401":{"description":"Unauthorised","content":{"application/json":{"schema":{"type":"string"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"string"}}}},"404":{"description":"Court not Found","content":{"application/json":{"schema":{"type":"string"}}}}}},"put":{"tags":["admin-courts-controller"],"summary":"Update the photo for a court","operationId":"updateCourtImageBySlug","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageFile"}}},"required":true},"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"string"}}}},"401":{"description":"Unauthorised","content":{"application/json":{"schema":{"type":"string"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"string"}}}},"404":{"description":"Court not Found","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/courts/info":{"put":{"tags":["admin-courts-controller"],"summary":"Update selected courts info","operationId":"updateCourtsInfo","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtInfoUpdate"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/admin/openingTypes":{"get":{"tags":["admin-opening-type-controller"],"summary":"Retrieve all opening types","operationId":"getAllOpeningTypes","responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpeningType"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpeningType"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpeningType"}}}}}}},"put":{"tags":["admin-opening-type-controller"],"summary":"Update opening type","operationId":"updateOpeningType","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpeningType"}}},"required":true},"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpeningType"}}}},"400":{"description":"Invalid Opening type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpeningType"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpeningType"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpeningType"}}}},"404":{"description":"Opening type not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpeningType"}}}}}},"post":{"tags":["admin-opening-type-controller"],"summary":"Create opening type","operationId":"createOpeningType","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpeningType"}}},"required":true},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpeningType"}}}},"400":{"description":"Invalid opening type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpeningType"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpeningType"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpeningType"}}}},"409":{"description":"Opening type already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpeningType"}}}}}}},"/admin/localauthorities/{localAuthorityId}":{"put":{"tags":["admin-local-authorities-controller"],"summary":"Update local authority","operationId":"updateLocalAuthority","parameters":[{"name":"localAuthorityId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocalAuthority"}}}},"400":{"description":"Invalid Local Authority","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocalAuthority"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocalAuthority"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocalAuthority"}}}},"404":{"description":"Local Authority not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocalAuthority"}}}},"409":{"description":"Local Authority already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocalAuthority"}}}}}}},"/admin/facilities":{"get":{"tags":["admin-facilities-controller"],"summary":"Return all facility types","operationId":"getAllFacilities","responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FacilityType"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FacilityType"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FacilityType"}}}}}}},"put":{"tags":["admin-facilities-controller"],"summary":"Update facility type","operationId":"updateFacilityType","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacilityType"}}},"required":true},"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacilityType"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacilityType"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacilityType"}}}},"404":{"description":"Facility Type not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacilityType"}}}},"409":{"description":"Facility Type already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacilityType"}}}}}},"post":{"tags":["admin-facilities-controller"],"summary":"Create new facility type","operationId":"createFacilityType","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacilityType"}}},"required":true},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacilityType"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacilityType"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacilityType"}}}},"409":{"description":"Facility Type already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacilityType"}}}}}}},"/admin/facilities/reorder":{"put":{"tags":["admin-facilities-controller"],"summary":"Reorder facility types","operationId":"reorderFacilityTypes","requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"integer","format":"int32"}}}},"required":true},"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FacilityType"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FacilityType"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FacilityType"}}}}},"404":{"description":"Facility Type not found","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FacilityType"}}}}}}}},"/admin/courts/{sourceSlug}/{destinationSlug}/postcodes":{"put":{"tags":["admin-court-postcode-controller"],"summary":"Move postcodes from one court to another","operationId":"movePostcodes","parameters":[{"name":"sourceSlug","in":"path","required":true,"schema":{"type":"string"}},{"name":"destinationSlug","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}},"required":true},"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"400":{"description":"Invalid postcodes","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"404":{"description":"Postcodes do not exist","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"409":{"description":"Postcodes already exist","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}}}}},"/admin/courts/{slug}/{areaOfLaw}/localAuthorities":{"get":{"tags":["admin-court-local-authorities-controller"],"summary":"Find a courts local authorities by slug","operationId":"getCourtLocalAuthorities","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"areaOfLaw","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LocalAuthority"}}}}}}},"put":{"tags":["admin-court-local-authorities-controller"],"summary":"Update a courts local authorities for a area of law by super admin","operationId":"updateCourtLocalAuthorities","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"areaOfLaw","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LocalAuthority"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LocalAuthority"}}}}}}}},"/admin/courts/{slug}/openingTimes":{"get":{"tags":["admin-court-opening-time-controller"],"summary":"Find court opening times by slug","operationId":"getCourtOpeningTimes","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpeningTime"}}}}}}},"put":{"tags":["admin-court-opening-time-controller"],"summary":"Update court opening times","operationId":"updateCourtOpeningTimes","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpeningTime"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpeningTime"}}}}}}}},"/admin/courts/{slug}/history":{"get":{"tags":["admin-court-history-controller"],"summary":"Get all court histories of a court","operationId":"getCourtHistoryByCourtSlug","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful - Will return an empty response when no Court matches ID","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtHistory"}}}}},"401":{"description":"Unauthorised user","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtHistory"}}}}}}},"put":{"tags":["admin-court-history-controller"],"summary":"Replace the court histories of a given court","operationId":"updateCourtHistories","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtHistory"}}}},"required":true},"responses":{"201":{"description":"Successfully updated court","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtHistory"}}}}},"404":{"description":"Court Not Found","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtHistory"}}}}},"401":{"description":"Unauthorised user","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtHistory"}}}}}}}},"/admin/courts/{slug}/generalInfo":{"get":{"tags":["admin-court-general-info-controller"],"summary":"Retrieve court general information","operationId":"getCourtGeneralInfo","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtGeneralInfo"}}}}}},"put":{"tags":["admin-court-general-info-controller"],"summary":"Update court general information","operationId":"updateCourtGeneralInfo","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtGeneralInfo"}}},"required":true},"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtGeneralInfo"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtGeneralInfo"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtGeneralInfo"}}}},"404":{"description":"Court not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtGeneralInfo"}}}},"409":{"description":"Court already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtGeneralInfo"}}}}}}},"/admin/courts/{slug}/facilities":{"get":{"tags":["admin-court-facility-controller"],"summary":"Find a court's facilities by slug","operationId":"getCourtFacilities","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Facility"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Facility"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Facility"}}}}},"404":{"description":"Court not found","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Facility"}}}}}}},"put":{"tags":["admin-court-facility-controller"],"summary":"Update a court's facilities","operationId":"updateCourtFacility","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Facility"}}}},"required":true},"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Facility"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Facility"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Facility"}}}}},"404":{"description":"Court not found","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Facility"}}}}}}}},"/admin/courts/{slug}/emails":{"get":{"tags":["admin-court-email-controller"],"summary":"Find email addresses by slug","operationId":"getCourtEmails","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Email"}}}}}}},"put":{"tags":["admin-court-email-controller"],"summary":"Update email addresses for a provided court","operationId":"updateCourtEmails","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Email"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Email"}}}}}}}},"/admin/courts/{slug}/courtTypesAndCodes":{"get":{"tags":["admin-court-types-and-codes-controller"],"summary":"Find a court's types, GBS code and Dx codes by slug","operationId":"getCourtTypesAndCodes","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtTypesAndCodes"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtTypesAndCodes"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtTypesAndCodes"}}}},"404":{"description":"Court not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtTypesAndCodes"}}}}}},"put":{"tags":["admin-court-types-and-codes-controller"],"summary":"Update a court's types, GBS code and Dx codes","operationId":"updateCourtTypesAndCodes","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtTypesAndCodes"}}},"required":true},"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtTypesAndCodes"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtTypesAndCodes"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtTypesAndCodes"}}}},"404":{"description":"Court not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtTypesAndCodes"}}}}}}},"/admin/courts/{slug}/courtAreasOfLaw":{"get":{"tags":["admin-court-areas-of-law-controller"],"summary":"Find the areas of law for a court","operationId":"getCourtAreasOfLaw","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AreaOfLaw"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AreaOfLaw"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AreaOfLaw"}}}}},"404":{"description":"Court not Found","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AreaOfLaw"}}}}}}},"put":{"tags":["admin-court-areas-of-law-controller"],"summary":"Update the areas of law for a court","operationId":"updateCourtAreasOfLaw","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AreaOfLaw"}}}},"required":true},"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AreaOfLaw"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AreaOfLaw"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AreaOfLaw"}}}}},"404":{"description":"Court not Found","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AreaOfLaw"}}}}}}}},"/admin/courts/{slug}/contacts":{"get":{"tags":["admin-court-contact-controller"],"summary":"Find court contacts by slug","operationId":"getCourtContacts","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Contact"}}}}}}},"put":{"tags":["admin-court-contact-controller"],"summary":"Update court contacts","operationId":"updateCourtContacts","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Contact"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Contact"}}}}}}}},"/admin/courts/{slug}/application-progression":{"get":{"tags":["admin-court-application-update-controller"],"summary":"Find application progression options by slug","operationId":"getApplicationUpdates","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApplicationUpdate"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApplicationUpdate"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApplicationUpdate"}}}}},"404":{"description":"Court not Found","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApplicationUpdate"}}}}}}},"put":{"tags":["admin-court-application-update-controller"],"summary":"Update application progression options for a provided service centre","operationId":"updateApplicationUpdates","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApplicationUpdate"}}}},"required":true},"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApplicationUpdate"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApplicationUpdate"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApplicationUpdate"}}}}},"404":{"description":"Court not Found","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApplicationUpdate"}}}}}}}},"/admin/courts/{slug}/addresses":{"get":{"tags":["admin-court-address-controller"],"summary":"Find court addresses by slug","operationId":"getCourtAddresses","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtAddress"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtAddress"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtAddress"}}}}},"404":{"description":"Court not Found","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtAddress"}}}}}}},"put":{"tags":["admin-court-address-controller"],"summary":"Update addresses for a provided court","operationId":"updateCourtAddresses","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtAddress"}}}},"required":true},"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtAddress"}}}}},"400":{"description":"Invalid postcodes or epim IDs","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtAddress"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtAddress"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtAddress"}}}}},"404":{"description":"Court not Found","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtAddress"}}}}}}}},"/admin/courts/{slug}/additionalLinks":{"get":{"tags":["admin-court-additional-link-controller"],"summary":"Find court additional links by slug","operationId":"getCourtAdditionalLinks","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdditionalLink"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdditionalLink"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdditionalLink"}}}}},"404":{"description":"Court not Found","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdditionalLink"}}}}}}},"put":{"tags":["admin-court-additional-link-controller"],"summary":"Update court additional links","operationId":"updateCourtAdditionalLinks","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdditionalLink"}}}},"required":true},"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdditionalLink"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdditionalLink"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdditionalLink"}}}}},"404":{"description":"Court not Found","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdditionalLink"}}}}}}}},"/admin/courts/{slug}/SpoeAreasOfLaw":{"get":{"tags":["admin-court-spoe-areas-of-law-controller"],"summary":"Find the spoe areas of law for a court","operationId":"getCourtAreasOfLaw_1","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpoeAreaOfLaw"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpoeAreaOfLaw"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpoeAreaOfLaw"}}}}},"404":{"description":"Court not Found","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpoeAreaOfLaw"}}}}}}},"put":{"tags":["admin-court-spoe-areas-of-law-controller"],"summary":"Update the spoe areas of law for a court","operationId":"updateCourtAreasOfLaw_1","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpoeAreaOfLaw"}}}},"required":true},"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpoeAreaOfLaw"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpoeAreaOfLaw"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpoeAreaOfLaw"}}}}},"404":{"description":"Court not Found","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpoeAreaOfLaw"}}}}},"409":{"description":"Duplicate single point of entries exist","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpoeAreaOfLaw"}}}}}}}},"/admin/courts/history":{"get":{"tags":["admin-court-history-controller"],"summary":"Get all court histories","operationId":"getAllCourtHistory","responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtHistory"}}}}},"401":{"description":"Unauthorised user","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtHistory"}}}}}}},"put":{"tags":["admin-court-history-controller"],"summary":"Change an existing court history","operationId":"updateCourtHistory","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtHistory"}}},"required":true},"responses":{"200":{"description":"Successfully updated court","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtHistory"}}}},"404":{"description":"Court History Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtHistory"}}}},"401":{"description":"Unauthorised user","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtHistory"}}}}}},"post":{"tags":["admin-court-history-controller"],"summary":"Add a new court history","operationId":"addCourtHistory","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtHistory"}}},"required":true},"responses":{"201":{"description":"Successfully created court","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtHistory"}}}},"401":{"description":"Unauthorised user","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtHistory"}}}}}}},"/admin/contactTypes":{"get":{"tags":["admin-contact-type-controller"],"summary":"Return all contact types","operationId":"getAllContactTypes","responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ContactType"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ContactType"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ContactType"}}}}}}},"put":{"tags":["admin-contact-type-controller"],"summary":"Update contact type","operationId":"updateContactType","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactType"}}},"required":true},"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactType"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactType"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactType"}}}},"404":{"description":"Contact type not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactType"}}}}}},"post":{"tags":["admin-contact-type-controller"],"summary":"Create contact type","operationId":"createContactType","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactType"}}},"required":true},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactType"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactType"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactType"}}}},"409":{"description":"Contact type already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactType"}}}}}}},"/admin/areasOfLaw":{"get":{"tags":["admin-areas-of-law-controller"],"summary":"Return all areas of law","operationId":"getAllAreasOfLaw","responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AreaOfLaw"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AreaOfLaw"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AreaOfLaw"}}}}}}},"put":{"tags":["admin-areas-of-law-controller"],"summary":"Update area of law","operationId":"updateAreaOfLaw","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AreaOfLaw"}}},"required":true},"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AreaOfLaw"}}}},"400":{"description":"Invalid Area of Law","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AreaOfLaw"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AreaOfLaw"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AreaOfLaw"}}}},"404":{"description":"Area of Law not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AreaOfLaw"}}}}}},"post":{"tags":["admin-areas-of-law-controller"],"summary":"Create area of law","operationId":"createAreaOfLaw","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AreaOfLaw"}}},"required":true},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AreaOfLaw"}}}},"400":{"description":"Invalid Area of Law","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AreaOfLaw"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AreaOfLaw"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AreaOfLaw"}}}},"409":{"description":"Area of Law already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AreaOfLaw"}}}}}}},"/courts":{"get":{"tags":["courts-controller"],"summary":"Find courts by name, address, town or postcode","operationId":"findCourtByNameOrAddressOrPostcodeOrTown","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtReference"}}}}}}},"post":{"tags":["admin-courts-controller"],"summary":"Add a new court","operationId":"addNewCourt","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewCourt"}}},"required":true},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Court"}}}},"401":{"description":"Unauthorised","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Court"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Court"}}}},"409":{"description":"Court already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Court"}}}}}}},"/admin/courts/{slug}/postcodes":{"get":{"tags":["admin-court-postcode-controller"],"summary":"Find court postcodes by slug","operationId":"getCourtPostcodes","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"404":{"description":"Court not Found","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}}}},"post":{"tags":["admin-court-postcode-controller"],"summary":"Add new court postcodes","operationId":"addCourtPostcodes","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}},"required":true},"responses":{"201":{"description":"Postcodes created","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"400":{"description":"Invalid postcodes","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"404":{"description":"Court not Found","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"409":{"description":"Postcodes already exist","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}}}},"delete":{"tags":["admin-court-postcode-controller"],"summary":"Delete existing court postcodes","operationId":"deleteCourtPostcodes","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}},"required":true},"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"string"}}}},"400":{"description":"Invalid postcodes","content":{"application/json":{"schema":{"type":"string"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"string"}}}},"404":{"description":"Postcodes do not exist","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/admin/courts/{slug}/lock":{"get":{"tags":["admin-court-lock-controller"],"summary":"Find court lock details by slug and username","operationId":"getCourtLocks","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"description":"Unauthorised","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtLock"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtLock"}}}}}}},"post":{"tags":["admin-court-lock-controller"],"summary":"Add a new lock on a court for a given user","operationId":"addNewCourtLock","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtLock"}}},"required":true},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtLock"}}}},"401":{"description":"Unauthorised","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtLock"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtLock"}}}},"409":{"description":"Court lock already exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtLock"}}}}}}},"/services":{"get":{"tags":["services-controller"],"summary":"Return all services","operationId":"getAllServices","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Service"}}}}}}}},"/services/{slug}":{"get":{"tags":["services-controller"],"summary":"Return a service","operationId":"getService","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Service"}}}}}}},"/services/{serviceSlug}/service-areas":{"get":{"tags":["services-controller"],"summary":"Return all service areas for a service","operationId":"getServiceAreas","parameters":[{"name":"serviceSlug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ServiceArea"}}}}}}}},"/service-areas/{slug}":{"get":{"tags":["service-areas-controller"],"summary":"Return a service","operationId":"getServiceArea","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceArea"}}}}}}},"/search/results":{"get":{"tags":["search-controller"],"summary":"Find courts by postcode and Service Area","operationId":"findCourtsByPostcodeAndServiceArea","parameters":[{"name":"postcode","in":"query","required":false,"schema":{"type":"string"}},{"name":"serviceArea","in":"query","required":false,"$ref":"#/components/parameters/Service Area Slug","schema":{"type":"string"}},{"name":"includeClosed","in":"query","required":false,"$ref":"#/components/parameters/Include Closed","schema":{"type":"boolean","default":false}},{"name":"action","in":"query","required":false,"schema":{"type":"string","enum":["NEAREST","DOCUMENTS","UPDATE","UNDEFINED"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceAreaWithCourtReferencesWithDistance"}}}}}}},"/search/results/{postcode}":{"get":{"tags":["search-controller"],"summary":"Find closest courts by postcode","operationId":"findCourtsByPostcode","parameters":[{"name":"postcode","in":"path","required":true,"schema":{"type":"string","pattern":"([Gg][Ii][Rr] 0[Aa]{2})|((([A-Za-z]\\d{1,2})|(([A-Za-z][A-Ha-hJ-Yj-y]\\d{1,2})|(([A-Za-z]\\d[A-Za-z])|([A-Za-z][A-Ha-hJ-Yj-y]\\d[A-Za-z]?))))\\s?\\d[A-Za-z]{2})"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtReferenceWithDistance"}}}}}}}},"/search/results.json":{"get":{"tags":["search-controller"],"summary":"Find court by postcode, address or name","operationId":"findCourtByPostcode","parameters":[{"name":"postcode","in":"query","required":false,"schema":{"type":"string"}},{"name":"aol","in":"query","required":false,"$ref":"#/components/parameters/Area of Law","schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtWithDistance"}}}}}}}},"/private-migration/export":{"get":{"tags":["Private Migration"],"summary":"Return private migration data for a court","description":"Aggregates court and reference data required for private migration clients.","operationId":"migratePrivateData","responses":{"200":{"description":"Migration export payload","content":{"*/*":{"schema":{"$ref":"#/components/schemas/MigrationExportResponse"}}}}}}},"/feature-flags/{flag}":{"get":{"tags":["feature-flag-controller"],"operationId":"flagStatus","parameters":[{"name":"flag","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/courts/{slug}":{"get":{"tags":["courts-controller"],"summary":"Find court details by slug","operationId":"findCourtByName_1","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Court"}}}}}},"delete":{"tags":["admin-courts-controller"],"summary":"Delete a court","operationId":"deleteCourt","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"type":"string"}}}},"401":{"description":"Unauthorised","content":{"application/json":{"schema":{"type":"string"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/courts/{slug}.json":{"get":{"tags":["courts-controller"],"summary":"Find court details by name","operationId":"findCourtByNameDeprecated","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OldCourt"}}}}},"deprecated":true}},"/courts/search":{"get":{"tags":["courts-controller"],"summary":"Return active courts based on a provided prefix","operationId":"getCourtsBySearch","parameters":[{"name":"prefix","in":"query","required":true,"schema":{"type":"string","maxLength":1,"minLength":1}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtReference"}}}}}}}},"/courts/court-types/{courtTypes}":{"get":{"tags":["courts-controller"],"summary":"Find courts by court types. This endpoint can be used to search for courts that have a court type associated to it","operationId":"findByCourtTypes","parameters":[{"name":"courtTypes","in":"path","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Court"}}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Court"}}}}}}}},"/courts/court-history/search":{"get":{"tags":["courts-controller"],"summary":"Return active court based a search of old court names","operationId":"getCourtByCourtHistoryNameSearch","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Successful - returns empty CourtReferenceWithHistoricalName","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtReferenceWithHistoricalName"}}}},"204":{"description":"Successful - but no history found, so returns no content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtReferenceWithHistoricalName"}}}},"404":{"description":"Court History Found but No corresponding Court found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtReferenceWithHistoricalName"}}}}}}},"/courts/all":{"get":{"tags":["admin-courts-controller"],"summary":"Return all courts","operationId":"getAllCourts","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtReference"}}}}}}}},"/courts/":{"get":{"tags":["admin-courts-controller"],"summary":"Return court data for download","operationId":"getAllCourtsForDownload","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtForDownload"}}}}}}}},"/admin/serviceAreas":{"get":{"tags":["admin-service-area-controller"],"summary":"Return all service areas","operationId":"getServiceArea_1","responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ServiceArea"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ServiceArea"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ServiceArea"}}}}}}}},"/admin/regions":{"get":{"tags":["admin-region-controller"],"summary":"Retrieve all regions","operationId":"getAllRegions","responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Region"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Region"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Region"}}}}}}}},"/admin/openingTypes/{id}":{"get":{"tags":["admin-opening-type-controller"],"summary":"Get opening type","operationId":"getOpeningType","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpeningType"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpeningType"}}}},"404":{"description":"Opening type not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpeningType"}}}}}}},"/admin/localauthorities/all":{"get":{"tags":["admin-local-authorities-controller"],"summary":"Return all local authorities","operationId":"getAllLocalAuthorities","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LocalAuthority"}}}}}}}},"/admin/facilities/{id}":{"get":{"tags":["admin-facilities-controller"],"summary":"Get facility type","operationId":"getFacilityType","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacilityType"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacilityType"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacilityType"}}}},"404":{"description":"Facility not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacilityType"}}}}}}},"/admin/courts/name/{courtName}/history":{"get":{"tags":["admin-court-history-controller"],"summary":"Get a court history using a historical court name","operationId":"getCourtHistoryByCourtName","parameters":[{"name":"courtName","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful - Will return an empty response when no Court matches name","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtHistory"}}}}},"401":{"description":"Unauthorised user","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtHistory"}}}}}}}},"/admin/courts/id/{courtHistoryId}/history":{"get":{"tags":["admin-court-history-controller"],"summary":"Get a court history","operationId":"getCourtHistoryById","parameters":[{"name":"courtHistoryId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Successful - Court History Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtHistory"}}}},"404":{"description":"Court History Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtHistory"}}}},"401":{"description":"Unauthorised user","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtHistory"}}}}}},"delete":{"tags":["admin-court-history-controller"],"summary":"Delete a Court History","operationId":"deleteByCourtHistoryId","parameters":[{"name":"courtHistoryId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Successfuly deleted court history","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtHistory"}}}},"404":{"description":"Court History Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtHistory"}}}},"401":{"description":"Unauthorised user","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtHistory"}}}}}}},"/admin/courts/emailTypes":{"get":{"tags":["admin-court-email-controller"],"summary":"Retrieve all email details for provided court","operationId":"getAllCourtEmailDescTypes","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EmailType"}}}}}}}},"/admin/courts/courtTypes":{"get":{"tags":["admin-court-types-and-codes-controller"],"summary":"Return all court types","operationId":"getAllCourtTypes","responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtType"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtType"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtType"}}}}}}}},"/admin/courts/court-id/{courtId}/history":{"get":{"tags":["admin-court-history-controller"],"summary":"Get all court histories of a court","operationId":"getCourtHistoryByCourtId","parameters":[{"name":"courtId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Successful - Will return an empty response when no Court matches ID","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtHistory"}}}}},"401":{"description":"Unauthorised user","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtHistory"}}}}}}},"delete":{"tags":["admin-court-history-controller"],"summary":"Delete the court histories of a specific court","operationId":"deleteCourtHistoriesByCourtId","parameters":[{"name":"courtId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Successfuly deleted court histories","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtHistory"}}}}},"401":{"description":"Unauthorised user","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtHistory"}}}}}}}},"/admin/courts/SpoeAreasOfLaw":{"get":{"tags":["admin-court-spoe-areas-of-law-controller"],"summary":"Return all spoe areas of law","operationId":"getAllAreasOfLaw_1","responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpoeAreaOfLaw"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpoeAreaOfLaw"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpoeAreaOfLaw"}}}}}}}},"/admin/counties":{"get":{"tags":["admin-county-controller"],"summary":"Retrieve all counties","operationId":"getAllCounties","responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/County"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/County"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/County"}}}}}}}},"/admin/contactTypes/{id}":{"get":{"tags":["admin-contact-type-controller"],"summary":"Get contact type","operationId":"getContactType","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactType"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactType"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactType"}}}},"404":{"description":"Contact type not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactType"}}}}}}},"/admin/audit":{"get":{"tags":["admin-audit-controller"],"summary":"Find all audits based on the provided parameters.","operationId":"getAudits","parameters":[{"name":"page","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"size","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"location","in":"query","required":false,"schema":{"type":"string"}},{"name":"email","in":"query","required":false,"schema":{"type":"string"}},{"name":"dateFrom","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"dateTo","in":"query","required":false,"schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Audit"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Audit"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Audit"}}}}}}}},"/admin/areasOfLaw/{id}":{"get":{"tags":["admin-areas-of-law-controller"],"summary":"Get area of law","operationId":"getAreaOfLaw","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AreaOfLaw"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AreaOfLaw"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AreaOfLaw"}}}},"404":{"description":"Area of Law not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AreaOfLaw"}}}}}}},"/admin/addressTypes":{"get":{"tags":["admin-address-type-controller"],"summary":"Retrieve all address types","operationId":"getAllCourtAddressTypes","responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AddressType"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AddressType"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AddressType"}}}}}}}},"/":{"get":{"tags":["root-controller"],"operationId":"welcome","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/admin/openingTypes/{openingTypeId}":{"delete":{"tags":["admin-opening-type-controller"],"summary":"Delete opening type","operationId":"deleteOpeningType","parameters":[{"name":"openingTypeId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}},"404":{"description":"Opening type not found","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}},"409":{"description":"Opening type in use","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}}}}},"/admin/facilities/{facilityTypeId}":{"delete":{"tags":["admin-facilities-controller"],"summary":"Delete facility type","operationId":"deleteFacilityType","parameters":[{"name":"facilityTypeId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}},"404":{"description":"Facility Type not found","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}},"409":{"description":"Facility Type in use","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}}}}},"/admin/courts/{userEmail}/lock":{"delete":{"tags":["admin-court-lock-controller"],"summary":"Delete a court lock by email","operationId":"deleteCourtByEmail","parameters":[{"name":"userEmail","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Delete a court by email","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtLock"}}}}},"401":{"description":"Unauthorised","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtLock"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtLock"}}}}}}}},"/admin/courts/{slug}/lock/{userEmail}":{"delete":{"tags":["admin-court-lock-controller"],"summary":"Delete a court lock by slug and email","operationId":"deleteCourtLockBySlugAndEmail","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"userEmail","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtLock"}}}}},"401":{"description":"Unauthorised","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtLock"}}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtLock"}}}}}}}},"/admin/contactTypes/{contactTypeId}":{"delete":{"tags":["admin-contact-type-controller"],"summary":"Delete contact type","operationId":"deleteContactType","parameters":[{"name":"contactTypeId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}},"404":{"description":"Contact type not found","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}},"409":{"description":"Contact type in use","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}}}}},"/admin/areasOfLaw/{areaOfLawId}":{"delete":{"tags":["admin-areas-of-law-controller"],"summary":"Delete area of law","operationId":"deleteAreaOfLaw","parameters":[{"name":"areaOfLawId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}},"404":{"description":"Area of Law not found","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}},"409":{"description":"Area of Law in use","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}}}}}},"components":{"schemas":{"Court":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"name_cy":{"type":"string"},"info":{"type":"string"},"info_cy":{"type":"string"},"open":{"type":"boolean"},"in_person":{"type":"boolean"},"access_scheme":{"type":"boolean"},"opening_times":{"type":"array","items":{"$ref":"#/components/schemas/OpeningTime"}},"common_platform":{"type":"boolean"},"urgent_message":{"type":"string"},"urgent_message_cy":{"type":"string"},"types":{"type":"array","items":{"$ref":"#/components/schemas/CourtType"}}}},"CourtType":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"search":{"type":"string"},"code":{"type":"integer","format":"int32"}}},"OpeningTime":{"type":"object","properties":{"description":{"type":"string"},"hours":{"type":"string"},"description_cy":{"type":"string"}}},"ImageFile":{"type":"object","properties":{"image_name":{"type":"string"}}},"CourtInfoUpdate":{"type":"object","properties":{"courts":{"type":"array","items":{"type":"string"}},"info":{"type":"string"},"info_cy":{"type":"string"}}},"OpeningType":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"type":{"type":"string"},"type_cy":{"type":"string"}}},"LocalAuthority":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"}}},"FacilityType":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"nameCy":{"type":"string"},"image":{"type":"string"},"imageDescription":{"type":"string"},"imageFilePath":{"type":"string"},"order":{"type":"integer","format":"int32"}}},"CourtHistory":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"search_court_id":{"type":"integer","format":"int32"},"court_name":{"type":"string"},"updated_at":{"type":"string","format":"date-time"},"created_at":{"type":"string","format":"date-time"},"court_name_cy":{"type":"string"}}},"CourtGeneralInfo":{"type":"object","properties":{"name":{"type":"string"},"open":{"type":"boolean"},"info":{"type":"string"},"alert":{"type":"string"},"in_person":{"type":"boolean"},"access_scheme":{"type":"boolean"},"info_cy":{"type":"string"},"alert_cy":{"type":"string"},"sc_intro_paragraph":{"type":"string"},"sc_intro_paragraph_cy":{"type":"string"},"service_centre":{"type":"boolean"},"common_platform":{"type":"boolean"}}},"Facility":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"description":{"type":"string"},"descriptionCy":{"type":"string"}}},"Email":{"type":"object","properties":{"address":{"type":"string"},"explanation":{"type":"string"},"explanationCy":{"type":"string"},"adminEmailTypeId":{"type":"integer","format":"int32"}}},"CourtTypesAndCodes":{"type":"object","properties":{"gbsCode":{"type":"string"},"dxCodes":{"type":"array","items":{"$ref":"#/components/schemas/DxCode"}},"types":{"type":"array","items":{"$ref":"#/components/schemas/CourtType"}}}},"DxCode":{"type":"object","properties":{"code":{"type":"string"},"explanation":{"type":"string"},"explanationCy":{"type":"string"}}},"AreaOfLaw":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"singlePointEntry":{"type":"boolean"},"external_link":{"type":"string"},"external_link_desc":{"type":"string"},"external_link_desc_cy":{"type":"string"},"alt_name":{"type":"string"},"alt_name_cy":{"type":"string"},"display_name":{"type":"string"},"display_name_cy":{"type":"string"},"display_external_link":{"type":"string"}}},"Contact":{"type":"object","properties":{"number":{"type":"string"},"explanation":{"type":"string"},"fax":{"type":"boolean"},"type_id":{"type":"integer","format":"int32"},"explanation_cy":{"type":"string"}}},"ApplicationUpdate":{"type":"object","properties":{"type":{"type":"string"},"email":{"type":"string"},"type_cy":{"type":"string"},"external_link":{"type":"string"},"external_link_description":{"type":"string"},"external_link_description_cy":{"type":"string"}}},"CourtAddress":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"postcode":{"type":"string"},"type_id":{"type":"integer","format":"int32"},"address_lines":{"type":"array","items":{"type":"string"}},"address_lines_cy":{"type":"array","items":{"type":"string"}},"town":{"type":"string"},"town_cy":{"type":"string"},"county_id":{"type":"integer","format":"int32"},"fields_of_law":{"$ref":"#/components/schemas/CourtSecondaryAddressType"},"sort_order":{"type":"integer","format":"int32"},"epim_id":{"type":"string"}}},"CourtSecondaryAddressType":{"type":"object","properties":{"areas_of_law":{"type":"array","items":{"$ref":"#/components/schemas/AreaOfLaw"}},"courts":{"type":"array","items":{"$ref":"#/components/schemas/CourtType"}}}},"AdditionalLink":{"type":"object","properties":{"url":{"type":"string"},"display_name":{"type":"string"},"display_name_cy":{"type":"string"}}},"SpoeAreaOfLaw":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"singlePointEntry":{"type":"boolean"}}},"ContactType":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"type":{"type":"string"},"type_cy":{"type":"string"}}},"NewCourt":{"type":"object","properties":{"new_court_name":{"type":"string","maxLength":200,"minLength":1,"pattern":"^[a-zA-Z0-9-'() ]*$"},"service_centre":{"type":"boolean"},"service_areas":{"type":"array","items":{"type":"string"}},"lon":{"type":"number","format":"double"},"lat":{"type":"number","format":"double"}}},"CourtLock":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"lock_acquired":{"type":"string","format":"date-time"},"user_email":{"type":"string"},"court_slug":{"type":"string"}}},"Service":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"slug":{"type":"string"},"serviceAreas":{"type":"array","items":{"$ref":"#/components/schemas/ServiceArea"}}}},"ServiceArea":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"slug":{"type":"string"},"serviceAreaType":{"type":"string"},"onlineUrl":{"type":"string"},"onlineText":{"type":"string"},"areaOfLawName":{"type":"string"},"serviceAreaCourts":{"type":"array","items":{"$ref":"#/components/schemas/ServiceAreaCourt"}},"text":{"type":"string"}}},"ServiceAreaCourt":{"type":"object","properties":{"slug":{"type":"string"},"catchmentType":{"type":"string"},"courtName":{"type":"string"}}},"CourtReferenceWithDistance":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"},"open":{"type":"boolean"},"distance":{"type":"number"},"areasOfLawSpoe":{"type":"array","items":{"type":"string"}}}},"ServiceAreaWithCourtReferencesWithDistance":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"onlineText":{"type":"string"},"onlineUrl":{"type":"string"},"courts":{"type":"array","items":{"$ref":"#/components/schemas/CourtReferenceWithDistance"}}}},"CourtWithDistance":{"type":"object","properties":{"name":{"type":"string"},"lat":{"type":"number","format":"double"},"lon":{"type":"number","format":"double"},"number":{"type":"integer","format":"int32"},"cci_code":{"type":"integer","format":"int32"},"magistrate_code":{"type":"integer","format":"int32"},"slug":{"type":"string"},"types":{"type":"array","items":{"type":"string"}},"areas_of_law":{"type":"array","items":{"$ref":"#/components/schemas/AreaOfLaw"}},"areas_of_law_spoe":{"type":"array","items":{"type":"string"}},"displayed":{"type":"boolean"},"hide_aols":{"type":"boolean"},"dx_number":{"type":"string"},"distance":{"type":"number"},"addresses":{"type":"array","items":{"$ref":"#/components/schemas/CourtAddress"}}}},"AreaOfLawTypeData":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"name_cy":{"type":"string"}}},"ContactDescriptionTypeData":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"name_cy":{"type":"string"}}},"CourtAreasOfLawData":{"type":"object","properties":{"id":{"type":"string"},"areas_of_law":{"type":"array","items":{"type":"integer","format":"int32"}}}},"CourtCodeData":{"type":"object","properties":{"id":{"type":"string"},"magistrate_court_code":{"type":"integer","format":"int32"},"family_court_code":{"type":"integer","format":"int32"},"tribunal_code":{"type":"integer","format":"int32"},"county_court_code":{"type":"integer","format":"int32"},"crown_court_code":{"type":"integer","format":"int32"},"gbs":{"type":"string"}}},"CourtDxCodeData":{"type":"object","properties":{"id":{"type":"string"},"dx_code":{"type":"string"},"explanation":{"type":"string"}}},"CourtFaxData":{"type":"object","properties":{"id":{"type":"string"},"fax_number":{"type":"string"}}},"CourtLocalAuthorityData":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"area_of_law_id":{"type":"integer","format":"int32"},"local_authority_ids":{"type":"array","items":{"type":"integer","format":"int32"}}}},"CourtMigrationData":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"open":{"type":"boolean"},"warning_notice":{"type":"string"},"warning_notice_cy":{"type":"string"},"region_id":{"type":"integer","format":"int32"},"court_service_areas":{"type":"array","items":{"$ref":"#/components/schemas/CourtServiceAreaData"}},"court_local_authorities":{"type":"array","items":{"$ref":"#/components/schemas/CourtLocalAuthorityData"}},"court_professional_information":{"$ref":"#/components/schemas/CourtProfessionalInformationData"},"court_codes":{"$ref":"#/components/schemas/CourtCodeData"},"court_areas_of_law":{"$ref":"#/components/schemas/CourtAreasOfLawData"},"court_single_points_of_entry":{"$ref":"#/components/schemas/CourtSinglePointOfEntryData"},"court_dx_codes":{"type":"array","items":{"$ref":"#/components/schemas/CourtDxCodeData"}},"court_fax":{"type":"array","items":{"$ref":"#/components/schemas/CourtFaxData"}},"court_photo":{"$ref":"#/components/schemas/CourtPhotoData"},"is_service_centre":{"type":"boolean"}}},"CourtPhotoData":{"type":"object","properties":{"image_path":{"type":"string"}}},"CourtProfessionalInformationData":{"type":"object","properties":{"interview_rooms":{"type":"boolean"},"interview_room_count":{"type":"integer","format":"int32"},"interview_phone_number":{"type":"string"},"video_hearings":{"type":"boolean"},"common_platform":{"type":"boolean"},"access_scheme":{"type":"boolean"}}},"CourtServiceAreaData":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"catchment_type":{"type":"string"},"service_area_ids":{"type":"array","items":{"type":"integer","format":"int32"}}}},"CourtSinglePointOfEntryData":{"type":"object","properties":{"id":{"type":"string"},"areas_of_law":{"type":"array","items":{"type":"integer","format":"int32"}}}},"CourtTypeData":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"}}},"LocalAuthorityTypeData":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"}}},"MigrationExportResponse":{"type":"object","properties":{"courts":{"type":"array","items":{"$ref":"#/components/schemas/CourtMigrationData"}},"local_authority_types":{"type":"array","items":{"$ref":"#/components/schemas/LocalAuthorityTypeData"}},"service_areas":{"type":"array","items":{"$ref":"#/components/schemas/ServiceAreaTypeData"}},"services":{"type":"array","items":{"$ref":"#/components/schemas/ServiceTypeData"}},"contact_description_types":{"type":"array","items":{"$ref":"#/components/schemas/ContactDescriptionTypeData"}},"opening_hour_types":{"type":"array","items":{"$ref":"#/components/schemas/OpeningHourTypeData"}},"court_types":{"type":"array","items":{"$ref":"#/components/schemas/CourtTypeData"}},"regions":{"type":"array","items":{"$ref":"#/components/schemas/RegionData"}},"area_of_law_types":{"type":"array","items":{"$ref":"#/components/schemas/AreaOfLawTypeData"}}}},"OpeningHourTypeData":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"name_cy":{"type":"string"}}},"RegionData":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"country":{"type":"string"}}},"ServiceAreaTypeData":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"name_cy":{"type":"string"},"description":{"type":"string"},"description_cy":{"type":"string"},"online_url":{"type":"string"},"online_text":{"type":"string"},"online_text_cy":{"type":"string"},"type":{"type":"string"},"text":{"type":"string"},"text_cy":{"type":"string"},"catchment_method":{"type":"string"},"area_of_law_id":{"type":"integer","format":"int32"}}},"ServiceTypeData":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"name_cy":{"type":"string"},"description":{"type":"string"},"description_cy":{"type":"string"},"service_area_ids":{"type":"array","items":{"type":"integer","format":"int32"}}}},"CourtReference":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"},"updated_at":{"type":"string"},"displayed":{"type":"boolean"},"region":{"type":"integer","format":"int32"}}},"OldCourt":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"},"info":{"type":"string"},"open":{"type":"boolean"},"directions":{"type":"string"},"lat":{"type":"number","format":"double"},"lon":{"type":"number","format":"double"},"crown_location_code":{"type":"integer","format":"int32"},"county_location_code":{"type":"integer","format":"int32"},"cci_code":{"type":"integer","format":"int32"},"magistrates_location_code":{"type":"integer","format":"int32"},"areas_of_law":{"type":"array","items":{"type":"string"}},"types":{"type":"array","items":{"type":"string"}},"emails":{"type":"array","items":{"$ref":"#/components/schemas/Email"}},"contacts":{"type":"array","items":{"$ref":"#/components/schemas/Contact"}},"opening_times":{"type":"array","items":{"$ref":"#/components/schemas/OpeningTime"}},"facilities":{"type":"array","items":{"$ref":"#/components/schemas/OldFacility"}},"addresses":{"type":"array","items":{"$ref":"#/components/schemas/OldCourtAddress"}},"gbs":{"type":"string"},"location_code":{"type":"integer","format":"int32"},"court_code":{"type":"integer","format":"int32"},"areas_of_law_spoe":{"type":"array","items":{"type":"string"}}}},"OldCourtAddress":{"type":"object","properties":{"type":{"type":"string"},"address":{"type":"string"},"town":{"type":"string"},"postcode":{"type":"string"}}},"OldFacility":{"type":"object","properties":{"description":{"type":"string"},"name":{"type":"string"}}},"CourtReferenceWithHistoricalName":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"},"updated_at":{"type":"string"},"displayed":{"type":"boolean"},"region":{"type":"integer","format":"int32"},"historicalName":{"type":"string"}}},"CourtForDownload":{"type":"object","properties":{"name":{"type":"string"},"open":{"type":"string"},"updated":{"type":"string"},"addresses":{"type":"string"},"areas_of_law":{"type":"string"},"court_types":{"type":"string"},"crown_court_code":{"type":"integer","format":"int32"},"county_court_code":{"type":"integer","format":"int32"},"magistrates_court_code":{"type":"integer","format":"int32"},"facilities":{"type":"string"},"slug":{"type":"string"},"emails":{"type":"string"},"contacts":{"type":"string"},"opening_times":{"type":"string"},"application_updates":{"type":"string"},"dx_number":{"type":"string"}}},"Region":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"country":{"type":"string"}}},"EmailType":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"description":{"type":"string"},"description_cy":{"type":"string"}}},"County":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"country":{"type":"string"}}},"Audit":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"action":{"$ref":"#/components/schemas/AuditType"},"location":{"type":"string"},"user_email":{"type":"string"},"action_data_before":{"type":"string"},"action_data_after":{"type":"string"},"creation_time":{"type":"string","format":"date-time"}}},"AuditType":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"}}},"AddressType":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"name_cy":{"type":"string"}}}}}}
