{"openapi":"3.0.0","info":{"title":"Accolade API","version":"1.08.0"},"servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/Skilltech/accolade-api/1.08.0"},{"url":"https://{environment}{customer}.accoladeapp.co.uk","variables":{"environment":{"enum":["","uat"],"default":""},"customer":{"default":""}}}],"paths":{"/api/v1/centres":{"get":{"tags":["Centres"],"description":"list Centres","operationId":"51dbb7edbddaa6e58e752ea418a31177","parameters":[{"name":"filters[is_active]","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"filters[status]","in":"query","required":false,"schema":{"type":"string"}},{"name":"filters[type]","in":"query","required":false,"schema":{"type":"string"}},{"name":"filters[finance_status]","in":"query","required":false,"schema":{"type":"string"}},{"name":"filters[renewal_status]","in":"query","required":false,"schema":{"type":"string"}},{"name":"filters[risk_rating]","in":"query","required":false,"schema":{"type":"string"}},{"name":"filters[search]","in":"query","schema":{"type":"string"}},{"name":"filters[perPage]","in":"query","schema":{"type":"integer","default":15,"maximum":50,"minimum":1}},{"name":"page","in":"query","schema":{"type":"integer","default":1}}],"responses":{"200":{"description":"List of Centres","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CentreSummaryResource"}}}}}}}},"/api/v1/centres/{centre}":{"get":{"tags":["Centres"],"description":"View Centre","operationId":"8e53bc3e15783c8ebe976e2bfc3853b5","parameters":[{"name":"centre","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Centre resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CentreResource"}}}}}}},"/api/v1/centres/{centre}/sites":{"get":{"tags":["Sites"],"description":"list Sites","operationId":"e806d34aac3b9dbf2940292cf1d80d69","parameters":[{"name":"centre","in":"path","required":true,"schema":{"type":"string"}},{"name":"filters[search]","in":"query","schema":{"type":"string"}},{"name":"filters[perPage]","in":"query","schema":{"type":"integer","default":15,"maximum":50,"minimum":1}},{"name":"page","in":"query","schema":{"type":"integer","default":1}}],"responses":{"200":{"description":"List of sites","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SiteSummaryResource"}}}}}}}},"/api/v1/centres/{centre}/sites/{site}":{"get":{"tags":["Sites"],"description":"View Site","operationId":"ebfa4b7bea661b997ddd2ec5932a9f79","parameters":[{"name":"centre","in":"path","required":true,"schema":{"type":"string"}},{"name":"site","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Site resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteResource"}}}}}}},"/api/v1/cohorts":{"get":{"tags":["Cohorts"],"description":"list Cohorts","operationId":"fd8c6ae19480ea78f95a3ccfeffc894f","parameters":[{"name":"filters[centre_id]","in":"query","required":false,"schema":{"type":"string"}},{"name":"filters[qualification_version_id]","in":"query","required":false,"schema":{"type":"string"}},{"name":"filters[unit_version]","in":"query","required":false,"schema":{"type":"string"}},{"name":"filters[purchase_order_number]","in":"query","required":false,"schema":{"type":"string"}},{"name":"filters[registration_date]","in":"query","required":false,"schema":{"type":"string","format":"d/m/Y"}},{"name":"filters[expected_achievement_date]","in":"query","required":false,"schema":{"type":"string","format":"d/m/Y"}},{"name":"filters[search]","in":"query","schema":{"type":"string"}},{"name":"filters[perPage]","in":"query","schema":{"type":"integer","default":10,"maximum":50,"minimum":1}},{"name":"page","in":"query","schema":{"type":"integer","default":1}}],"responses":{"200":{"description":"List of Cohorts","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CohortSummaryResource"}}}}}}}},"/api/v1/cohorts/{cohort}":{"get":{"tags":["Cohorts"],"description":"View Cohort","operationId":"71c17f5769419c547105a8b9dc9f0774","parameters":[{"name":"cohort","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Cohort resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CohortResource"}}}}}}},"/api/v1/cohorts/{cohort}/registrations":{"get":{"tags":["Registrations"],"description":"List cohort registrations","operationId":"e70f92b05d976a5047c6c6b44cd69ad2","parameters":[{"name":"cohort","in":"path","required":true,"schema":{"type":"string"}},{"name":"filters[search]","in":"query","schema":{"type":"string"}},{"name":"filters[perPage]","in":"query","schema":{"type":"integer","default":15,"maximum":50,"minimum":1}},{"name":"page","in":"query","schema":{"type":"integer","default":1}}],"responses":{"200":{"description":"List of cohort registrations","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RegistrationResource"}}}}}}}},"/api/v1/learners":{"get":{"tags":["Learners"],"description":"List learners","operationId":"2359c85834a09ed74edd3176d0c05d0f","parameters":[{"name":"filters[centre_id]","in":"query","required":false,"schema":{"type":"string"}},{"name":"filters[gender]","in":"query","required":false,"schema":{"type":"string"}},{"name":"filters[ethnicity]","in":"query","required":false,"schema":{"type":"string"}},{"name":"filters[country]","in":"query","required":false,"schema":{"type":"string"}},{"name":"filters[cohort_id]","in":"query","required":false,"schema":{"type":"string"}},{"name":"filters[search]","in":"query","required":false,"schema":{"type":"string"}},{"name":"filters[perPage]","in":"query","required":false,"schema":{"type":"integer","default":10,"maximum":50,"minimum":1}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1}}],"responses":{"200":{"description":"List of learners","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LearnerSummaryResource"}}}}}}}},"/api/v1/learners/{learner}":{"get":{"tags":["Learners"],"summary":"View Learner","operationId":"c47c0dbe62d38d4cbbcf01d53e433f3d","parameters":[{"name":"learner","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Learner resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LearnerResource"}}}}}}},"/api/v1/learners/{learner}/reasonable-adjustments":{"get":{"tags":["Reasonable Adjustments"],"description":"list Reasonable Adjustments","operationId":"1061e7fcc13f938a6d3cbcfc575c617b","parameters":[{"name":"learner","in":"path","required":true,"schema":{"type":"string"}},{"name":"filters[perPage]","in":"query","schema":{"type":"integer","default":15,"maximum":50,"minimum":1}},{"name":"page","in":"query","schema":{"type":"integer","default":1}}],"responses":{"200":{"description":"List of Reasonable Adjustments","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ReasonableAdjustmentResource"}}}}}}}},"/api/v1/learners/{learner}/reasonable-adjustments/{reasonableAdjustment}":{"get":{"tags":["Reasonable Adjustments"],"description":"View Reasonable Adjustment","operationId":"d948b1c18625ae2ad4f1550c8030386e","parameters":[{"name":"learner","in":"path","required":true,"schema":{"type":"string"}},{"name":"reasonableAdjustment","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Reasonable adjustment resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReasonableAdjustmentResource"}}}}}}},"/api/v1/learners/{learner}/registrations":{"get":{"tags":["Registrations"],"description":"list Registrations","operationId":"7f1985110e9af223a9874f97fa05e21d","parameters":[{"name":"learner","in":"path","required":true,"schema":{"type":"string"}},{"name":"filters[search]","in":"query","schema":{"type":"string"}},{"name":"filters[perPage]","in":"query","schema":{"type":"integer","default":15,"maximum":50,"minimum":1}},{"name":"page","in":"query","schema":{"type":"integer","default":1}}],"responses":{"200":{"description":"List of Registrations","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RegistrationResource"}}}}}}}},"/api/v1/learners/{learner}/registrations/{registration}":{"get":{"tags":["Registrations"],"description":"View Registration","operationId":"56252a9201185cae6587cf0ccc1a4b58","parameters":[{"name":"learner","in":"path","required":true,"schema":{"type":"string"}},{"name":"registration","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Registration resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistrationResource"}}}}}}}},"components":{"schemas":{"LearnerAddressResource":{"properties":{"type":{"type":"string","nullable":false,"default":"LearnerAddress"},"data":{"properties":{"id":{"type":"string","nullable":false},"line1":{"type":"string","nullable":false},"line2":{"type":"string","nullable":false},"line3":{"type":"string","nullable":false},"city":{"type":"string","nullable":false},"county":{"type":"string","nullable":false},"postcode":{"type":"string","nullable":false}},"type":"object"}},"type":"object"},"CentreResource":{"properties":{"type":{"type":"string","nullable":false,"default":"Centre"},"data":{"properties":{"id":{"type":"string","nullable":false},"name":{"type":"string","nullable":false},"reference":{"type":"string","nullable":false},"ukprn":{"type":"string","nullable":false},"ncn":{"type":"string","nullable":false},"has_credit_limit":{"type":"boolean","nullable":false},"credit_limit":{"type":"integer","nullable":false},"credit_overdraft":{"type":"integer","nullable":false},"renewal_date":{"type":"string","nullable":false},"renewal_status":{"type":"string","nullable":false},"status":{"$ref":"#/components/schemas/CentreStatusResource"},"finance_status":{"type":"string","nullable":false},"risk_rating":{"type":"string","nullable":false},"type":{"type":"string","nullable":false},"default_assessment_language":{"type":"string","nullable":false},"first_approval_date":{"type":"string","nullable":false},"is_active":{"type":"boolean","nullable":false},"created_at":{"$ref":"#/components/schemas/DateTimeResource"},"updated_at":{"$ref":"#/components/schemas/DateTimeResource"}},"type":"object"}},"type":"object"},"CentreStatusResource":{"properties":{"type":{"type":"string","nullable":false,"default":"CentreStatus"},"data":{"properties":{"id":{"type":"string","nullable":false},"name":{"type":"string","nullable":false}},"type":"object"}},"type":"object"},"CentreSummaryResource":{"properties":{"type":{"type":"string","nullable":false,"default":"CentreSummary"},"data":{"properties":{"id":{"type":"string","nullable":false},"name":{"type":"string","nullable":false},"reference":{"type":"string","nullable":false},"links":{"type":"object","nullable":false}},"type":"object"}},"type":"object"},"CohortResource":{"properties":{"type":{"type":"string","nullable":false,"default":"Cohort"},"data":{"properties":{"id":{"type":"string","nullable":false},"external_id":{"type":"string","nullable":false},"ao_reference":{"type":"string","nullable":false},"centre_reference":{"type":"string","nullable":false},"registration_date":{"type":"string","nullable":false},"expected_achievement_date":{"type":"string","nullable":false},"purchase_order":{"type":"string","nullable":false},"centre":{"$ref":"#/components/schemas/CentreSummaryResource"},"site":{"$ref":"#/components/schemas/SiteSummaryResource"},"qualification_version":{"$ref":"#/components/schemas/QualificationVersionSummaryResource"},"unit_version":{"$ref":"#/components/schemas/UnitVersionSummaryResource"},"created_at":{"$ref":"#/components/schemas/DateTimeResource"},"updated_at":{"$ref":"#/components/schemas/DateTimeResource"}},"type":"object"}},"type":"object"},"CohortSummaryResource":{"properties":{"type":{"type":"string","nullable":false,"default":"CohortSummary"},"data":{"properties":{"id":{"type":"string","nullable":false},"external_id":{"type":"string","nullable":false},"ao_reference":{"type":"string","nullable":false},"centre_reference":{"type":"string","nullable":false},"links":{"type":"object","nullable":false}},"type":"object"}},"type":"object"},"DateTimeResource":{"properties":{"type":{"type":"string","nullable":false,"default":"DateTime"},"data":{"properties":{"iso":{"type":"string","format":"YYYY-MM-DD THH:mm:ss","nullable":false},"timezone":{"type":"string","nullable":false}},"type":"object"}},"type":"object"},"CountryResource":{"properties":{"type":{"type":"string","nullable":false,"default":"Country"},"data":{"properties":{"id":{"type":"string","nullable":false},"name":{"type":"string","nullable":false}},"type":"object"}},"type":"object"},"EthnicityResource":{"properties":{"type":{"type":"string","nullable":false,"default":"Ethnicity"},"data":{"properties":{"id":{"type":"string","nullable":false},"name":{"type":"string","nullable":false}},"type":"object"}},"type":"object"},"GenderResource":{"properties":{"type":{"type":"string","nullable":false,"default":"Gender"},"data":{"properties":{"id":{"type":"string","nullable":false},"name":{"type":"string","nullable":false}},"type":"object"}},"type":"object"},"LearnerResource":{"properties":{"type":{"type":"string","nullable":false,"default":"Learner"},"data":{"properties":{"id":{"type":"string","nullable":false},"external_id":{"type":"string","nullable":false},"ao_reference":{"type":"string","nullable":false},"centre_reference":{"type":"string","nullable":false},"uln":{"type":"string","nullable":false},"ni_number":{"type":"string","nullable":false},"scn":{"type":"string","nullable":false},"forename":{"type":"string","nullable":false},"middle_names":{"type":"string","nullable":false},"surname":{"type":"string","nullable":false},"post_nomicals":{"type":"string","nullable":false},"preferred_name":{"type":"string","nullable":false},"pronunciation":{"type":"string","nullable":false},"email":{"type":"string","nullable":false},"phone_number":{"type":"string","nullable":false},"phone_country":{"$ref":"#/components/schemas/CountryResource"},"ext":{"type":"string","nullable":false},"date_of_birth":{"type":"string","nullable":false},"place_of_birth":{"type":"string","nullable":true},"registration_window_end_date":{"type":"string","nullable":false},"gender":{"$ref":"#/components/schemas/GenderResource"},"pronoun":{"$ref":"#/components/schemas/PronounResource"},"title":{"$ref":"#/components/schemas/TitleResource"},"ethnicity":{"$ref":"#/components/schemas/EthnicityResource"},"address":{"$ref":"#/components/schemas/LearnerAddressResource"},"centre":{"$ref":"#/components/schemas/CentreSummaryResource"},"created_at":{"$ref":"#/components/schemas/DateTimeResource"},"updated_at":{"$ref":"#/components/schemas/DateTimeResource"}},"type":"object"}},"type":"object"},"LearnerSummaryResource":{"properties":{"type":{"type":"string","nullable":false,"default":"LearnerSummary"},"data":{"properties":{"id":{"type":"string","nullable":false},"first_name":{"type":"string","nullable":false},"middle_names":{"type":"string","nullable":false},"surname":{"type":"string","nullable":false},"ao_reference":{"type":"string","nullable":false},"centre_reference":{"type":"string","nullable":false},"links":{"type":"object","nullable":false}},"type":"object"}},"type":"object"},"PronounResource":{"properties":{"type":{"type":"string","nullable":false,"default":"Pronouns"},"data":{"properties":{"id":{"type":"string","nullable":false},"name":{"type":"string","nullable":false}},"type":"object"}},"type":"object"},"TitleResource":{"properties":{"type":{"type":"string","nullable":false,"default":"Title"},"data":{"properties":{"id":{"type":"string","nullable":false},"name":{"type":"string","nullable":false}},"type":"object"}},"type":"object"},"PathwaySummaryResource":{"properties":{"type":{"type":"string","nullable":false,"default":"PathwaySummary"},"data":{"properties":{"id":{"type":"string","nullable":false},"name":{"type":"string","nullable":false},"reference":{"type":"string","nullable":false}},"type":"object"}},"type":"object"},"QualificationVersionSummaryResource":{"properties":{"type":{"type":"string","nullable":false,"default":"QualificationVersionSummary"},"data":{"properties":{"id":{"type":"string","nullable":false},"name":{"type":"string","nullable":false},"reference":{"type":"string","nullable":false}},"type":"object"}},"type":"object"},"ReasonableAdjustementArrangementTypeResource":{"properties":{"type":{"type":"string","nullable":false,"default":"Cohort"},"data":{"properties":{"id":{"type":"string","nullable":false},"name":{"type":"string","nullable":false}},"type":"object"}},"type":"object"},"ReasonableAdjustementStatusResource":{"properties":{"type":{"type":"string","nullable":false,"default":"ReasonableAdjustmentStatus"},"data":{"properties":{"id":{"type":"string","nullable":false},"name":{"type":"string","nullable":false}},"type":"object"}},"type":"object"},"ReasonableAdjustmentNatureOfArrangementResource":{"properties":{"id":{"type":"string","nullable":false},"name":{"type":"string","nullable":false}},"type":"object"},"ReasonableAdjustmentResource":{"properties":{"id":{"type":"string","nullable":false},"learner":{"$ref":"#/components/schemas/LearnerSummaryResource"},"nature_of_arrangement":{"$ref":"#/components/schemas/ReasonableAdjustmentNatureOfArrangementResource"},"arrangement_type":{"$ref":"#/components/schemas/ReasonableAdjustementArrangementTypeResource"},"type_info":{"type":"string","nullable":false},"status":{"$ref":"#/components/schemas/ReasonableAdjustementStatusResource"},"created_at":{"$ref":"#/components/schemas/DateTimeResource"},"updated_at":{"$ref":"#/components/schemas/DateTimeResource"}},"type":"object"},"RegistrationResource":{"properties":{"type":{"type":"string","nullable":false,"default":"Registration"},"data":{"properties":{"id":{"type":"string","nullable":false},"learner":{"$ref":"#/components/schemas/LearnerSummaryResource"},"cohort":{"$ref":"#/components/schemas/CohortSummaryResource"},"pathway":{"$ref":"#/components/schemas/PathwaySummaryResource"},"created_at":{"$ref":"#/components/schemas/DateTimeResource"},"updated_at":{"$ref":"#/components/schemas/DateTimeResource"}},"type":"object"}},"type":"object"},"SiteResource":{"properties":{"type":{"type":"string","nullable":false,"default":"Site"},"data":{"properties":{"id":{"type":"string","nullable":false},"name":{"type":"string","nullable":false},"reference":{"type":"string","nullable":false},"default_assessment_language":{"type":"string","nullable":false},"centre":{"$ref":"#/components/schemas/CentreSummaryResource"},"created_at":{"$ref":"#/components/schemas/DateTimeResource"},"updated_at":{"$ref":"#/components/schemas/DateTimeResource"}},"type":"object"}},"type":"object"},"SiteSummaryResource":{"properties":{"type":{"type":"string","nullable":false,"default":"SiteSummary"},"data":{"properties":{"id":{"type":"string","nullable":false},"name":{"type":"string","nullable":false},"reference":{"type":"string","nullable":false},"links":{"type":"object","nullable":false}},"type":"object"}},"type":"object"},"UnitVersionSummaryResource":{"properties":{"type":{"type":"string","nullable":false,"default":"UnitVersionSummary"},"data":{"properties":{"id":{"type":"string","nullable":false},"name":{"type":"string","nullable":false},"reference":{"type":"string","nullable":false}},"type":"object"}},"type":"object"}},"securitySchemes":{"ApiKey":{"type":"apiKey","description":"Your access token can be generated via the Integrations screen when logged into Accolade.","name":"Access-Token","in":"header"}}},"security":[{"ApiKey":[]}],"tags":[{"name":"Centres","description":"Centres"},{"name":"Sites","description":"Sites"},{"name":"Cohorts","description":"Cohorts"},{"name":"Registrations","description":"Registrations"},{"name":"Learners","description":"Learners"},{"name":"Reasonable Adjustments","description":"Reasonable Adjustments"}]}