{"openapi":"3.1.0","info":{"description":"API for all operations relating to the Find a Court or Tribunal Service","license":{"name":"MIT","url":"https://opensource.org/licenses/MIT"},"title":"Fact Data API","version":"v0.0.1"},"externalDocs":{"description":"README","url":"https://github.com/hmcts/fact-data-api"},"servers":[{"url":"http://localhost","description":"Generated server url"}],"tags":[{"description":"Operations related to lock services","name":"Lock"},{"description":"Operations related to professional services for courts","name":"Court Professional Information"},{"description":"Operations related to combined courts and service centres","name":"All Locations"},{"description":"Operations related to photos for courts","name":"Court Photo"},{"description":"Operations related to Court Areas Of Law","name":"Court Areas Of Law"},{"description":"Operations related to opening hours for courts","name":"Court Opening Hours"},{"description":"Operations related to audits","name":"Audit"},{"description":"Operations related to searching courts and service centres","name":"Search Court"},{"description":"Operations related to Service Centre Areas Of Law","name":"Service Centre Areas Of Law"},{"description":"Endpoints supporting one-off migrations from the legacy FaCT system","name":"Migration"},{"description":"Operations related to addresses available for courts","name":"Court Addresses"},{"description":"Operations related to approvals","name":"Approval"},{"description":"Operations related to contact details available for service centres","name":"Service Centre Contact Details"},{"description":"Operations related to the searching of service areas","name":"Search Service Area"},{"description":"Operations related to the searching of services","name":"Search Service"},{"description":"Operations related to types required for the functionality of both the admin portal and frontend","name":"Types"},{"description":"Operations related to court local authorities","name":"Local Authorities"},{"description":"Operations related to translation services available for courts","name":"Court Translation"},{"description":"Operations related to Users","name":"User"},{"description":"Operations related to single points of entry for courts","name":"Court Single Points of Entry"},{"description":"Operations related to service centres","name":"Service Centre"},{"description":"Operations related to contact details available for courts","name":"Court Contact Details"},{"description":"Operations related to Accessibility Options available for courts","name":"Court Accessibility Options"},{"description":"Operations related to the searching of addresses","name":"Search Address"},{"description":"Operations related to addresses available for service centres","name":"Service Centre Addresses"},{"description":"Operations related to courts","name":"Court"},{"description":"Operations related to facilities available at courts","name":"Court Facilities"},{"description":"Operations related to searching courts and service centres","name":"Search Location"}],"paths":{"/":{"get":{"operationId":"welcome","parameters":[{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"type":"string"}}},"description":"OK"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Bad Request"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Not Found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"summary":"The default root for the application","tags":["Root"]}},"/all/details.json":{"get":{"operationId":"getAllLocationDetails_1","parameters":[{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AllLocationDetails"}}}},"description":"Successfully retrieved location details"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Bad Request"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Not Found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get all court and service centre details","tags":["All Locations"]}},"/all/details/v1":{"get":{"operationId":"getAllLocationDetails","parameters":[{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AllLocationDetails"}}}},"description":"Successfully retrieved location details"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Bad Request"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Not Found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get all court and service centre details","tags":["All Locations"]}},"/all/v1":{"get":{"operationId":"getFilteredAndPaginatedLocations","parameters":[{"in":"query","name":"pageNumber","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"in":"query","name":"pageSize","required":false,"schema":{"type":"integer","format":"int32","default":25,"exclusiveMinimum":0}},{"in":"query","name":"includeClosed","required":false,"schema":{"type":"boolean"}},{"in":"query","name":"onlyServiceCentres","required":false,"schema":{"type":"boolean"}},{"in":"query","name":"regionId","required":false,"schema":{"type":"string"}},{"in":"query","name":"partialCourtName","required":false,"schema":{"type":"string","maxLength":250,"minLength":0,"pattern":"^[A-Za-z&'()\\- ]*$"}},{"in":"query","name":"sortBy","required":false,"schema":{"type":"string"}},{"in":"query","name":"sortOrder","required":false,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/PagedModelAllLocation"}}},"description":"Successfully retrieved locations"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid request parameters supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Not Found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get filtered and paginated courts and service centres","tags":["All Locations"]}},"/approvals/v1":{"get":{"operationId":"getAllApprovals","parameters":[{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApprovalStatus"}}}},"description":"Successfully retrieved approvals"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Bad Request"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Not Found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get all approvals","tags":["Approval"]},"post":{"operationId":"createApproval","parameters":[{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Approval"}}},"required":true},"responses":{"201":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/Approval"}}},"description":"Successfully created approval"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid request"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"User or subject not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Create an approval","tags":["Approval"]}},"/approvals/{approvalId}/v1":{"delete":{"operationId":"deleteApproval","parameters":[{"description":"UUID of the approval","in":"path","name":"approvalId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Successfully deleted approval"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid approval ID supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Approval not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Delete an approval by ID","tags":["Approval"]}},"/audits/subjectoptions/v1":{"get":{"description":"Fetches a Map of all subject names with their corresponding ids, mapped to their subject type","operationId":"getSubjectNameAndIdMap","parameters":[{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/NameAndId"}}}}},"description":"Successfully retrieved map of subject-> name+id pairs"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Bad Request"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Not Found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Retrieve the complete set of name->id value pairs for all supported audit subjects","tags":["Audit"]}},"/audits/v1":{"delete":{"description":"Starts an expired audit removal process.","operationId":"removeExpiredAuditEntries","parameters":[{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"The request to remove expired audits has completed"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Bad Request"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Not Found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Remove expired audits","tags":["Audit"]},"get":{"description":"Fetch a paginated and optionally filtered, list of audit records that relate to a specific Court or Service Centre","operationId":"getFilteredAndPaginatedAudits","parameters":[{"in":"query","name":"pageNumber","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"in":"query","name":"pageSize","required":false,"schema":{"type":"integer","format":"int32","default":25,"exclusiveMinimum":0}},{"in":"query","name":"subjectType","required":false,"schema":{"type":"string","enum":["COURT","SERVICE_CENTRE"]}},{"in":"query","name":"courtId","required":false,"schema":{"type":"string"}},{"in":"query","name":"serviceCentreId","required":false,"schema":{"type":"string"}},{"description":"Full or partial email for result filtering","in":"query","name":"email","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9._+-]*(|@[A-Za-z0-9._+-]*)$"}},{"description":"'From' date (start of day) for result filtering","in":"query","name":"fromDate","required":true,"schema":{"type":"string","format":"date"}},{"description":"'To' date (end of day) for result filtering","in":"query","name":"toDate","required":false,"schema":{"type":"string","format":"date"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/PagedModelAudit"}}},"description":"Successfully retrieved list of audits"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid request parameters supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Not Found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get filtered and paginated list of audits","tags":["Audit"]}},"/audits/{auditId}/v1":{"get":{"description":"Fetch the audit record that relates to the given id","operationId":"getAuditById","parameters":[{"in":"path","name":"auditId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/Audit"}}},"description":"Successfully retrieved Audit record"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid request parameters supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Audit record with the given id was not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Retrieve a single audit record","tags":["Audit"]}},"/courts/name/v1":{"get":{"description":"Fetch the court entity for a given exact court name.","operationId":"getCourtByName","parameters":[{"description":"Exact name of the court","in":"query","name":"name","required":true,"schema":{"type":"string","maxLength":250,"minLength":0}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/Court"}}},"description":"Successfully retrieved court entity"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court name supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Court not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get court entity by exact name","tags":["Court"]}},"/courts/slug/{courtSlug}.json":{"get":{"description":"Fetch detailed court information for a given court slug.","operationId":"getCourtDetailsBySlug_1","parameters":[{"description":"Slug of the court","in":"path","name":"courtSlug","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/CourtDetails_CourtDetailsView"}}},"description":"Successfully retrieved court details"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court slug supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Court not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get court details by slug","tags":["Court"]}},"/courts/slug/{courtSlug}/v1":{"get":{"description":"Fetch detailed court information for a given court slug.","operationId":"getCourtDetailsBySlug","parameters":[{"description":"Slug of the court","in":"path","name":"courtSlug","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/CourtDetails_CourtDetailsView"}}},"description":"Successfully retrieved court details"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court slug supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Court not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get court details by slug","tags":["Court"]}},"/courts/v1":{"post":{"description":"Creates a new court record.","operationId":"createCourt","parameters":[{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Court"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Court"}}},"description":"Successfully created court"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court data supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Associated region not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Create a new court","tags":["Court"]}},"/courts/v1/link":{"post":{"description":"Associates courts in CaTH with FACT data.","operationId":"linkCaTHCourtsToFaCT","parameters":[{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}},"required":true},"responses":{"200":{"content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}},"description":"Response of matched and unmatched courts"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid linking data supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Not Found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Link CaTH courts to FaCT","tags":["Court"]}},"/courts/v1/link/{mrdId}":{"put":{"description":"Handles the deletion of the link between CaTH and FACT for a deleted court.","operationId":"handleCaTHCourtDeletion","parameters":[{"description":"MRD ID of the deleted court","in":"path","name":"mrdId","required":true,"schema":{"type":"string","minLength":1}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Successfully handled link deletion"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid MRD ID supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Court with given MRD ID not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Called when a court has been deleted on CaTH","tags":["Court"]}},"/courts/{courtId}.json":{"get":{"description":"Fetch detailed court information for a given court ID.","operationId":"getCourtDetailsById_1","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/CourtDetails"}}},"description":"Successfully retrieved court details"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court ID supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Court not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get court details by ID","tags":["Court"]}},"/courts/{courtId}/entity/v1":{"get":{"description":"Fetch the court entity for a given court ID.","operationId":"getCourtById","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/Court"}}},"description":"Successfully retrieved court entity"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court ID supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Court not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get court entity by ID","tags":["Court"]}},"/courts/{courtId}/v1":{"get":{"description":"Fetch detailed court information for a given court ID.","operationId":"getCourtDetailsById","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/CourtDetails"}}},"description":"Successfully retrieved court details"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court ID supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Court not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get court details by ID","tags":["Court"]},"put":{"description":"Updates the details of an existing court.","operationId":"updateCourt","parameters":[{"in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Court"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Court"}}},"description":"Successfully updated court"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court data supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Court or associated region not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Update an existing court","tags":["Court"]}},"/courts/{courtId}/v1/accessibility-options":{"get":{"description":"Fetch AccessibilityOptions services for a given court.","operationId":"getAccessibilityOptionsServicesByCourtId","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/CourtAccessibilityOptions"}}},"description":"Successfully retrieved Accessibility Options"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Accessibility Options found for the court"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court ID supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Court not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get AccessibilityOptions services by court ID","tags":["Court Accessibility Options"]},"post":{"description":"Creates a new Accessibility Options for a court or updates the existing one.","operationId":"setAccessibilityOptionsServices","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtAccessibilityOptions"}}},"required":true},"responses":{"201":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/CourtAccessibilityOptions"}}},"description":"Successfully created/updated Accessibility Options"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court ID supplied or invalid request body"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Court not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Create or update Accessibility Options for a court","tags":["Court Accessibility Options"]}},"/courts/{courtId}/v1/address":{"get":{"description":"Fetch all addresses associated with the supplied court ID.","operationId":"getAddresses_1","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtAddress"}}}},"description":"Successfully retrieved addresses"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court ID supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Court not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get addresses for a court","tags":["Court Addresses"]},"post":{"description":"Create a new address entry for the supplied court.","operationId":"createAddress_1","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtAddress"}}},"required":true},"responses":{"201":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/CourtAddress"}}},"description":"Successfully created the address"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court ID supplied or invalid request body"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Court not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Create address for a court","tags":["Court Addresses"]}},"/courts/{courtId}/v1/address/{addressId}":{"delete":{"description":"Remove an existing address entry for the supplied court.","operationId":"deleteCourtAddress","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"UUID of the address","in":"path","name":"addressId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Successfully deleted the address"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court ID or address ID supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Address or court not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Delete address for a court","tags":["Court Addresses"]},"get":{"description":"Fetch a single address by court and address identifier.","operationId":"getAddress_1","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"UUID of the address","in":"path","name":"addressId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/CourtAddress"}}},"description":"Successfully retrieved the address"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court ID or address ID supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Address or court not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get a specific address for a court","tags":["Court Addresses"]},"put":{"description":"Update an existing address entry for the supplied court.","operationId":"updateCourtAddress","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"UUID of the address","in":"path","name":"addressId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtAddress"}}},"required":true},"responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/CourtAddress"}}},"description":"Successfully updated the address"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court ID or address ID supplied, or invalid request body"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Address or court not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Update address for a court","tags":["Court Addresses"]}},"/courts/{courtId}/v1/areas-of-law":{"get":{"description":"Fetch Areas Of Law with availability boolean for a given court.","operationId":"getAreasOfLawByCourtId","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"type":"object","additionalProperties":{"type":"boolean"}}}},"description":"Successfully retrieved Areas Of Law"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court ID supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Court not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get Areas Of Law map with boolean by court ID","tags":["Court Areas Of Law"]},"put":{"description":"Creates a new Court Areas Of Law for a court or updates the existing one.","operationId":"setAreasOfLawServices_1","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtAreasOfLaw"}}},"required":true},"responses":{"201":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/CourtAreasOfLaw"}}},"description":"Successfully created/updated Court Areas Of Law"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court ID supplied or invalid request body"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Court not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Create or update Court Areas Of Law for a court","tags":["Court Areas Of Law"]}},"/courts/{courtId}/v1/building-facilities":{"get":{"description":"Fetch building facilities for a given court.Returns 204 if no building facilities exist for the court.","operationId":"getBuildingFacilitiesByCourtId","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/CourtFacilities"}}},"description":"Successfully retrieved building facilities"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No building facilities found for the court"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court ID supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Court not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get building facilities by court ID","tags":["Court Facilities"]},"post":{"description":"Creates a new building facilities for a court or updates the existing one.","operationId":"setBuildingFacilities","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtFacilities"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtFacilities"}}},"description":"Successfully created/updated building facilities"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court ID supplied or invalid request body"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Court not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Create or update building facilities for a court","tags":["Court Facilities"]}},"/courts/{courtId}/v1/contact-details":{"get":{"description":"Fetch all contact details associated with the supplied court ID.","operationId":"getContactDetails_1","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtContactDetails"}}}},"description":"Successfully retrieved contact details"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court ID supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Court not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get contact details for a court","tags":["Court Contact Details"]},"post":{"description":"Create a new contact detail entry for the supplied court.","operationId":"createContactDetail_1","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtContactDetails"}}},"required":true},"responses":{"201":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/CourtContactDetails"}}},"description":"Successfully created the contact detail"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court ID supplied or invalid request body"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Court or contact description type not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Create contact details for a court","tags":["Court Contact Details"]}},"/courts/{courtId}/v1/contact-details/{contactId}":{"delete":{"description":"Remove an existing contact detail entry for the supplied court.","operationId":"deleteContactDetail_1","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"UUID of the contact","in":"path","name":"contactId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Successfully deleted the contact detail"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court ID or contact ID supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Contact detail or court not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Delete contact details for a court","tags":["Court Contact Details"]},"get":{"description":"Fetch a single contact detail by court and contact identifier.","operationId":"getContactDetail_1","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"UUID of the contact","in":"path","name":"contactId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/CourtContactDetails"}}},"description":"Successfully retrieved the contact detail"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court ID or contact ID supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Contact detail or court not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get a specific contact detail for a court","tags":["Court Contact Details"]},"put":{"description":"Update an existing contact detail entry for the supplied court.","operationId":"updateContactDetail_1","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"UUID of the contact","in":"path","name":"contactId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtContactDetails"}}},"required":true},"responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/CourtContactDetails"}}},"description":"Successfully updated the contact detail"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court ID or contact ID supplied, or invalid request body"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Contact detail, court, or contact description type not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Update contact details for a court","tags":["Court Contact Details"]}},"/courts/{courtId}/v1/local-authorities":{"get":{"description":"Fetch allowed areas of law enabled for the court and the local authorities.","operationId":"getCourtLocalAuthorities","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtLocalAuthorityDto"}}}},"description":"Successfully retrieved court local authorities"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court ID supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Court not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get local authorities for a court","tags":["Local Authorities"]},"put":{"description":"Update the local authorities mapped to the allowed areas of law (adoption, children, civil partnership, divorce) for a given court.","operationId":"updateCourtLocalAuthorities","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","description":"Local authority mappings to update","items":{"$ref":"#/components/schemas/CourtLocalAuthorityDto"}}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"type":"string"}}},"description":"Successfully updated local authorities"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court ID supplied or request validation failed"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Court or local authority not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Update local authorities for a court","tags":["Local Authorities"]}},"/courts/{courtId}/v1/opening-hours":{"get":{"description":"Fetch opening hours for a given court.Returns 204 if no opening hours exist for the court.","operationId":"getOpeningHoursByCourtId","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtOpeningHours"}}}},"description":"Successfully retrieved court opening hours"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No opening hours found for the court"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court ID supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Court not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get court opening hours by court ID","tags":["Court Opening Hours"]},"put":{"description":"Creates a opening hours for a court or updates the existing one.","operationId":"setOpeningHours","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtOpeningHours"}}},"required":true},"responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/CourtOpeningHours"}}},"description":"Successfully created/updated opening hours"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court ID, or request body"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Court not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Set opening hours for a court","tags":["Court Opening Hours"]}},"/courts/{courtId}/v1/opening-hours/counter-service":{"get":{"description":"Fetch counter service opening hours for a given court.Returns 204 if no counter service opening hours exist for the court.","operationId":"getCounterServiceOpeningHoursByCourtId","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtCounterServiceOpeningHours"}}}},"description":"Successfully retrieved court counter service opening hours"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No counter service opening hours found for the court"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court ID supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Court not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get court counter service opening hours by court ID","tags":["Court Opening Hours"]},"put":{"description":"Creates a opening hours for a court or updates the existing one.","operationId":"setCounterServiceOpeningHours","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtCounterServiceOpeningHours"}}},"required":true},"responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/CourtCounterServiceOpeningHours"}}},"description":"Successfully created/updated counter service opening hours"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court ID or request body"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Court or court type not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Set counter service opening hours for a court","tags":["Court Opening Hours"]}},"/courts/{courtId}/v1/opening-hours/counter-service/{counterServiceId}":{"delete":{"description":"Deletes counter service opening hours for a court.","operationId":"deleteCounterServiceOpeningHours","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"UUID of the counter service","in":"path","name":"counterServiceId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successfully deleted counter service opening hours"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court ID"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Court not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Delete counter service opening hours for a court","tags":["Court Opening Hours"]},"get":{"description":"Fetch counter service opening hours for a given court.Returns 204 if no counter service opening hours exist for the court with this ID.","operationId":"getCounterServiceOpeningHoursById","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"UUID of the counter service opening hours","in":"path","name":"counterServiceId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/CourtCounterServiceOpeningHours"}}},"description":"Successfully retrieved court counter service opening hours"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No counter service found for the court with this ID"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court ID or court counter service ID supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Court or counter service opening hours not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get court counter service opening hours by court ID and counter service ID","tags":["Court Opening Hours"]}},"/courts/{courtId}/v1/opening-hours/{openingHoursId}":{"delete":{"description":"Deletes opening hours for a court.","operationId":"deleteOpeningHours","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"UUID of the opening hours","in":"path","name":"openingHoursId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successfully deleted opening hours"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court ID or opening hours ID"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Court not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Delete opening hours for a court","tags":["Court Opening Hours"]},"get":{"description":"Fetch opening hours for a given court.Returns 204 if no opening hours exist for the court with this ID.","operationId":"getOpeningHoursById","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"UUID of the opening hours","in":"path","name":"openingHoursId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/CourtOpeningHours"}}},"description":"Successfully retrieved court opening hours"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No opening hours found for the court with this ID"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court ID or opening hours ID supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Court or opening hours not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get court opening hours by court ID and opening hours ID","tags":["Court Opening Hours"]}},"/courts/{courtId}/v1/photo":{"delete":{"description":"Deletes the court photo associated with the given court ID.","operationId":"deleteCourtPhotoByCourtId","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Successfully deleted court photo"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court ID supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Court or court photo not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Delete court photo by court ID","tags":["Court Photo"]},"get":{"description":"Fetch photo information for a given court.","operationId":"getCourtPhotoByCourtId","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/CourtPhoto"}}},"description":"Successfully retrieved court photo"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court ID supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Court or court photo not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get court photo by court ID","tags":["Court Photo"]},"post":{"description":"Creates photo for a court.","operationId":"setCourtPhotoByCourtId","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"responses":{"201":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/CourtPhoto"}}},"description":"Successfully created court photo"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court ID supplied or invalid file"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Court not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Creates the photo for a court (and replaces any existing photo)","tags":["Court Photo"]}},"/courts/{courtId}/v1/professional-information":{"get":{"description":"Fetch professional information for a given court. Returns 204 if no professional information exists for the court.","operationId":"getProfessionalInformationByCourtId","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/CourtProfessionalInformationDetailsDto"}}},"description":"Successfully retrieved professional information"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No professional information found for the court"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court ID supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Court not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get professional information for a court","tags":["Court Professional Information"]},"post":{"description":"Creates new professional information for a court or updates an existing record.","operationId":"setProfessionalInformation","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtProfessionalInformationDetailsDto"}}},"required":true},"responses":{"201":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/CourtProfessionalInformationDetailsDto"}}},"description":"Successfully created/updated professional information"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court ID supplied or invalid request body"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Court not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Create or update professional information for a court","tags":["Court Professional Information"]}},"/courts/{courtId}/v1/single-point-of-entry":{"get":{"description":"Fetch Single Points of Entry configuration for a given court.","operationId":"getSinglePointsOfEntry","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AreaOfLawSelectionDto"}}}},"description":"Successfully retrieved Single Points of Entry"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court ID supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Court not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get Single Points of Entry by court ID","tags":["Court Single Points of Entry"]},"put":{"description":"Updates the Single Points of Entry configuration for a given court.","operationId":"updateSinglePointsOfEntry","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","description":"The updated Single Points of Entry for the court","items":{"$ref":"#/components/schemas/AreaOfLawSelectionDto"}}}},"required":true},"responses":{"200":{"description":"Successfully updated the Single Point of Entry configuration for the Court"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"court ID and/or Single Point of Entry configuration data is invalid"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Court not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Update Single Points of Entry by Court ID","tags":["Court Single Points of Entry"]}},"/courts/{courtId}/v1/translation-services":{"get":{"description":"Fetch translation services for a given court.","operationId":"getTranslationServicesByCourtId","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/CourtTranslation"}}},"description":"Successfully retrieved translation services"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No translation services found for the court"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court ID supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Court not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get translation services by court ID","tags":["Court Translation"]},"post":{"description":"Creates a new translation service for a court or updates the existing one.","operationId":"setTranslationServices","parameters":[{"description":"UUID of the court","in":"path","name":"courtId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtTranslation"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtTranslation"}}},"description":"Successfully created/updated translation service"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid court ID supplied or invalid request body"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Court not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Create or update translation services for a court","tags":["Court Translation"]}},"/locks/{subjectType}/{subjectId}/v1":{"get":{"operationId":"getSubjectLocks","parameters":[{"description":"The subject type","in":"path","name":"subjectType","required":true,"schema":{"type":"string","enum":["COURT","SERVICE_CENTRE"]}},{"description":"UUID of the subject","in":"path","name":"subjectId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Lock"}}}},"description":"Successfully retrieved subject locks"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid subject ID supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Subject not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get all active locks for a subject","tags":["Lock"]}},"/locks/{subjectType}/{subjectId}/v1/{page}":{"delete":{"operationId":"deleteSubjectLock","parameters":[{"description":"The subject type","in":"path","name":"subjectType","required":true,"schema":{"type":"string","enum":["COURT","SERVICE_CENTRE"]}},{"description":"UUID of the subject","in":"path","name":"subjectId","required":true,"schema":{"type":"string"}},{"description":"Page to delete lock","in":"path","name":"page","required":true,"schema":{"type":"string","enum":["GENERAL","ADDRESS","ACCESSIBILITY","CASES_HEARD","CONTACT_DETAILS","COUNTER_SERVICE_OPENING_HOURS","OPENING_HOURS","BUILDING_FACILITIES","INFORMATION_FOR_PROFESSIONALS","LOCAL_AUTHORITIES","PHOTO","TRANSLATION_AND_INTERPRETATION","SINGLE_POINT_OF_ENTRY","WARNING_NOTICE"]}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Successfully deleted subject lock"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid subject ID or page supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Subject or lock not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Delete a subject lock for a specific page","tags":["Lock"]},"get":{"operationId":"getSubjectLockStatus","parameters":[{"description":"The subject type","in":"path","name":"subjectType","required":true,"schema":{"type":"string","enum":["COURT","SERVICE_CENTRE"]}},{"description":"UUID of the subject","in":"path","name":"subjectId","required":true,"schema":{"type":"string"}},{"description":"Page to check lock status","in":"path","name":"page","required":true,"schema":{"type":"string","enum":["GENERAL","ADDRESS","ACCESSIBILITY","CASES_HEARD","CONTACT_DETAILS","COUNTER_SERVICE_OPENING_HOURS","OPENING_HOURS","BUILDING_FACILITIES","INFORMATION_FOR_PROFESSIONALS","LOCAL_AUTHORITIES","PHOTO","TRANSLATION_AND_INTERPRETATION","SINGLE_POINT_OF_ENTRY","WARNING_NOTICE"]}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/Lock"}}},"description":"Successfully retrieved lock status"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No lock data found for the specified page"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid subject ID or page supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Subject not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get lock status for a specific page of a subject","tags":["Lock"]},"post":{"operationId":"createOrUpdateSubjectLock","parameters":[{"description":"The subject type","in":"path","name":"subjectType","required":true,"schema":{"type":"string","enum":["COURT","SERVICE_CENTRE"]}},{"description":"UUID of the subject","in":"path","name":"subjectId","required":true,"schema":{"type":"string"}},{"description":"Page to lock","in":"path","name":"page","required":true,"schema":{"type":"string","enum":["GENERAL","ADDRESS","ACCESSIBILITY","CASES_HEARD","CONTACT_DETAILS","COUNTER_SERVICE_OPENING_HOURS","OPENING_HOURS","BUILDING_FACILITIES","INFORMATION_FOR_PROFESSIONALS","LOCAL_AUTHORITIES","PHOTO","TRANSLATION_AND_INTERPRETATION","SINGLE_POINT_OF_ENTRY","WARNING_NOTICE"]}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"string","format":"uuid","description":"User ID creating the lock"}}},"required":true},"responses":{"201":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/Lock"}}},"description":"Successfully created or updated subject lock"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid subject ID, page or user ID supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Subject or user not found"},"409":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/Lock"}}},"description":"Conflict with existing subject lock"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Create or update subject lock for a specific page","tags":["Lock"]}},"/migration/import":{"post":{"description":"Fetches data from the legacy FaCT private migration endpoint and persists it into the new schema.","operationId":"importLegacyData","responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/MigrationResponse"}}},"description":"Migration completed successfully"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid legacy payload or reference data missing"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Not Found"},"409":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Migration already applied"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"},"422":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/MigrationReconciliationErrorResponse"}}},"description":"Migration reconciliation rejected data loss"},"500":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/MigrationResponse"}}},"description":"Unexpected server error"}},"security":[{"bearerAuth":[]}],"summary":"Execute legacy data migration","tags":["Migration"]}},"/migration/photos":{"post":{"description":"Fetches court photos from the legacy FaCT private migration endpoint and persists them into the new database and storage account.","operationId":"importCourtPhotos","responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/PhotoMigrationResponse"}}},"description":"OK"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Bad Request"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Not Found"},"409":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Conflict"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"},"422":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/MigrationReconciliationErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"bearerAuth":[]}],"summary":"Migrate court photos from legacy FaCT system","tags":["Migration"]}},"/migration/reports/{reportId}":{"get":{"description":"Returns the durable source, count and finding manifest for a migration run.","operationId":"getMigrationReport","parameters":[{"in":"path","name":"reportId","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/MigrationReport"}}},"description":"Migration report found"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Bad Request"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Migration report not found"},"409":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Conflict"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"},"422":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/MigrationReconciliationErrorResponse"}}},"description":"Unprocessable Content"}},"security":[{"bearerAuth":[]}],"summary":"Retrieve a legacy migration reconciliation report","tags":["Migration"]}},"/search/address/v1/postcode/{postcode}":{"get":{"description":"Retrieve all services.","operationId":"getAddressByPostcode","parameters":[{"description":"A provided postcode","in":"path","name":"postcode","required":true,"schema":{"type":"string","minLength":1}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/OsData"}}},"description":"Successfully retrieved address(es) based on provided postcode."},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Postcode is missing or is not valid."},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Not Found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"},"500":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/OsData"}}},"description":"OS returned an error when attempting to retrieve information about the provided postcode."}},"security":[{"bearerAuth":[]}],"summary":"Search for and return all services.","tags":["Search Address"]}},"/search/courts/v1/name":{"get":{"description":"Retrieve open courts and service centres matching a provided name or address query.","operationId":"getCourtsByQuery","parameters":[{"description":"Query string used to search for courts and service centres","in":"query","name":"q","required":true,"schema":{"type":"string","maxLength":2147483647,"minLength":3}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AllLocation"}}}},"description":"Successfully retrieved locations matching the query."},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Query is missing or invalid."},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Not Found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Search courts and service centres by name or address.","tags":["Search Court"]}},"/search/courts/v1/postcode":{"get":{"description":"Retrieve courts based on postcode, service area and action.","operationId":"getCourtsByPostcode","parameters":[{"description":"Postcode","in":"query","name":"postcode","required":true,"schema":{"type":"string","minLength":1}},{"description":"Service area name","in":"query","name":"serviceArea","required":false,"schema":{"type":"string"}},{"description":"Action to perform","in":"query","name":"action","required":false,"schema":{"type":"string","enum":["NEAREST","DOCUMENTS","UPDATE"]}},{"description":"Maximum number of results (default 10)","in":"query","name":"limit","required":false,"schema":{"type":"integer","format":"int32","default":10,"maximum":50,"minimum":1}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtWithDistance"}}}},"description":"Successfully retrieved court(s) based on provided postcode."},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Postcode is missing or is not valid."},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Information not found. For example, service area provided but not valid."},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"},"500":{"content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtWithDistance"}}}},"description":"OS returned an error when attempting to retrieve information about the provided postcode."}},"security":[{"bearerAuth":[]}],"summary":"Search courts by postcode, plus optional fields based on various business rules.","tags":["Search Court"]}},"/search/courts/v1/prefix":{"get":{"description":"Retrieve courts and service centres based on a provided prefix.","operationId":"getCourtsByPrefix","parameters":[{"in":"query","name":"prefix","required":true,"schema":{"type":"string","pattern":"^[A-Za-z]$"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AllLocation"}}}},"description":"Successfully retrieved locations by prefix."},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Prefix is missing or is not valid."},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Not Found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Search courts and service centres by prefix.","tags":["Search Court"]}},"/search/locations/v1/postcode":{"get":{"description":"Retrieve court and service-centre results based on postcode, service area and action.","operationId":"getLocationsByPostcode","parameters":[{"description":"Postcode","in":"query","name":"postcode","required":true,"schema":{"type":"string","minLength":1}},{"description":"Service area name","in":"query","name":"serviceArea","required":false,"schema":{"type":"string"}},{"description":"Action to perform","in":"query","name":"action","required":false,"schema":{"type":"string","enum":["NEAREST","DOCUMENTS","UPDATE"]}},{"description":"Maximum number of results (default 10)","in":"query","name":"limit","required":false,"schema":{"type":"integer","format":"int32","default":10,"maximum":50,"minimum":1}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SearchResult"}}}},"description":"Successfully retrieved matching locations."},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Postcode is missing or is not valid."},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Information not found."},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Search courts and service centres by postcode.","tags":["Search Location"]}},"/search/service-area/v1/{serviceAreaName}":{"get":{"description":"Retrieve service-centre search results based on provided service area name.","operationId":"getServiceAreaByName_1","parameters":[{"description":"Service area name","in":"path","name":"serviceAreaName","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ServiceAreaSearchResult"}}}},"description":"Successfully retrieved results for service area."},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Service area name is missing or is not valid."},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Information not found for provided service area name."},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Search for service area by name.","tags":["Search Service Area"]}},"/search/services/v1":{"get":{"description":"Retrieve all services.","operationId":"getServices","parameters":[{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Service"}}}},"description":"Successfully retrieved service areas based on provided name."},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Bad Request"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Not Found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Search for and return all services.","tags":["Search Service"]}},"/search/services/v1/{serviceName}/service-areas":{"get":{"description":"Retrieve Service Areas based on provided name.","operationId":"getServiceAreaByName","parameters":[{"description":"Service name","in":"path","name":"serviceName","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ServiceArea"}}}},"description":"Successfully retrieved service areas based on provided name."},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Service name is missing or is not valid."},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Information not found for provided service name."},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Search for service areas by service name.","tags":["Search Service"]}},"/service-centres/name/v1":{"get":{"description":"Fetch the service centre for a given exact service centre name.","operationId":"getServiceCentreByName","parameters":[{"description":"Exact name of the service centre","in":"query","name":"name","required":true,"schema":{"type":"string","maxLength":250,"minLength":0}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ServiceCentre"}}},"description":"Successfully retrieved service centre"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid service centre name supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Service centre not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get service centre by exact name","tags":["Service Centre"]}},"/service-centres/slug/{serviceCentreSlug}/v1":{"get":{"description":"Fetch detailed service centre information for a given service centre slug.","operationId":"getServiceCentreDetailsBySlug","parameters":[{"description":"Slug of the service centre","in":"path","name":"serviceCentreSlug","required":true,"schema":{"type":"string","maxLength":250,"minLength":0}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ServiceCentreDetails_ServiceCentreDetailsView"}}},"description":"Successfully retrieved service centre details"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid service centre slug supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Service centre not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get service centre details by slug","tags":["Service Centre"]}},"/service-centres/v1":{"post":{"description":"Creates a new service centre record.","operationId":"createServiceCentre","parameters":[{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceCentre"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceCentre"}}},"description":"Successfully created service centre"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid service centre data supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Not Found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Create a new service centre","tags":["Service Centre"]}},"/service-centres/{serviceCentreId}/entity/v1":{"get":{"description":"Fetch the service centre entity for a given service centre ID.","operationId":"getServiceCentreById","parameters":[{"description":"UUID of the service centre","in":"path","name":"serviceCentreId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ServiceCentre"}}},"description":"Successfully retrieved service centre entity"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid service centre ID supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Service centre not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get service centre entity by ID","tags":["Service Centre"]}},"/service-centres/{serviceCentreId}/v1":{"get":{"description":"Fetch detailed service centre information for a given service centre ID.","operationId":"getServiceCentreDetailsById","parameters":[{"description":"UUID of the service centre","in":"path","name":"serviceCentreId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ServiceCentreDetails_ServiceCentreDetailsView"}}},"description":"Successfully retrieved service centre details"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid service centre ID supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Service centre not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get service centre details by ID","tags":["Service Centre"]},"put":{"description":"Updates the details of an existing service centre.","operationId":"updateServiceCentre","parameters":[{"in":"path","name":"serviceCentreId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceCentre"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceCentre"}}},"description":"Successfully updated service centre"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid service centre data supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Service centre not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Update an existing service centre","tags":["Service Centre"]}},"/service-centres/{serviceCentreId}/v1/address":{"get":{"description":"Fetch all addresses associated with the supplied service centre ID.","operationId":"getAddresses","parameters":[{"description":"UUID of the service centre","in":"path","name":"serviceCentreId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ServiceCentreAddress"}}}},"description":"Successfully retrieved addresses"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid service centre ID supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Service centre not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get addresses for a service centre","tags":["Service Centre Addresses"]},"post":{"description":"Create a new address entry for the supplied service centre.","operationId":"createAddress","parameters":[{"description":"UUID of the service centre","in":"path","name":"serviceCentreId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceCentreAddress"}}},"required":true},"responses":{"201":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ServiceCentreAddress"}}},"description":"Successfully created the address"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid service centre ID supplied or invalid request body"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Service centre not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Create address for a service centre","tags":["Service Centre Addresses"]}},"/service-centres/{serviceCentreId}/v1/address/{addressId}":{"delete":{"description":"Remove an existing address entry for the supplied service centre.","operationId":"deleteServiceCentreAddress","parameters":[{"description":"UUID of the service centre","in":"path","name":"serviceCentreId","required":true,"schema":{"type":"string"}},{"description":"UUID of the address","in":"path","name":"addressId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Successfully deleted the address"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid service centre ID or address ID supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Address or service centre not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Delete address for a service centre","tags":["Service Centre Addresses"]},"get":{"description":"Fetch a single address by service centre and address identifier.","operationId":"getAddress","parameters":[{"description":"UUID of the service centre","in":"path","name":"serviceCentreId","required":true,"schema":{"type":"string"}},{"description":"UUID of the address","in":"path","name":"addressId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ServiceCentreAddress"}}},"description":"Successfully retrieved the address"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid service centre ID or address ID supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Address or service centre not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get a specific address for a service centre","tags":["Service Centre Addresses"]},"put":{"description":"Update an existing address entry for the supplied service centre.","operationId":"updateServiceCentreAddress","parameters":[{"description":"UUID of the service centre","in":"path","name":"serviceCentreId","required":true,"schema":{"type":"string"}},{"description":"UUID of the address","in":"path","name":"addressId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceCentreAddress"}}},"required":true},"responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ServiceCentreAddress"}}},"description":"Successfully updated the address"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid service centre ID or address ID supplied, or invalid request body"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Address or service centre not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Update address for a service centre","tags":["Service Centre Addresses"]}},"/service-centres/{serviceCentreId}/v1/areas-of-law":{"get":{"description":"Fetch Areas Of Law with availability boolean for a given service centre.","operationId":"getAreasOfLawByServiceCentreId","parameters":[{"description":"UUID of the service centre","in":"path","name":"serviceCentreId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"type":"object","additionalProperties":{"type":"boolean"}}}},"description":"Successfully retrieved Areas Of Law"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid service centre ID supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Service centre not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get Areas Of Law map with boolean by service centre ID","tags":["Service Centre Areas Of Law"]},"put":{"description":"Creates new Service Centre Areas Of Law for a service centre or updates the existing one.","operationId":"setAreasOfLawServices","parameters":[{"description":"UUID of the service centre","in":"path","name":"serviceCentreId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceCentreAreasOfLaw"}}},"required":true},"responses":{"201":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ServiceCentreAreasOfLaw"}}},"description":"Successfully created/updated Service Centre Areas Of Law"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid service centre ID supplied or invalid request body"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Service centre not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Create or update Service Centre Areas Of Law for a service centre","tags":["Service Centre Areas Of Law"]}},"/service-centres/{serviceCentreId}/v1/contact-details":{"get":{"description":"Fetch all contact details associated with the supplied service centre ID.","operationId":"getContactDetails","parameters":[{"description":"UUID of the service centre","in":"path","name":"serviceCentreId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ServiceCentreContactDetails"}}}},"description":"Successfully retrieved contact details"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid service centre ID supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Service centre not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get contact details for a service centre","tags":["Service Centre Contact Details"]},"post":{"description":"Create a new contact detail entry for the supplied service centre.","operationId":"createContactDetail","parameters":[{"description":"UUID of the service centre","in":"path","name":"serviceCentreId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceCentreContactDetails"}}},"required":true},"responses":{"201":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ServiceCentreContactDetails"}}},"description":"Successfully created the contact detail"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid service centre ID supplied or invalid request body"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Service centre or contact description type not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Create contact details for a service centre","tags":["Service Centre Contact Details"]}},"/service-centres/{serviceCentreId}/v1/contact-details/{contactId}":{"delete":{"description":"Remove an existing contact detail entry for the supplied service centre.","operationId":"deleteContactDetail","parameters":[{"description":"UUID of the service centre","in":"path","name":"serviceCentreId","required":true,"schema":{"type":"string"}},{"description":"UUID of the contact","in":"path","name":"contactId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Successfully deleted the contact detail"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid service centre ID or contact ID supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Contact detail or service centre not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Delete contact details for a service centre","tags":["Service Centre Contact Details"]},"get":{"description":"Fetch a single contact detail by service centre and contact identifier.","operationId":"getContactDetail","parameters":[{"description":"UUID of the service centre","in":"path","name":"serviceCentreId","required":true,"schema":{"type":"string"}},{"description":"UUID of the contact","in":"path","name":"contactId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ServiceCentreContactDetails"}}},"description":"Successfully retrieved the contact detail"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid service centre ID or contact ID supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Contact detail or service centre not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get a specific contact detail for a service centre","tags":["Service Centre Contact Details"]},"put":{"description":"Update an existing contact detail entry for the supplied service centre.","operationId":"updateContactDetail","parameters":[{"description":"UUID of the service centre","in":"path","name":"serviceCentreId","required":true,"schema":{"type":"string"}},{"description":"UUID of the contact","in":"path","name":"contactId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceCentreContactDetails"}}},"required":true},"responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ServiceCentreContactDetails"}}},"description":"Successfully updated the contact detail"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid service centre ID or contact ID supplied, or invalid request body"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Contact detail, service centre, or contact description type not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Update contact details for a service centre","tags":["Service Centre Contact Details"]}},"/types/v1/areas-of-law":{"get":{"description":"Fetch all areas of law types.Returns empty list if no areas of law types exist.","operationId":"getAreasOfLawTypes","parameters":[{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AreaOfLawType"}}}},"description":"Successfully retrieved areas of law types"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Bad Request"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Not Found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get all areas of law types","tags":["Types"]}},"/types/v1/contact-description-types":{"get":{"description":"Fetch all contact description types.Returns empty list if no contact description types exist.","operationId":"getContactDescriptionTypes","parameters":[{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ContactDescriptionType"}}}},"description":"Successfully retrieved contact description types"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Bad Request"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Not Found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get all contact description types","tags":["Types"]}},"/types/v1/court-types":{"get":{"description":"Fetch all court types.Returns empty list if no court types exist.","operationId":"getCourtTypes","parameters":[{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CourtType"}}}},"description":"Successfully retrieved court types"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Bad Request"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Not Found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get all court types","tags":["Types"]}},"/types/v1/local-authorities":{"get":{"description":"Fetch the complete set of parent local authorities.Returns empty list if no local authorities exist.","operationId":"getLocalAuthorities","parameters":[{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LocalAuthorityType"}}}},"description":"Successfully retrieved local authorities"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Bad Request"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Not Found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get all local authorities","tags":["Types"]}},"/types/v1/opening-hours-types":{"get":{"description":"Fetch all opening hours types.Returns empty list if no opening hours types exist.","operationId":"getOpeningHoursTypes","parameters":[{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OpeningHourType"}}}},"description":"Successfully retrieved opening hours types"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Bad Request"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Not Found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get all opening hours types","tags":["Types"]}},"/types/v1/regions":{"get":{"description":"Fetch all regions.Returns empty list if no regions exist.","operationId":"getRegions","parameters":[{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Region"}}}},"description":"Successfully retrieved regions"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Bad Request"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Not Found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get all regions","tags":["Types"]}},"/types/v1/service-areas":{"get":{"description":"Fetch all service areas.Returns empty list if no service areas exist.","operationId":"getServiceAreas","parameters":[{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ServiceArea"}}}},"description":"Successfully retrieved service areas"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Bad Request"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Not Found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get all service areas","tags":["Types"]}},"/user/v1":{"get":{"operationId":"getFilteredAndPaginatedUsers","parameters":[{"in":"query","name":"pageNumber","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"in":"query","name":"pageSize","required":false,"schema":{"type":"integer","format":"int32","default":25,"exclusiveMinimum":0}},{"in":"query","name":"search","required":false,"schema":{"type":"string","maxLength":250,"minLength":0}},{"in":"query","name":"sortBy","required":false,"schema":{"type":"string"}},{"in":"query","name":"sortOrder","required":false,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/PagedModelUser"}}},"description":"Successfully retrieved users"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid request parameters supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Not Found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get filtered and paginated users","tags":["User"]},"post":{"operationId":"createOrUpdateLastLoginUser","parameters":[{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}},"required":true},"responses":{"201":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/User"}}},"description":"Successfully created/updated user"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid request"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Not Found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Create or update user record","tags":["User"]}},"/user/v1/favourites":{"get":{"operationId":"getFavourites","parameters":[{"in":"query","name":"pageNumber","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"in":"query","name":"pageSize","required":false,"schema":{"type":"integer","format":"int32","default":25,"exclusiveMinimum":0,"maximum":1000}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/PagedModelAllLocation"}}},"description":"Successfully retrieved favourite locations"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid request"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Current user not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get the current user's paginated favourite locations","tags":["User"]},"post":{"operationId":"addFavourite","parameters":[{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FavouriteReference"}}},"required":true},"responses":{"201":{"description":"Favourite added or already present"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid request"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Current user or subject not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Add a favourite location for the current user","tags":["User"]}},"/user/v1/favourites/status":{"post":{"operationId":"getStatuses","parameters":[{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FavouriteStatusRequest"}}},"required":true},"responses":{"200":{"content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FavouriteStatus"}}}},"description":"Successfully retrieved favourite statuses"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"No Content"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid request"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Current user not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Get favourite status for the current user's supplied locations","tags":["User"]}},"/user/v1/favourites/{subjectType}/{subjectId}":{"delete":{"operationId":"removeFavourite","parameters":[{"in":"path","name":"subjectType","required":true,"schema":{"type":"string","enum":["COURT","SERVICE_CENTRE"]}},{"in":"path","name":"subjectId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Favourite removed or already absent"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid request"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Current user or subject not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Remove a favourite location for the current user","tags":["User"]}},"/user/v1/retention":{"delete":{"operationId":"deleteInactiveUsers","parameters":[{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Successfully processed inactive users"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Bad Request"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Not Found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Delete inactive users","tags":["User"]}},"/user/v1/{userId}/locks":{"delete":{"operationId":"clearUserLocks","parameters":[{"description":"UUID of the user","in":"path","name":"userId","required":true,"schema":{"type":"string"}},{"description":"The ID of the user making the request","in":"header","name":"X-User-Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"204":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Successfully cleared user locks"},"400":{"content":{"*/*":{"schema":{"oneOf":[{"type":"object","additionalProperties":{"type":"string"}},{"$ref":"#/components/schemas/ExceptionResponse"}]}}},"description":"Invalid user ID supplied"},"403":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Forbidden"},"404":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"User not found"},"413":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Content Too Large"},"415":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionResponse"}}},"description":"Unsupported Media Type"}},"security":[{"bearerAuth":[]}],"summary":"Clear all locks for a user during logout","tags":["User"]}}},"components":{"schemas":{"AllLocation":{"type":"object","properties":{"createdAt":{"type":"string","format":"date-time"},"id":{"type":"string","format":"uuid"},"lastUpdatedAt":{"type":"string","format":"date-time"},"locationType":{"type":"string"},"mrdId":{"type":"string"},"name":{"type":"string"},"open":{"type":"boolean"},"openOnCath":{"type":"boolean"},"regionId":{"type":"string","format":"uuid"},"serviceCentre":{"type":"boolean"},"slug":{"type":"string"},"warningNotice":{"type":"string"},"warningNoticeCy":{"type":"string"}}},"AllLocationDetails":{"type":"object","properties":{"court":{"$ref":"#/components/schemas/CourtDetails"},"locationType":{"type":"string"},"serviceCentre":{"type":"boolean"},"serviceCentreDetails":{"$ref":"#/components/schemas/ServiceCentreDetails"}}},"Approval":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"lastUpdatedAt":{"type":"string","format":"date-time","description":"The last update date/time","readOnly":true},"subjectId":{"type":"string","format":"uuid","description":"The ID of the subject being approved"},"subjectType":{"type":"string","description":"The subject type being approved","enum":["COURT","SERVICE_CENTRE"]},"userId":{"type":"string","format":"uuid","description":"The ID of the associated User"}},"required":["subjectId","subjectType","userId"]},"ApprovalStatus":{"type":"object","properties":{"approvalId":{"type":"string","format":"uuid"},"approved":{"type":"boolean"},"lastUpdatedAt":{"type":"string","format":"date-time"},"name":{"type":"string"},"subjectId":{"type":"string","format":"uuid"},"subjectType":{"type":"string","enum":["COURT","SERVICE_CENTRE"]},"user":{"$ref":"#/components/schemas/User"},"userId":{"type":"string","format":"uuid"}}},"AreaOfLawSelectionDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The ID of the Area of Law Type"},"name":{"type":"string","description":"The name of the Area of Law Type","readOnly":true},"nameCy":{"type":"string","description":"The Welsh language name of the Area of Law Type","readOnly":true},"selected":{"type":"boolean","description":"Whether the Area of Law Type is selected for inclusion"}},"required":["id","selected"]},"AreaOfLawType":{"type":"object","properties":{"displayName":{"type":"string"},"displayNameCy":{"type":"string"},"externalLink":{"type":"string"},"externalLinkCy":{"type":"string"},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"name":{"type":"string","description":"The name","minLength":1},"nameCy":{"type":"string","description":"The Welsh language name","minLength":1}},"required":["name","nameCy"]},"Audit":{"type":"object","properties":{"actionDataDiff":{"type":"array","description":"The new data state","items":{"$ref":"#/components/schemas/Change"}},"actionEntity":{"type":"string","description":"The action entity"},"actionType":{"type":"string","description":"The action type","enum":["INSERT","UPDATE","DELETE"]},"createdAt":{"type":"string","format":"date-time","description":"The created date/time of the Audit record"},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation"},"subjectId":{"type":"string","format":"uuid"},"subjectType":{"type":"string","enum":["COURT","SERVICE_CENTRE"]},"user":{"$ref":"#/components/schemas/User","description":"The associated User"},"userId":{"type":"string","format":"uuid"}},"readOnly":true,"required":["subjectId","subjectType","userId"]},"Change":{"type":"object","properties":{"field":{"type":"string"},"newValue":{},"oldValue":{}}},"ContactDescriptionType":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"name":{"type":"string","description":"The name","minLength":1},"nameCy":{"type":"string","description":"The Welsh language name","minLength":1}},"required":["name","nameCy"]},"ContactDescriptionType_CourtDetailsView":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"name":{"type":"string","description":"The name","minLength":1},"nameCy":{"type":"string","description":"The Welsh language name","minLength":1}},"required":["name","nameCy"]},"ContactDescriptionType_ServiceCentreDetailsView":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"name":{"type":"string","description":"The name","minLength":1},"nameCy":{"type":"string","description":"The Welsh language name","minLength":1}},"required":["name","nameCy"]},"Court":{"type":"object","properties":{"createdAt":{"type":"string","format":"date-time","description":"The created date/time of the Court record","readOnly":true},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"lastUpdatedAt":{"type":"string","format":"date-time","description":"The last updated date/time of the Court record","readOnly":true},"mrdId":{"type":"string","description":"The Court's Master Reference Data ID"},"name":{"type":"string","description":"The name of the Court","maxLength":200,"minLength":5,"pattern":"^[A-Za-z&'()\\- ]+$"},"open":{"type":"boolean","description":"The open status of the Court"},"openOnCath":{"type":"boolean","description":"Indicates that this Court is declared open in the Court and Tribunal Hearing service"},"regionId":{"type":"string","format":"uuid","description":"The ID of the associated Region"},"slug":{"type":"string","description":"The Court 'slug'"},"warningNotice":{"type":"string","description":"Any warning notices attached to the Court","maxLength":500,"minLength":0,"pattern":"^[A-Za-z0-9.,!?:;'\"()\\-/&@+\\s]+$"},"warningNoticeCy":{"type":"string","description":"Any Welsh warning notices attached to the Court","maxLength":500,"minLength":0,"pattern":"^[\\p{L}0-9.,!?:;'\"()\\-/&@+\\s]+$"}},"required":["name","open","regionId"]},"CourtAccessibilityOptions":{"type":"object","description":"AccessibilityOptions object to create or update","properties":{"accessibleEntrance":{"type":"boolean","description":"The accessible entrance status"},"accessibleEntrancePhoneNumber":{"type":"string","description":"The contact phone number for accessible entrance enquiries","maxLength":20,"minLength":0,"pattern":"^(|(\\+44|)[0-9 ]{10,20})$"},"accessibleParking":{"type":"boolean","description":"The accessible parking status"},"accessibleParkingPhoneNumber":{"type":"string","description":"The contact phone number for accessible parking enquiries","maxLength":20,"minLength":0,"pattern":"^(|(\\+44|)[0-9 ]{10,20})$"},"accessibleToiletDescription":{"type":"string","description":"Details of available accessible toilets","maxLength":255,"minLength":0,"pattern":"^[A-Za-z0-9 ()':,\\-;.]+$"},"accessibleToiletDescriptionCy":{"type":"string","description":"Welsh language details of available accessible toilets","maxLength":255,"minLength":0,"pattern":"^[A-Za-z0-9 ()':,\\-;.]+$"},"courtId":{"type":"string","format":"uuid","description":"The ID of the associated Court"},"hearingEnhancementEquipment":{"type":"string","description":"Details of available hearing enhancement equipment","enum":["INFRARED_SYSTEMS_AND_HEARING_LOOP_SYSTEMS","INFRARED_SYSTEMS","HEARING_LOOP_SYSTEMS"]},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"lift":{"type":"boolean","description":"Lift availability status"},"liftDoorLimit":{"type":"integer","format":"int32","description":"Lift weight limit (in kg)","maximum":10000,"minimum":1},"liftDoorWidth":{"type":"integer","format":"int32","description":"Lift door width (in cm)","maximum":1000,"minimum":1},"liftSupportPhoneNumber":{"type":"string","description":"Telephone number for organising support at court when there is no lift","maxLength":20,"minLength":0,"pattern":"^(|(\\+44|)[0-9 ]{10,20})$"},"quietRoom":{"type":"boolean","description":"Quiet room availability status"}},"required":["accessibleEntrance","accessibleParking","courtId","hearingEnhancementEquipment","lift","quietRoom"]},"CourtAccessibilityOptions_CourtDetailsView":{"type":"object","properties":{"accessibleEntrance":{"type":"boolean","description":"The accessible entrance status"},"accessibleEntrancePhoneNumber":{"type":"string","description":"The contact phone number for accessible entrance enquiries","maxLength":20,"minLength":0,"pattern":"^(|(\\+44|)[0-9 ]{10,20})$"},"accessibleParking":{"type":"boolean","description":"The accessible parking status"},"accessibleParkingPhoneNumber":{"type":"string","description":"The contact phone number for accessible parking enquiries","maxLength":20,"minLength":0,"pattern":"^(|(\\+44|)[0-9 ]{10,20})$"},"accessibleToiletDescription":{"type":"string","description":"Details of available accessible toilets","maxLength":255,"minLength":0,"pattern":"^[A-Za-z0-9 ()':,\\-;.]+$"},"accessibleToiletDescriptionCy":{"type":"string","description":"Welsh language details of available accessible toilets","maxLength":255,"minLength":0,"pattern":"^[A-Za-z0-9 ()':,\\-;.]+$"},"courtId":{"type":"string","format":"uuid","description":"The ID of the associated Court"},"hearingEnhancementEquipment":{"type":"string","description":"Details of available hearing enhancement equipment","enum":["INFRARED_SYSTEMS_AND_HEARING_LOOP_SYSTEMS","INFRARED_SYSTEMS","HEARING_LOOP_SYSTEMS"]},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"lift":{"type":"boolean","description":"Lift availability status"},"liftDoorLimit":{"type":"integer","format":"int32","description":"Lift weight limit (in kg)","maximum":10000,"minimum":1},"liftDoorWidth":{"type":"integer","format":"int32","description":"Lift door width (in cm)","maximum":1000,"minimum":1},"liftSupportPhoneNumber":{"type":"string","description":"Telephone number for organising support at court when there is no lift","maxLength":20,"minLength":0,"pattern":"^(|(\\+44|)[0-9 ]{10,20})$"},"quietRoom":{"type":"boolean","description":"Quiet room availability status"}},"required":["accessibleEntrance","accessibleParking","courtId","hearingEnhancementEquipment","lift","quietRoom"]},"CourtAddress":{"type":"object","description":"Address to create","properties":{"addressLine1":{"type":"string","description":"The first address line","maxLength":255,"minLength":0,"pattern":"^[A-Za-z0-9 ()':,.-]+$"},"addressLine2":{"type":"string","description":"The second address line","maxLength":255,"minLength":0,"pattern":"^(|[A-Za-z0-9 ()':,.-]+$)$"},"addressType":{"type":"string","description":"The address type","enum":["VISIT_US","WRITE_TO_US","VISIT_OR_CONTACT_US"]},"areasOfLaw":{"type":"array","items":{}},"county":{"type":"string","description":"The county","maxLength":100,"minLength":0,"pattern":"^(|[A-Za-z0-9 ()':,.-]+$)$"},"courtId":{"type":"string","format":"uuid","description":"The ID of the associated Court"},"courtTypes":{"type":"array","items":{}},"epimId":{"type":"string","description":"The EPIM ID","maxLength":10,"minLength":0,"pattern":"^[A-Za-z0-9 -]+$"},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"lat":{"type":"number","description":"The latitude coordinate"},"lon":{"type":"number","description":"The longitude coordinate"},"postcode":{"type":"string","description":"The postcode","minLength":1},"townCity":{"type":"string","description":"The town/city","maxLength":100,"minLength":0,"pattern":"^[A-Za-z0-9 ()':,.-]+$"}},"required":["addressLine1","addressType","courtId","postcode","townCity"]},"CourtAddress_CourtDetailsView":{"type":"object","properties":{"addressLine1":{"type":"string","description":"The first address line","maxLength":255,"minLength":0,"pattern":"^[A-Za-z0-9 ()':,.-]+$"},"addressLine2":{"type":"string","description":"The second address line","maxLength":255,"minLength":0,"pattern":"^(|[A-Za-z0-9 ()':,.-]+$)$"},"addressType":{"type":"string","description":"The address type","enum":["VISIT_US","WRITE_TO_US","VISIT_OR_CONTACT_US"]},"areasOfLaw":{"type":"array","items":{}},"county":{"type":"string","description":"The county","maxLength":100,"minLength":0,"pattern":"^(|[A-Za-z0-9 ()':,.-]+$)$"},"courtId":{"type":"string","format":"uuid","description":"The ID of the associated Court"},"courtTypes":{"type":"array","items":{}},"epimId":{"type":"string","description":"The EPIM ID","maxLength":10,"minLength":0,"pattern":"^[A-Za-z0-9 -]+$"},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"lat":{"type":"number","description":"The latitude coordinate"},"lon":{"type":"number","description":"The longitude coordinate"},"postcode":{"type":"string","description":"The postcode","minLength":1},"townCity":{"type":"string","description":"The town/city","maxLength":100,"minLength":0,"pattern":"^[A-Za-z0-9 ()':,.-]+$"}},"required":["addressLine1","addressType","courtId","postcode","townCity"]},"CourtAreasOfLaw":{"type":"object","description":"AreasOfLaw object to create or update","properties":{"areasOfLaw":{"type":"array","items":{}},"courtId":{"type":"string","format":"uuid","description":"The ID of the associated Court"},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true}},"required":["courtId"]},"CourtAreasOfLaw_CourtDetailsView":{"type":"object","properties":{"areasOfLaw":{"type":"array","items":{}},"courtId":{"type":"string","format":"uuid","description":"The ID of the associated Court"},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true}},"required":["courtId"]},"CourtCodes":{"type":"object","properties":{"countyCourtCode":{"type":"integer","format":"int32","description":"The County Court code"},"courtId":{"type":"string","format":"uuid","description":"The ID of the associated Court"},"crownCourtCode":{"type":"integer","format":"int32","description":"The Crown Court code"},"familyCourtCode":{"type":"integer","format":"int32","description":"The Family Court code"},"gbs":{"type":"string","description":"The GBS code","maxLength":10,"minLength":0,"pattern":"^[A-Za-z0-9 ]*$"},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"magistrateCourtCode":{"type":"integer","format":"int32","description":"The Magistrate Court code"},"tribunalCode":{"type":"integer","format":"int32","description":"The Tribunal Court code"}},"required":["courtId"]},"CourtCodesDto":{"type":"object","properties":{"countyCourtCode":{"type":"integer","format":"int32","description":"County court code"},"crownCourtCode":{"type":"integer","format":"int32","description":"Crown court code"},"familyCourtCode":{"type":"integer","format":"int32","description":"Family court code"},"gbs":{"type":"string","description":"GBS code","maxLength":10,"minLength":0,"pattern":"^[A-Za-z0-9 ]*$"},"magistrateCourtCode":{"type":"integer","format":"int32","description":"Magistrates' court code"},"tribunalCode":{"type":"integer","format":"int32","description":"Tribunal court code"}}},"CourtCodes_CourtDetailsView":{"type":"object","properties":{"countyCourtCode":{"type":"integer","format":"int32","description":"The County Court code"},"courtId":{"type":"string","format":"uuid","description":"The ID of the associated Court"},"crownCourtCode":{"type":"integer","format":"int32","description":"The Crown Court code"},"familyCourtCode":{"type":"integer","format":"int32","description":"The Family Court code"},"gbs":{"type":"string","description":"The GBS code","maxLength":10,"minLength":0,"pattern":"^[A-Za-z0-9 ]*$"},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"magistrateCourtCode":{"type":"integer","format":"int32","description":"The Magistrate Court code"},"tribunalCode":{"type":"integer","format":"int32","description":"The Tribunal Court code"}},"required":["courtId"]},"CourtContactDetails":{"type":"object","description":"Contact detail to create","properties":{"courtContactDescription":{"$ref":"#/components/schemas/ContactDescriptionType"},"courtContactDescriptionId":{"type":"string","format":"uuid","description":"The ID of the associated Contact Description Type"},"courtId":{"type":"string","format":"uuid","description":"The ID of the associated Court"},"email":{"type":"string","description":"The associated email address","maxLength":254,"minLength":0,"pattern":"^(|[A-Za-z0-9._+-]+@[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*\\.[A-Za-z]{2,})$"},"explanation":{"type":"string","description":"The explanation","maxLength":250,"minLength":0,"pattern":"^[A-Za-z0-9 '\\-()&+]*$"},"explanationCy":{"type":"string","description":"The Welsh language explanation","maxLength":250,"minLength":0,"pattern":"^[\\p{L}0-9 '\\-()&+]*$"},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"phoneNumber":{"type":"string","description":"The associated phone number","maxLength":20,"minLength":0,"pattern":"^(|(\\+44|)[0-9 ]{10,20})$"}},"required":["courtContactDescriptionId","courtId"]},"CourtContactDetails_CourtDetailsView":{"type":"object","properties":{"courtContactDescription":{"$ref":"#/components/schemas/ContactDescriptionType_CourtDetailsView"},"courtContactDescriptionId":{"type":"string","format":"uuid","description":"The ID of the associated Contact Description Type"},"courtId":{"type":"string","format":"uuid","description":"The ID of the associated Court"},"email":{"type":"string","description":"The associated email address","maxLength":254,"minLength":0,"pattern":"^(|[A-Za-z0-9._+-]+@[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*\\.[A-Za-z]{2,})$"},"explanation":{"type":"string","description":"The explanation","maxLength":250,"minLength":0,"pattern":"^[A-Za-z0-9 '\\-()&+]*$"},"explanationCy":{"type":"string","description":"The Welsh language explanation","maxLength":250,"minLength":0,"pattern":"^[\\p{L}0-9 '\\-()&+]*$"},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"phoneNumber":{"type":"string","description":"The associated phone number","maxLength":20,"minLength":0,"pattern":"^(|(\\+44|)[0-9 ]{10,20})$"}},"required":["courtContactDescriptionId","courtId"]},"CourtCounterServiceOpeningHours":{"type":"object","properties":{"appointmentContact":{"type":"string","description":"Appointment arrangement contact details","pattern":"^(|[A-Za-z0-9._+-]+@[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*\\.[A-Za-z]{2,})$"},"appointmentNeeded":{"type":"boolean","description":"Arranged appointment requirement status"},"assistWithDocuments":{"type":"boolean","description":"'Assist with Documents' service availability status"},"assistWithForms":{"type":"boolean","description":"'Assist with Forms' service availability status"},"assistWithSupport":{"type":"boolean","description":"'Assist with Support' availability status"},"counterService":{"type":"boolean","description":"Counter service availability status"},"courtId":{"type":"string","format":"uuid","description":"The ID of the associated Court"},"courtTypes":{"type":"array","items":{}},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"openingTimesDetails":{"type":"array","items":{"$ref":"#/components/schemas/OpeningTimesDetail"}}},"required":["appointmentNeeded","assistWithDocuments","assistWithForms","assistWithSupport","counterService","courtId"]},"CourtCounterServiceOpeningHours_CourtDetailsView":{"type":"object","properties":{"appointmentContact":{"type":"string","description":"Appointment arrangement contact details","pattern":"^(|[A-Za-z0-9._+-]+@[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*\\.[A-Za-z]{2,})$"},"appointmentNeeded":{"type":"boolean","description":"Arranged appointment requirement status"},"assistWithDocuments":{"type":"boolean","description":"'Assist with Documents' service availability status"},"assistWithForms":{"type":"boolean","description":"'Assist with Forms' service availability status"},"assistWithSupport":{"type":"boolean","description":"'Assist with Support' availability status"},"counterService":{"type":"boolean","description":"Counter service availability status"},"courtId":{"type":"string","format":"uuid","description":"The ID of the associated Court"},"courtTypes":{"type":"array","items":{}},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"openingTimesDetails":{"type":"array","items":{"$ref":"#/components/schemas/OpeningTimesDetail_CourtDetailsView"}}},"required":["appointmentNeeded","assistWithDocuments","assistWithForms","assistWithSupport","counterService","courtId"]},"CourtDetails":{"type":"object","properties":{"courtAccessibilityOptions":{"type":"array","description":"The Accessibility Options available at the Court","items":{"$ref":"#/components/schemas/CourtAccessibilityOptions"}},"courtAddresses":{"type":"array","description":"The Addresses for the Court","items":{"$ref":"#/components/schemas/CourtAddress"}},"courtAreasOfLaw":{"type":"array","description":"The Areas of Law for the Court","items":{"$ref":"#/components/schemas/CourtAreasOfLaw"}},"courtCodes":{"type":"array","description":"The Court Codes for the Court","items":{"$ref":"#/components/schemas/CourtCodes"}},"courtContactDetails":{"type":"array","description":"The Contact Details for the Court","items":{"$ref":"#/components/schemas/CourtContactDetails"}},"courtCounterServiceOpeningHours":{"type":"array","description":"The Counter Service Opening Hours for the Court","items":{"$ref":"#/components/schemas/CourtCounterServiceOpeningHours"}},"courtDxCodes":{"type":"array","description":"The Dx Code for the Court","items":{"$ref":"#/components/schemas/CourtDxCode"}},"courtFacilities":{"type":"array","description":"The Facilities available at the Court","items":{"$ref":"#/components/schemas/CourtFacilities"}},"courtFaxNumbers":{"type":"array","description":"The Fax Numbers for the Court","items":{"$ref":"#/components/schemas/CourtFax"}},"courtOpeningHours":{"type":"array","description":"The Opening Hours for the Court","items":{"$ref":"#/components/schemas/CourtOpeningHours"}},"courtPhotos":{"type":"array","description":"The photo for the Court","items":{"$ref":"#/components/schemas/CourtPhoto"}},"courtProfessionalInformation":{"type":"array","description":"The Profession Information for the Court","items":{"$ref":"#/components/schemas/CourtProfessionalInformation"}},"courtTranslations":{"type":"array","description":"The Translation Services available at the Court","items":{"$ref":"#/components/schemas/CourtTranslation"}},"createdAt":{"type":"string","format":"date-time","description":"The created date/time of the Court record","readOnly":true},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"lastUpdatedAt":{"type":"string","format":"date-time","description":"The last updated date/time of the Court record","readOnly":true},"mrdId":{"type":"string","description":"The Court's Master Reference Data ID"},"name":{"type":"string","description":"The name of the Court","maxLength":200,"minLength":5,"pattern":"^[A-Za-z&'()\\- ]+$"},"open":{"type":"boolean","description":"The open status of the Court"},"openOnCath":{"type":"boolean","description":"Indicates that this Court is declared open in the Court and Tribunal Hearing service"},"region":{"$ref":"#/components/schemas/Region","description":"The Region"},"regionId":{"type":"string","format":"uuid","description":"The ID of the associated Region"},"slug":{"type":"string","description":"The Court 'slug'"},"warningNotice":{"type":"string","description":"Any warning notices attached to the Court","maxLength":500,"minLength":0,"pattern":"^[A-Za-z0-9.,!?:;'\"()\\-/&@+\\s]+$"},"warningNoticeCy":{"type":"string","description":"Any Welsh warning notices attached to the Court","maxLength":500,"minLength":0,"pattern":"^[\\p{L}0-9.,!?:;'\"()\\-/&@+\\s]+$"}},"required":["name","open","regionId"]},"CourtDetails_CourtDetailsView":{"type":"object","properties":{"courtAccessibilityOptions":{"type":"array","description":"The Accessibility Options available at the Court","items":{"$ref":"#/components/schemas/CourtAccessibilityOptions_CourtDetailsView"}},"courtAddresses":{"type":"array","description":"The Addresses for the Court","items":{"$ref":"#/components/schemas/CourtAddress_CourtDetailsView"}},"courtAreasOfLaw":{"type":"array","description":"The Areas of Law for the Court","items":{"$ref":"#/components/schemas/CourtAreasOfLaw_CourtDetailsView"}},"courtCodes":{"type":"array","description":"The Court Codes for the Court","items":{"$ref":"#/components/schemas/CourtCodes_CourtDetailsView"}},"courtContactDetails":{"type":"array","description":"The Contact Details for the Court","items":{"$ref":"#/components/schemas/CourtContactDetails_CourtDetailsView"}},"courtCounterServiceOpeningHours":{"type":"array","description":"The Counter Service Opening Hours for the Court","items":{"$ref":"#/components/schemas/CourtCounterServiceOpeningHours_CourtDetailsView"}},"courtDxCodes":{"type":"array","description":"The Dx Code for the Court","items":{"$ref":"#/components/schemas/CourtDxCode_CourtDetailsView"}},"courtFacilities":{"type":"array","description":"The Facilities available at the Court","items":{"$ref":"#/components/schemas/CourtFacilities_CourtDetailsView"}},"courtFaxNumbers":{"type":"array","description":"The Fax Numbers for the Court","items":{"$ref":"#/components/schemas/CourtFax_CourtDetailsView"}},"courtOpeningHours":{"type":"array","description":"The Opening Hours for the Court","items":{"$ref":"#/components/schemas/CourtOpeningHours_CourtDetailsView"}},"courtPhotos":{"type":"array","description":"The photo for the Court","items":{"$ref":"#/components/schemas/CourtPhoto_CourtDetailsView"}},"courtProfessionalInformation":{"type":"array","description":"The Profession Information for the Court","items":{"$ref":"#/components/schemas/CourtProfessionalInformation_CourtDetailsView"}},"courtTranslations":{"type":"array","description":"The Translation Services available at the Court","items":{"$ref":"#/components/schemas/CourtTranslation_CourtDetailsView"}},"createdAt":{"type":"string","format":"date-time","description":"The created date/time of the Court record","readOnly":true},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"lastUpdatedAt":{"type":"string","format":"date-time","description":"The last updated date/time of the Court record","readOnly":true},"mrdId":{"type":"string","description":"The Court's Master Reference Data ID"},"name":{"type":"string","description":"The name of the Court","maxLength":200,"minLength":5,"pattern":"^[A-Za-z&'()\\- ]+$"},"open":{"type":"boolean","description":"The open status of the Court"},"openOnCath":{"type":"boolean","description":"Indicates that this Court is declared open in the Court and Tribunal Hearing service"},"region":{"$ref":"#/components/schemas/Region_CourtDetailsView","description":"The Region"},"regionId":{"type":"string","format":"uuid","description":"The ID of the associated Region"},"slug":{"type":"string","description":"The Court 'slug'"},"warningNotice":{"type":"string","description":"Any warning notices attached to the Court","maxLength":500,"minLength":0,"pattern":"^[A-Za-z0-9.,!?:;'\"()\\-/&@+\\s]+$"},"warningNoticeCy":{"type":"string","description":"Any Welsh warning notices attached to the Court","maxLength":500,"minLength":0,"pattern":"^[\\p{L}0-9.,!?:;'\"()\\-/&@+\\s]+$"}},"required":["name","open","regionId"]},"CourtDxCode":{"type":"object","properties":{"courtId":{"type":"string","format":"uuid","description":"The ID of the associated Court"},"dxCode":{"type":"string","description":"The DX Code","maxLength":200,"minLength":0,"pattern":"^[A-Za-z0-9 ()':,\\-;.]+$"},"explanation":{"type":"string","description":"The explanation","maxLength":250,"minLength":0,"pattern":"^[A-Za-z0-9 ()':,\\-;.]+$"},"explanationCy":{"type":"string","description":"The Welsh language explanation","maxLength":250,"minLength":0,"pattern":"^[A-Za-z0-9 ()':,\\-;.]+$"},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true}},"required":["courtId","dxCode"]},"CourtDxCodeDto":{"type":"object","properties":{"dxCode":{"type":"string","description":"DX code value","maxLength":200,"minLength":0,"pattern":"^[A-Za-z0-9 ()':,\\-;.]+$"},"explanation":{"type":"string","description":"Explanation of the DX code","maxLength":250,"minLength":0,"pattern":"^[A-Za-z0-9 ()':,\\-;.]+$"},"explanationCy":{"type":"string","description":"Welsh language explanation of the DX code","maxLength":250,"minLength":0,"pattern":"^[A-Za-z0-9 ()':,\\-;.]+$"},"explanationCyPresentWhenExplanationProvided":{"type":"boolean"}},"required":["dxCode"]},"CourtDxCode_CourtDetailsView":{"type":"object","properties":{"courtId":{"type":"string","format":"uuid","description":"The ID of the associated Court"},"dxCode":{"type":"string","description":"The DX Code","maxLength":200,"minLength":0,"pattern":"^[A-Za-z0-9 ()':,\\-;.]+$"},"explanation":{"type":"string","description":"The explanation","maxLength":250,"minLength":0,"pattern":"^[A-Za-z0-9 ()':,\\-;.]+$"},"explanationCy":{"type":"string","description":"The Welsh language explanation","maxLength":250,"minLength":0,"pattern":"^[A-Za-z0-9 ()':,\\-;.]+$"},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true}},"required":["courtId","dxCode"]},"CourtFacilities":{"type":"object","description":"Facilities object to create or update","properties":{"babyChanging":{"type":"boolean","description":"Baby changing facilities availability status"},"cafeteria":{"type":"boolean","description":"Cafeteria availability status"},"courtId":{"type":"string","format":"uuid","description":"The ID of the associated Court"},"drinkVendingMachines":{"type":"boolean","description":"Drink vending machine availability status"},"freeWaterDispensers":{"type":"boolean","description":"Free water dispenser availability status"},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"parking":{"type":"boolean","description":"Parking availability status"},"quietRoom":{"type":"boolean","description":"Quiet room availability status"},"snackVendingMachines":{"type":"boolean","description":"Snack vending machine availability status"},"waitingArea":{"type":"boolean","description":"Waiting area availability status"},"waitingAreaChildren":{"type":"boolean","description":"Child-specific waiting area availability status"},"wifi":{"type":"boolean","description":"WiFi availability status"}},"required":["babyChanging","cafeteria","courtId","drinkVendingMachines","freeWaterDispensers","parking","quietRoom","snackVendingMachines","waitingArea","wifi"]},"CourtFacilities_CourtDetailsView":{"type":"object","properties":{"babyChanging":{"type":"boolean","description":"Baby changing facilities availability status"},"cafeteria":{"type":"boolean","description":"Cafeteria availability status"},"courtId":{"type":"string","format":"uuid","description":"The ID of the associated Court"},"drinkVendingMachines":{"type":"boolean","description":"Drink vending machine availability status"},"freeWaterDispensers":{"type":"boolean","description":"Free water dispenser availability status"},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"parking":{"type":"boolean","description":"Parking availability status"},"quietRoom":{"type":"boolean","description":"Quiet room availability status"},"snackVendingMachines":{"type":"boolean","description":"Snack vending machine availability status"},"waitingArea":{"type":"boolean","description":"Waiting area availability status"},"waitingAreaChildren":{"type":"boolean","description":"Child-specific waiting area availability status"},"wifi":{"type":"boolean","description":"WiFi availability status"}},"required":["babyChanging","cafeteria","courtId","drinkVendingMachines","freeWaterDispensers","parking","quietRoom","snackVendingMachines","waitingArea","wifi"]},"CourtFax":{"type":"object","properties":{"courtId":{"type":"string","format":"uuid","description":"The ID of the associated Court"},"description":{"type":"string","description":"Description","maxLength":250,"minLength":0,"pattern":"^[A-Za-z0-9 ()':,\\-;.]+$"},"descriptionCy":{"type":"string","description":"Welsh language description","maxLength":250,"minLength":0,"pattern":"^[A-Za-z0-9 ()':,\\-;.]+$"},"faxNumber":{"type":"string","description":"Contact fax number","maxLength":20,"minLength":0,"pattern":"^(|(\\+44|)[0-9 ]{10,20})$"},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true}},"required":["courtId","faxNumber"]},"CourtFaxDto":{"type":"object","properties":{"description":{"type":"string","description":"Fax description","maxLength":250,"minLength":0,"pattern":"^[A-Za-z0-9 ()':,\\-;.]+$"},"descriptionCy":{"type":"string","description":"Welsh language fax description","maxLength":250,"minLength":0,"pattern":"^[A-Za-z0-9 ()':,\\-;.]+$"},"descriptionCyPresentWhenDescriptionProvided":{"type":"boolean"},"faxNumber":{"type":"string","description":"Contact fax number","maxLength":20,"minLength":0,"pattern":"^(|(\\+44|)[0-9 ]{10,20})$"}},"required":["faxNumber"]},"CourtFax_CourtDetailsView":{"type":"object","properties":{"courtId":{"type":"string","format":"uuid","description":"The ID of the associated Court"},"description":{"type":"string","description":"Description","maxLength":250,"minLength":0,"pattern":"^[A-Za-z0-9 ()':,\\-;.]+$"},"descriptionCy":{"type":"string","description":"Welsh language description","maxLength":250,"minLength":0,"pattern":"^[A-Za-z0-9 ()':,\\-;.]+$"},"faxNumber":{"type":"string","description":"Contact fax number","maxLength":20,"minLength":0,"pattern":"^(|(\\+44|)[0-9 ]{10,20})$"},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true}},"required":["courtId","faxNumber"]},"CourtLocalAuthorityDto":{"type":"object","properties":{"areaOfLawId":{"type":"string","format":"uuid","description":"The ID of the area of law"},"areaOfLawName":{"type":"string","description":"The name of the area of law","readOnly":true},"localAuthorities":{"type":"array","description":"Local authorities mapped to this area of law","items":{"$ref":"#/components/schemas/LocalAuthoritySelectionDto"}}},"required":["areaOfLawId","localAuthorities"]},"CourtOpeningHours":{"type":"object","properties":{"courtId":{"type":"string","format":"uuid","description":"The ID of the associated Court"},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"openingHourType":{"$ref":"#/components/schemas/OpeningHourType"},"openingHourTypeId":{"type":"string","format":"uuid","description":"The ID of the associated Opening Hour Type"},"openingTimesDetails":{"type":"array","items":{"$ref":"#/components/schemas/OpeningTimesDetail"}}},"required":["courtId","openingHourTypeId"]},"CourtOpeningHours_CourtDetailsView":{"type":"object","properties":{"courtId":{"type":"string","format":"uuid","description":"The ID of the associated Court"},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"openingHourType":{"$ref":"#/components/schemas/OpeningHourType_CourtDetailsView"},"openingHourTypeId":{"type":"string","format":"uuid","description":"The ID of the associated Opening Hour Type"},"openingTimesDetails":{"type":"array","items":{"$ref":"#/components/schemas/OpeningTimesDetail_CourtDetailsView"}}},"required":["courtId","openingHourTypeId"]},"CourtPhoto":{"type":"object","properties":{"courtId":{"type":"string","format":"uuid","description":"The ID of the associated Court"},"fileLink":{"type":"string","description":"Link to the image file","minLength":1},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"lastUpdatedAt":{"type":"string","format":"date-time","description":"The last update date/time","readOnly":true},"updatedByUserId":{"type":"string","format":"uuid","description":"The ID of the associated Court"}},"required":["courtId","fileLink","updatedByUserId"]},"CourtPhoto_CourtDetailsView":{"type":"object","properties":{"courtId":{"type":"string","format":"uuid","description":"The ID of the associated Court"},"fileLink":{"type":"string","description":"Link to the image file","minLength":1},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"lastUpdatedAt":{"type":"string","format":"date-time","description":"The last update date/time","readOnly":true},"updatedByUserId":{"type":"string","format":"uuid","description":"The ID of the associated Court"}},"required":["courtId","fileLink","updatedByUserId"]},"CourtProfessionalInformation":{"type":"object","properties":{"accessScheme":{"type":"boolean","description":"Access scheme status"},"commonPlatform":{"type":"boolean","description":"Common platform status"},"courtId":{"type":"string","format":"uuid","description":"The ID of the associated Court"},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"interviewPhoneNumber":{"type":"string","maxLength":20,"minLength":0,"pattern":"^(|(\\+44|)[0-9 ]{10,20})$"},"interviewRoomCount":{"type":"integer","format":"int32","description":"Number of available interview rooms","maximum":150,"minimum":0},"interviewRooms":{"type":"boolean","description":"Interview room availability status"},"videoHearings":{"type":"boolean","description":"Video hearing capability status"}},"required":["accessScheme","commonPlatform","courtId","interviewRooms","videoHearings"]},"CourtProfessionalInformationDetailsDto":{"type":"object","description":"Professional information object to create or update","properties":{"codes":{"$ref":"#/components/schemas/CourtCodesDto","description":"Supplementary court codes for the court"},"dxCodes":{"type":"array","description":"DX codes available for the court","items":{"$ref":"#/components/schemas/CourtDxCodeDto"}},"faxNumbers":{"type":"array","description":"Fax numbers associated with the court","items":{"$ref":"#/components/schemas/CourtFaxDto"}},"professionalInformation":{"$ref":"#/components/schemas/ProfessionalInformationDto","description":"Primary professional information for the court"}},"required":["professionalInformation"]},"CourtProfessionalInformation_CourtDetailsView":{"type":"object","properties":{"accessScheme":{"type":"boolean","description":"Access scheme status"},"commonPlatform":{"type":"boolean","description":"Common platform status"},"courtId":{"type":"string","format":"uuid","description":"The ID of the associated Court"},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"interviewPhoneNumber":{"type":"string","maxLength":20,"minLength":0,"pattern":"^(|(\\+44|)[0-9 ]{10,20})$"},"interviewRoomCount":{"type":"integer","format":"int32","description":"Number of available interview rooms","maximum":150,"minimum":0},"interviewRooms":{"type":"boolean","description":"Interview room availability status"},"videoHearings":{"type":"boolean","description":"Video hearing capability status"}},"required":["accessScheme","commonPlatform","courtId","interviewRooms","videoHearings"]},"CourtTranslation":{"type":"object","description":"Translation object to create or update","properties":{"courtId":{"type":"string","format":"uuid","description":"The ID of the associated Court"},"email":{"type":"string","description":"The email address for Translation services","maxLength":254,"minLength":0,"pattern":"^(|[A-Za-z0-9._+-]+@[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*\\.[A-Za-z]{2,})$"},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"phoneNumber":{"type":"string","description":"The phone number for Translation services","maxLength":20,"minLength":0,"pattern":"^(|(\\+44|)[0-9 ]{10,20})$"}},"required":["courtId"]},"CourtTranslation_CourtDetailsView":{"type":"object","properties":{"courtId":{"type":"string","format":"uuid","description":"The ID of the associated Court"},"email":{"type":"string","description":"The email address for Translation services","maxLength":254,"minLength":0,"pattern":"^(|[A-Za-z0-9._+-]+@[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*\\.[A-Za-z]{2,})$"},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"phoneNumber":{"type":"string","description":"The phone number for Translation services","maxLength":20,"minLength":0,"pattern":"^(|(\\+44|)[0-9 ]{10,20})$"}},"required":["courtId"]},"CourtType":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"name":{"type":"string","description":"The name of the Court Type","minLength":1}},"required":["name"]},"CourtWithDistance":{"type":"object","properties":{"courtId":{"type":"string","format":"uuid"},"courtName":{"type":"string"},"courtSlug":{"type":"string"},"distance":{"type":"number"}}},"ExceptionResponse":{"type":"object","properties":{"message":{"type":"string"},"timestamp":{"type":"string","format":"date-time"}}},"Failure":{"type":"object","properties":{"error":{"type":"string"},"id":{"type":"string","format":"uuid"},"name":{"type":"string"}}},"FavouriteReference":{"type":"object","properties":{"subjectId":{"type":"string","format":"uuid"},"subjectType":{"type":"string","enum":["COURT","SERVICE_CENTRE"]}},"required":["subjectId","subjectType"]},"FavouriteStatus":{"type":"object","properties":{"favourite":{"type":"boolean"},"subjectId":{"type":"string","format":"uuid"},"subjectType":{"type":"string","enum":["COURT","SERVICE_CENTRE"]}}},"FavouriteStatusRequest":{"type":"object","properties":{"subjects":{"type":"array","items":{"$ref":"#/components/schemas/FavouriteReference"},"maxItems":1000,"minItems":0}},"required":["subjects"]},"LocalAuthoritySelectionDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The ID of the Local Authority"},"name":{"type":"string","description":"The name of the Local Authority","readOnly":true},"selected":{"type":"boolean","description":"Whether the Local Authority is selected for the area of law"}},"required":["id","selected"]},"LocalAuthorityType":{"type":"object","properties":{"childCustodianCodes":{"type":"array","description":"Child custodian codes that should map to this parent authority, if any","items":{"type":"integer","format":"int32"}},"custodianCode":{"type":"integer","format":"int32","description":"LOCAL_CUSTODIAN_CODE from Ordnance Survey"},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"name":{"type":"string","description":"The name of the Local Authority Type","minLength":1}},"required":["name"]},"Lock":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"lockAcquired":{"type":"string","format":"date-time","description":"Acquire timestamp for the lock"},"page":{"type":"string","description":"The page being locked","enum":["GENERAL","ADDRESS","ACCESSIBILITY","CASES_HEARD","CONTACT_DETAILS","COUNTER_SERVICE_OPENING_HOURS","OPENING_HOURS","BUILDING_FACILITIES","INFORMATION_FOR_PROFESSIONALS","LOCAL_AUTHORITIES","PHOTO","TRANSLATION_AND_INTERPRETATION","SINGLE_POINT_OF_ENTRY","WARNING_NOTICE"]},"subjectId":{"type":"string","format":"uuid"},"subjectType":{"type":"string","enum":["COURT","SERVICE_CENTRE"]},"user":{"$ref":"#/components/schemas/User"},"userId":{"type":"string","format":"uuid","description":"The ID of the associated User"}},"required":["lockAcquired","page","subjectId","subjectType","userId"]},"MigrationFinding":{"type":"object","properties":{"affectedRecords":{"type":"integer","format":"int32"},"affectedReferences":{"type":"integer","format":"int32"},"courtSlug":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"legacyCourtId":{"type":"integer","format":"int64"},"reasonCode":{"type":"string"},"section":{"type":"string","enum":["REGIONS","AREAS_OF_LAW","SERVICE_AREAS","SERVICES","SERVICE_AREA_LINKS","LOCAL_AUTHORITY_TYPES","CONTACT_DESCRIPTION_TYPES","OPENING_HOUR_TYPES","COURT_TYPES","COURTS","SERVICE_CENTRES","LEGACY_COURT_MAPPINGS","WARNING_NOTICES","COURT_SLUGS","COURT_AREAS_OF_LAW","COURT_SINGLE_POINTS_OF_ENTRY","COURT_LOCAL_AUTHORITIES","COURT_PROFESSIONAL_INFORMATION","COURT_CODES","COURT_DX_CODES","COURT_FAX","ORDINARY_COURT_SERVICE_AREAS","SERVICE_CENTRE_SERVICE_AREAS","SERVICE_CENTRE_AREAS_OF_LAW","SERVICE_CENTRE_DEFERRED_DETAILS","PHOTOS"]},"severity":{"type":"string","enum":["ERROR","REVIEW","INFO"]},"sourceRecordId":{"type":"integer","format":"int32"},"sourceReferenceIds":{"type":"array","items":{"type":"integer","format":"int32"}},"type":{"type":"string","enum":["SKIPPED","UNMAPPED","REJECTED","APPROVED_DISCARD","DEFERRED","TRANSFORMED"]}}},"MigrationFindingCounts":{"type":"object","properties":{"errors":{"type":"integer","format":"int32"},"information":{"type":"integer","format":"int32"},"review":{"type":"integer","format":"int32"}}},"MigrationReconciliationErrorResponse":{"type":"object","properties":{"errorCount":{"type":"integer","format":"int32"},"message":{"type":"string"},"reportId":{"type":"string","format":"uuid"},"timestamp":{"type":"string","format":"date-time"}}},"MigrationReport":{"type":"object","properties":{"completedAt":{"type":"string","format":"date-time"},"findings":{"type":"array","items":{"$ref":"#/components/schemas/MigrationFinding"}},"id":{"type":"string","format":"uuid"},"migrationName":{"type":"string"},"result":{"$ref":"#/components/schemas/MigrationResult"},"source":{"$ref":"#/components/schemas/MigrationSource"},"startedAt":{"type":"string","format":"date-time"},"status":{"type":"string","enum":["IN_PROGRESS","SUCCESS","FAILED"]}}},"MigrationResponse":{"type":"object","properties":{"message":{"type":"string"},"result":{"$ref":"#/components/schemas/MigrationResult"}}},"MigrationResult":{"type":"object","properties":{"courtAreasOfLawMigrated":{"type":"integer","format":"int32"},"courtCodesMigrated":{"type":"integer","format":"int32"},"courtDxCodesMigrated":{"type":"integer","format":"int32"},"courtFaxMigrated":{"type":"integer","format":"int32"},"courtLocalAuthoritiesMigrated":{"type":"integer","format":"int32"},"courtProfessionalInformationMigrated":{"type":"integer","format":"int32"},"courtSinglePointsOfEntryMigrated":{"type":"integer","format":"int32"},"courtSlugsPreserved":{"type":"integer","format":"int32"},"courtsMigrated":{"type":"integer","format":"int32"},"findingCounts":{"$ref":"#/components/schemas/MigrationFindingCounts"},"reconciliationPassed":{"type":"boolean"},"reportId":{"type":"string","format":"uuid"},"reviewRequired":{"type":"boolean"},"sectionCounts":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/MigrationSectionCount"}},"serviceAreaLinksMigrated":{"type":"integer","format":"int32"},"serviceCentreAreasOfLawMigrated":{"type":"integer","format":"int32"},"serviceCentresMigrated":{"type":"integer","format":"int32"},"servicesMigrated":{"type":"integer","format":"int32"},"warningNoticesMigrated":{"type":"integer","format":"int32"}}},"MigrationSectionCount":{"type":"object","properties":{"discardedRecords":{"type":"integer","format":"int32"},"discardedReferences":{"type":"integer","format":"int32"},"persistedRecords":{"type":"integer","format":"int32"},"persistedReferences":{"type":"integer","format":"int32"},"skippedRecords":{"type":"integer","format":"int32"},"sourceRecords":{"type":"integer","format":"int32"},"sourceReferences":{"type":"integer","format":"int32"},"transformedRecords":{"type":"integer","format":"int32"},"unmappedReferences":{"type":"integer","format":"int32"}}},"MigrationSource":{"type":"object","properties":{"baseUrl":{"type":"string"},"fetchedAt":{"type":"string","format":"date-time"},"payloadSha256":{"type":"string"}}},"NameAndId":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}}},"OpeningHourType":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"name":{"type":"string","description":"The name","minLength":1},"nameCy":{"type":"string","description":"The Welsh language name","minLength":1}},"required":["name","nameCy"]},"OpeningHourType_CourtDetailsView":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"name":{"type":"string","description":"The name","minLength":1},"nameCy":{"type":"string","description":"The Welsh language name","minLength":1}},"required":["name","nameCy"]},"OpeningTimesDetail":{"type":"object","properties":{"closingTime":{"type":"string","description":"Closing time"},"dayOfWeek":{"type":"string","description":"Day of the week or every day.","enum":["MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY","SUNDAY","EVERYDAY"]},"openingTime":{"type":"string","description":"Opening time"}},"required":["closingTime","dayOfWeek","openingTime"]},"OpeningTimesDetail_CourtDetailsView":{"type":"object","properties":{"closingTime":{"type":"string","description":"Closing time"},"dayOfWeek":{"type":"string","description":"Day of the week or every day.","enum":["MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY","SUNDAY","EVERYDAY"]},"openingTime":{"type":"string","description":"Opening time"}},"required":["closingTime","dayOfWeek","openingTime"]},"OsData":{"type":"object","properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/OsResult"}}}},"OsDpa":{"type":"object","properties":{"ADDRESS":{"type":"string"},"BUILDING_NAME":{"type":"string"},"BUILDING_NUMBER":{"type":"string"},"LAT":{"type":"number","format":"double"},"LNG":{"type":"number","format":"double"},"LOCAL_CUSTODIAN_CODE":{"type":"integer","format":"int32"},"LOCAL_CUSTODIAN_CODE_DESCRIPTION":{"type":"string"},"ORGANISATION_NAME":{"type":"string"},"POSTCODE":{"type":"string"},"POST_TOWN":{"type":"string"},"THOROUGHFARE_NAME":{"type":"string"},"UDPRN":{"type":"string"},"UPRN":{"type":"string"}}},"OsResult":{"type":"object","properties":{"DPA":{"$ref":"#/components/schemas/OsDpa"}}},"PageMetadata":{"type":"object","properties":{"number":{"type":"integer","format":"int64"},"size":{"type":"integer","format":"int64"},"totalElements":{"type":"integer","format":"int64"},"totalPages":{"type":"integer","format":"int64"}}},"PagedModelAllLocation":{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/AllLocation"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"PagedModelAudit":{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/Audit"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"PagedModelUser":{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/User"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"PhotoMigrationResponse":{"type":"object","properties":{"failedFiles":{"type":"array","items":{"$ref":"#/components/schemas/Failure"}},"message":{"type":"string"}}},"ProfessionalInformationDto":{"type":"object","properties":{"accessScheme":{"type":"boolean","description":"Access scheme status"},"commonPlatform":{"type":"boolean","description":"Common platform status"},"interviewPhoneNumber":{"type":"string","description":"The phone number for interview room enquiries","maxLength":20,"minLength":0,"pattern":"^(|(\\+44|)[0-9 ]{10,20})$"},"interviewRoomCount":{"type":"integer","format":"int32","description":"Number of available interview rooms"},"interviewRoomCountConsistent":{"type":"boolean"},"interviewRooms":{"type":"boolean","description":"Interview room availability status"},"videoHearings":{"type":"boolean","description":"Video hearing capability status"}},"required":["accessScheme","commonPlatform","interviewRooms","videoHearings"]},"Region":{"type":"object","properties":{"country":{"type":"string","description":"The Region's country","maxLength":250,"minLength":5},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"name":{"type":"string","description":"The name of the Region","maxLength":250,"minLength":5}},"required":["name"]},"Region_CourtDetailsView":{"type":"object","properties":{"country":{"type":"string","description":"The Region's country","maxLength":250,"minLength":5},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"name":{"type":"string","description":"The name of the Region","maxLength":250,"minLength":5}},"required":["name"]},"SearchResult":{"type":"object","properties":{"distance":{"type":"number"},"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"},"type":{"type":"string","enum":["COURT","SERVICE_CENTRE"]}}},"Service":{"type":"object","properties":{"description":{"type":"string","description":"The description"},"descriptionCy":{"type":"string","description":"The Welsh language description"},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"name":{"type":"string","description":"The name","minLength":1},"nameCy":{"type":"string","description":"The Welsh language name","minLength":1},"serviceAreas":{"type":"array","description":"The Service Area IDs","items":{"type":"string","format":"uuid"}},"sortOrder":{"type":"integer","format":"int32","description":"Sort order priority"}},"required":["name","nameCy"]},"ServiceArea":{"type":"object","properties":{"areaOfLawId":{"type":"string","format":"uuid","description":"The ID of the associated Area of Law"},"catchmentMethod":{"type":"string","description":"The catchment method","enum":["POSTCODE","PROXIMITY","LOCAL_AUTHORITY"]},"description":{"type":"string","description":"The description"},"descriptionCy":{"type":"string","description":"The Welsh language description"},"hasLocal":{"type":"boolean","description":"Has associated court with LOCAL catchment"},"hasNational":{"type":"boolean","description":"Has associated court with NATIONAL catchment"},"hasRegional":{"type":"boolean","description":"Has associated court with REGIONAL catchment"},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"name":{"type":"string","description":"The name","minLength":1},"nameCy":{"type":"string","description":"The Welsh language name","minLength":1},"onlineText":{"type":"string","description":"The short description for the online URL"},"onlineTextCy":{"type":"string","description":"The Welsh language short description for the online URL"},"onlineUrl":{"type":"string","description":"The online URL"},"sortOrder":{"type":"integer","format":"int32","description":"Sort order priority"},"text":{"type":"string","description":"The description for the online URL"},"textCy":{"type":"string","description":"The Welsh language description for the online URL"},"type":{"type":"string","description":"The service area type","enum":["CIVIL","FAMILY","OTHER"]}},"required":["areaOfLawId","name","nameCy"]},"ServiceAreaSearchResult":{"type":"object","properties":{"catchmentType":{"type":"string","enum":["LOCAL","NATIONAL","REGIONAL"]},"id":{"type":"string","format":"uuid"},"serviceAreaIds":{"type":"array","items":{"type":"string","format":"uuid"}},"serviceCentreId":{"type":"string","format":"uuid"},"serviceCentreName":{"type":"string"},"serviceCentreSlug":{"type":"string"},"type":{"type":"string","enum":["COURT","SERVICE_CENTRE"]}}},"ServiceCentre":{"type":"object","properties":{"catchmentType":{"type":"string","description":"The catchment type","enum":["LOCAL","NATIONAL","REGIONAL"]},"createdAt":{"type":"string","format":"date-time","description":"The created date/time of the Service Centre record","readOnly":true},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"lastUpdatedAt":{"type":"string","format":"date-time","description":"The last updated date/time of the Service Centre record","readOnly":true},"name":{"type":"string","description":"The name of the Service Centre","maxLength":200,"minLength":5,"pattern":"^[A-Za-z&'()\\- ]+$"},"open":{"type":"boolean","description":"The open status of the Service Centre"},"regionId":{"type":"string","format":"uuid","description":"The ID of the associated Region"},"serviceAreaIds":{"type":"array","description":"The list of associated Service Area IDs","items":{"type":"string","format":"uuid"}},"slug":{"type":"string","description":"The Service Centre 'slug'"},"warningNotice":{"type":"string","description":"Any warning notices attached to the Service Centre","maxLength":500,"minLength":0,"pattern":"^[A-Za-z0-9.,!?:;'\"()\\-/&@+\\s]+$"},"warningNoticeCy":{"type":"string","description":"Any Welsh warning notices attached to the Service Centre","maxLength":500,"minLength":0,"pattern":"^[\\p{L}0-9.,!?:;'\"()\\-/&@+\\s]+$"}},"required":["name","open"]},"ServiceCentreAddress":{"type":"object","description":"Address to create","properties":{"addressLine1":{"type":"string","description":"The first address line","maxLength":255,"minLength":0,"pattern":"^(|[A-Za-z0-9 ()':,.-]+$)$"},"addressLine2":{"type":"string","description":"The second address line","maxLength":255,"minLength":0,"pattern":"^(|[A-Za-z0-9 ()':,.-]+$)$"},"addressType":{"type":"string","description":"The address type","enum":["VISIT_US","WRITE_TO_US","VISIT_OR_CONTACT_US"]},"county":{"type":"string","description":"The county","maxLength":100,"minLength":0,"pattern":"^(|[A-Za-z0-9 ()':,.-]+$)$"},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"lat":{"type":"number","description":"The latitude coordinate"},"lon":{"type":"number","description":"The longitude coordinate"},"postcode":{"type":"string","description":"The postcode"},"serviceCentreId":{"type":"string","format":"uuid","description":"The ID of the associated Service Centre"},"townCity":{"type":"string","description":"The town/city","maxLength":100,"minLength":0,"pattern":"^(|[A-Za-z0-9 ()':,.-]+$)$"}},"required":["serviceCentreId"]},"ServiceCentreAddress_ServiceCentreDetailsView":{"type":"object","properties":{"addressLine1":{"type":"string","description":"The first address line","maxLength":255,"minLength":0,"pattern":"^(|[A-Za-z0-9 ()':,.-]+$)$"},"addressLine2":{"type":"string","description":"The second address line","maxLength":255,"minLength":0,"pattern":"^(|[A-Za-z0-9 ()':,.-]+$)$"},"addressType":{"type":"string","description":"The address type","enum":["VISIT_US","WRITE_TO_US","VISIT_OR_CONTACT_US"]},"county":{"type":"string","description":"The county","maxLength":100,"minLength":0,"pattern":"^(|[A-Za-z0-9 ()':,.-]+$)$"},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"lat":{"type":"number","description":"The latitude coordinate"},"lon":{"type":"number","description":"The longitude coordinate"},"postcode":{"type":"string","description":"The postcode"},"serviceCentreId":{"type":"string","format":"uuid","description":"The ID of the associated Service Centre"},"townCity":{"type":"string","description":"The town/city","maxLength":100,"minLength":0,"pattern":"^(|[A-Za-z0-9 ()':,.-]+$)$"}},"required":["serviceCentreId"]},"ServiceCentreAreasOfLaw":{"type":"object","description":"AreasOfLaw object to create or update","properties":{"areasOfLaw":{"type":"array","items":{}},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"serviceCentreId":{"type":"string","format":"uuid","description":"The ID of the associated Service Centre"}},"required":["serviceCentreId"]},"ServiceCentreAreasOfLaw_ServiceCentreDetailsView":{"type":"object","properties":{"areasOfLaw":{"type":"array","items":{}},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"serviceCentreId":{"type":"string","format":"uuid","description":"The ID of the associated Service Centre"}},"required":["serviceCentreId"]},"ServiceCentreContactDetails":{"type":"object","description":"Contact detail to create","properties":{"email":{"type":"string","description":"The associated email address","maxLength":254,"minLength":0,"pattern":"^(|[A-Za-z0-9._+-]+@[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*\\.[A-Za-z]{2,})$"},"explanation":{"type":"string","description":"The explanation","maxLength":250,"minLength":0,"pattern":"^[A-Za-z0-9 '\\-()&+]*$"},"explanationCy":{"type":"string","description":"The Welsh language explanation","maxLength":250,"minLength":0,"pattern":"^[\\p{L}0-9 '\\-()&+]*$"},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"phoneNumber":{"type":"string","description":"The associated phone number","maxLength":20,"minLength":0,"pattern":"^(|(\\+44|)[0-9 ]{10,20})$"},"serviceCentreContactDescription":{"$ref":"#/components/schemas/ContactDescriptionType"},"serviceCentreContactDescriptionId":{"type":"string","format":"uuid","description":"The ID of the associated Contact Description Type","writeOnly":true},"serviceCentreId":{"type":"string","format":"uuid","description":"The ID of the associated Service Centre"}},"required":["serviceCentreId"]},"ServiceCentreContactDetails_ServiceCentreDetailsView":{"type":"object","properties":{"email":{"type":"string","description":"The associated email address","maxLength":254,"minLength":0,"pattern":"^(|[A-Za-z0-9._+-]+@[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*\\.[A-Za-z]{2,})$"},"explanation":{"type":"string","description":"The explanation","maxLength":250,"minLength":0,"pattern":"^[A-Za-z0-9 '\\-()&+]*$"},"explanationCy":{"type":"string","description":"The Welsh language explanation","maxLength":250,"minLength":0,"pattern":"^[\\p{L}0-9 '\\-()&+]*$"},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"phoneNumber":{"type":"string","description":"The associated phone number","maxLength":20,"minLength":0,"pattern":"^(|(\\+44|)[0-9 ]{10,20})$"},"serviceCentreContactDescription":{"$ref":"#/components/schemas/ContactDescriptionType_ServiceCentreDetailsView"},"serviceCentreContactDescriptionId":{"type":"string","format":"uuid","description":"The ID of the associated Contact Description Type","writeOnly":true},"serviceCentreId":{"type":"string","format":"uuid","description":"The ID of the associated Service Centre"}},"required":["serviceCentreId"]},"ServiceCentreDetails":{"type":"object","properties":{"catchmentType":{"type":"string","description":"The catchment type","enum":["LOCAL","NATIONAL","REGIONAL"]},"createdAt":{"type":"string","format":"date-time","description":"The created date/time of the Service Centre record","readOnly":true},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"lastUpdatedAt":{"type":"string","format":"date-time","description":"The last updated date/time of the Service Centre record","readOnly":true},"name":{"type":"string","description":"The name of the Service Centre","maxLength":200,"minLength":5,"pattern":"^[A-Za-z&'()\\- ]+$"},"open":{"type":"boolean","description":"The open status of the Service Centre"},"regionId":{"type":"string","format":"uuid","description":"The ID of the associated Region"},"serviceAreas":{"type":"array","items":{}},"serviceCentreAddresses":{"type":"array","description":"The Addresses for the Service Centre","items":{"$ref":"#/components/schemas/ServiceCentreAddress"}},"serviceCentreAreasOfLaw":{"type":"array","description":"The Areas of Law for the Service Centre","items":{"$ref":"#/components/schemas/ServiceCentreAreasOfLaw"}},"serviceCentreContactDetails":{"type":"array","description":"The Contact Details for the Service Centre","items":{"$ref":"#/components/schemas/ServiceCentreContactDetails"}},"slug":{"type":"string","description":"The Service Centre 'slug'"},"warningNotice":{"type":"string","description":"Any warning notices attached to the Service Centre","maxLength":500,"minLength":0,"pattern":"^[A-Za-z0-9.,!?:;'\"()\\-/&@+\\s]+$"},"warningNoticeCy":{"type":"string","description":"Any Welsh warning notices attached to the Service Centre","maxLength":500,"minLength":0,"pattern":"^[\\p{L}0-9.,!?:;'\"()\\-/&@+\\s]+$"}},"required":["name"]},"ServiceCentreDetails_ServiceCentreDetailsView":{"type":"object","properties":{"catchmentType":{"type":"string","description":"The catchment type","enum":["LOCAL","NATIONAL","REGIONAL"]},"createdAt":{"type":"string","format":"date-time","description":"The created date/time of the Service Centre record","readOnly":true},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"lastUpdatedAt":{"type":"string","format":"date-time","description":"The last updated date/time of the Service Centre record","readOnly":true},"name":{"type":"string","description":"The name of the Service Centre","maxLength":200,"minLength":5,"pattern":"^[A-Za-z&'()\\- ]+$"},"open":{"type":"boolean","description":"The open status of the Service Centre"},"regionId":{"type":"string","format":"uuid","description":"The ID of the associated Region"},"serviceAreas":{"type":"array","items":{}},"serviceCentreAddresses":{"type":"array","description":"The Addresses for the Service Centre","items":{"$ref":"#/components/schemas/ServiceCentreAddress_ServiceCentreDetailsView"}},"serviceCentreAreasOfLaw":{"type":"array","description":"The Areas of Law for the Service Centre","items":{"$ref":"#/components/schemas/ServiceCentreAreasOfLaw_ServiceCentreDetailsView"}},"serviceCentreContactDetails":{"type":"array","description":"The Contact Details for the Service Centre","items":{"$ref":"#/components/schemas/ServiceCentreContactDetails_ServiceCentreDetailsView"}},"slug":{"type":"string","description":"The Service Centre 'slug'"},"warningNotice":{"type":"string","description":"Any warning notices attached to the Service Centre","maxLength":500,"minLength":0,"pattern":"^[A-Za-z0-9.,!?:;'\"()\\-/&@+\\s]+$"},"warningNoticeCy":{"type":"string","description":"Any Welsh warning notices attached to the Service Centre","maxLength":500,"minLength":0,"pattern":"^[\\p{L}0-9.,!?:;'\"()\\-/&@+\\s]+$"}},"required":["name"]},"User":{"type":"object","properties":{"email":{"type":"string","description":"The User's email address","maxLength":254,"minLength":0,"pattern":"^(|[A-Za-z0-9._+-]+@(devl\\.)?justice\\.gov\\.uk)$"},"id":{"type":"string","format":"uuid","description":"The internal ID - assigned by the server during creation","readOnly":true},"lastLogin":{"type":"string","format":"date-time","description":"The User's last login date/time"},"role":{"type":"string","description":"The User's role","enum":["Admin","SuperAdmin","Viewer"]},"ssoId":{"type":"string","format":"uuid","description":"The User's SSO ID"}},"required":["email","role","ssoId"]}},"securitySchemes":{"bearerAuth":{"bearerFormat":"JWT","name":"bearerAuth","scheme":"bearer","type":"http"}}}}
