{"openapi":"3.0.0","info":{"title":"API","description":"Requests are rate limited to 300/min","version":"5.48.0"},"paths":{"/api/v1":{},"/apprentice":{"get":{"tags":["apprentice"],"summary":"list apprentices","description":"Returns a collection of apprentices.","operationId":"80a4cd0dc8e90ed2631d5639f7c31b7a","parameters":[{"name":"limit","in":"query","description":"the maximum number of apprentices to return per page","required":false,"schema":{"type":"integer"}},{"name":"page","in":"query","description":"the number of apprentices to retrieve","required":false,"schema":{"type":"integer"}},{"name":"provider_id","in":"query","description":"the system id of a provider","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApprenticeTransformer"}}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Apprentice not found"}},"security":[{"api_key":[]}]},"post":{"tags":["apprentice"],"summary":"create a new apprentice.","description":"create a new apprentice.","operationId":"616d365977749d31e7ad354fc0a9f0f1","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["external_standard_id","given_name","family_name","date_of_birth","can_login","gender","email","username","telephone","town","company_name","address_line_1","postcode","registration_type","expected_start_date"],"properties":{"provider_id":{"description":"AO users must give the provider_id for the apprentice","type":"integer"},"external_standard_id":{"description":"the external standard id","type":"string"},"specialism_id":{"description":"the specialism id","type":"string"},"given_name":{"description":"the apprentice`s first name","type":"string"},"middle_name":{"description":"the apprentice`s middle name","type":"string"},"family_name":{"description":"the apprentice`s surname","type":"string"},"external_learner_id":{"description":"an external id for the apprentice from another system","type":"string"},"date_of_birth":{"description":"the apprentice`s date of birth","type":"string","format":"DD/MM/YYYY"},"can_login":{"description":"whether the apprentice can log into the system","type":"boolean"},"gender":{"description":"the gender of the apprentice","type":"string"},"ethnicity":{"description":"the ethnicity of the apprentice defined by the ApprenticeEthnicities","type":"string"},"national_insurance_number":{"description":"the apprentice`s national insurance number","type":"string"},"unique_learner_number":{"description":"the registered ULN for the apprentice","type":"string"},"email":{"description":"the apprentice`s email address","type":"string"},"username":{"description":"the apprentice`s username. Must be unique. If omitted will default to the email address","type":"string"},"telephone":{"description":"the apprentice`s telephone number","type":"string"},"town":{"description":"the site address town","type":"string"},"company_name":{"description":"the company name for the apprentice","type":"string"},"site_name":{"description":"the site name for the apprentice","type":"string"},"address_line_1":{"description":"the site address line 1","type":"string"},"address_line_2":{"description":"the site address line 2","type":"string"},"county":{"description":"the site address county","type":"string"},"postcode":{"description":"the site address postcode","type":"string"},"tas_name":{"description":"The Account number you are allocated by The Apprenticeship Service to access funds for apprenticeship training","type":"string"},"requires_covid_compliance":{"description":"indicates if the apprentice`s workplace requires a covid compliant EPA","type":"boolean"},"registration_type":{"description":"the registration type for the apprentice","type":"string"},"employer_id":{"description":"the system generated id of the employer","type":"string"},"external_employer_id":{"description":"an external id for the employer from another system","type":"string"},"expected_start_date":{"description":"the expected start date of the apprentice","type":"string","format":"DD/MM/YYYY"},"expected_date_ready_for_epa":{"description":"the expected gateway date for the apprentice","type":"string","format":"DD/MM/YYYY"},"expected_completion_date":{"description":"the expected completion date for the apprentice","type":"string","format":"DD/MM/YYYY"},"provider_transferred_date":{"description":"the date that an apprentice`s provider was transferred","type":"string","format":"DD/MM/YYYY"},"mentor_name":{"description":"the mentor`s name","type":"string"},"mentor_job_title":{"description":"the mentor`s job title","type":"string"},"mentor_phone_number":{"description":"the mentor`s telephone number","type":"string"},"mentor_email":{"description":"the mentor`s email address","type":"string"},"parental_consent_name":{"description":"the name of the person giving consent","type":"string"},"parental_consent_relationship":{"description":"the persons relationship to the apprentice","type":"string"},"parental_consent_telephone":{"description":"the person`s telephone number","type":"string"},"parental_consent_email":{"description":"the person`s email address","type":"string"},"assessor_name":{"description":"the on programme assessor`s name","type":"string"},"assessor_phone_number":{"description":"the on programme assessor`s telephone number","type":"string"},"assessor_email":{"description":"the on programme assessor`s email address","type":"string"},"purchase_order_number":{"description":"the apprentice purchase order number","type":"string"},"cohort_id":{"description":"the cohort ID for the apprentice","type":"string"}},"type":"object"}}}},"responses":{"200":{"description":"Operation completed successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApprenticeTransformer"}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validations errors"}},"security":[{"api_key":[]}]}},"/apprentice/{id}":{"get":{"summary":"get apprentice details","description":"get apprentice details","operationId":"fbe0885172bbe27bdd1555f9ddace9f7","parameters":[{"name":"id","in":"path","description":"the id or username of the apprentice","required":true,"schema":{"type":"string"}},{"name":"programme_id","in":"query","description":"the programme id of the apprentice, current programme is omitted","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApprenticeTransformer"}}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Apprentice not found"}},"deprecated":true,"security":[{"api_key":[]}]},"put":{"tags":["apprentice"],"summary":"update apprentice","description":"update apprentice","operationId":"4de60f2a324ef67de9174730457cbfe9","parameters":[{"name":"id","in":"path","description":"AO users must give the provider_id for the apprentice","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["programme_id","company_name","expected_start_date"],"properties":{"programme_id":{"description":"the programme id for the apprentice","type":"integer"},"external_standard_id":{"description":"the external standard id","type":"string"},"specialism_id":{"description":"the specialism id","type":"string"},"given_name":{"description":"the apprentice`s first name","type":"string"},"middle_name":{"description":"the apprentice`s middle name","type":"string"},"family_name":{"description":"the apprentice`s surname","type":"string"},"external_learner_id":{"description":"an external id for the apprentice from another system","type":"string"},"external_ao_id":{"description":"an external id for the apprentice from an AO system","type":"string"},"date_of_birth":{"description":"the apprentice`s date of birth","type":"string","format":"DD/MM/YYYY"},"can_login":{"description":"whether the apprentice can log into the system","type":"integer"},"gender":{"description":"the gender of the apprentice","type":"string"},"ethnicity":{"description":"the ethnicity of the apprentice defined by the ApprenticeEthnicities","type":"string"},"national_insurance_number":{"description":"the apprentice`s national insurance number","type":"string"},"unique_learner_number":{"description":"the registered ULN for the apprentice","type":"string"},"email":{"description":"the apprentice`s email address","type":"string"},"telephone":{"description":"the apprentice`s telephone number","type":"string"},"town":{"description":"the site address town","type":"string"},"company_name":{"description":"the company name for the apprentice","type":"string"},"site_name":{"description":"the site name for the apprentice","type":"string"},"address_line_1":{"description":"the site address line 1","type":"string"},"address_line_2":{"description":"the site address line 2","type":"string"},"county":{"description":"the site address county","type":"string"},"postcode":{"description":"the site address postcode","type":"string"},"tas_name":{"description":"The Account number you are allocated by The Apprenticeship Service to access funds for apprenticeship training","type":"string"},"requires_covid_compliance":{"description":"indicates if the apprentice`s workplace requires a covid compliant EPA","type":"boolean"},"registration_type":{"description":"the registration type for the apprentice","type":"string"},"employer_id":{"description":"the system generated id of the employer","type":"string"},"external_employer_id":{"description":"an external id for the employer from another system","type":"string"},"expected_start_date":{"description":"the expected start date of the apprentice","type":"string","format":"DD/MM/YYYY"},"expected_date_ready_for_epa":{"description":"the expected gateway date for the apprentice","type":"string","format":"DD/MM/YYYY"},"expected_completion_date":{"description":"the expected completion date for the apprentice","type":"string","format":"DD/MM/YYYY"},"provider_transferred_date":{"description":"the date that an apprentice`s provider was transferred","type":"string","format":"DD/MM/YYYY"},"mentor_name":{"description":"the mentor`s name","type":"string"},"mentor_job_title":{"description":"the mentor`s job title","type":"string"},"mentor_phone_number":{"description":"the mentor`s telephone number","type":"string"},"mentor_email":{"description":"the mentor`s email address","type":"string"},"parental_consent_name":{"description":"the name of the person giving consent","type":"string"},"parental_consent_relationship":{"description":"the persons relationship to the apprentice","type":"string"},"parental_consent_telephone":{"description":"the person`s telephone number","type":"string"},"parental_consent_email":{"description":"the person`s email address","type":"string"},"assessor_name":{"description":"the on programme assessor`s name","type":"string"},"assessor_phone_number":{"description":"the on programme assessor`s telephone number","type":"string"},"assessor_email":{"description":"the on programme assessor`s email address","type":"string"},"purchase_order_number":{"description":"the apprentice purchase order number","type":"string"},"cohort_id":{"description":"the cohort ID for the apprentice","type":"string"}},"type":"object"}}}},"responses":{"204":{"description":"No Content - Successful"},"403":{"description":"Forbidden"},"404":{"description":"Apprentice not found"}},"security":[{"api_key":[]}]}},"/apprentice/id/{id}":{"get":{"summary":"get apprentice by id","description":"get apprentice by id","operationId":"85379ef6e0516d3544a4b970e624d59b","parameters":[{"name":"id","in":"path","description":"the id of the apprentice","required":true,"schema":{"type":"integer"}},{"name":"programme_id","in":"query","description":"the programme id of the apprentice; current programme is omitted","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApprenticeTransformer"}}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Apprentice not found"}},"security":[{"api_key":[]}]}},"/apprentice/username/{username}":{"get":{"summary":"get apprentice by username","description":"get apprentice by username","operationId":"5269e950e615638883b09c93798d4481","parameters":[{"name":"username","in":"path","description":"the username of the apprentice","required":true,"schema":{"type":"string"}},{"name":"programme_id","in":"query","description":"the programme id of the apprentice; current programme is omitted","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApprenticeTransformer"}}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Apprentice not found"}},"security":[{"api_key":[]}]}},"/apprentice/search":{"get":{"summary":"search for apprentice details","description":"search for apprentice details","operationId":"ca7e74eadc0ed7b7158c365ae8fcb8b1","parameters":[{"name":"limit","in":"query","description":"the maximum number of apprentices to return per page.","required":false,"schema":{"type":"integer","default":"10"}},{"name":"page","in":"query","description":"the page number to retrieve.","required":false,"schema":{"type":"integer","default":"1"}},{"name":"unique_learner_number","in":"query","description":"the uln of the apprentice.","required":false,"schema":{"type":"string"}},{"name":"email","in":"query","description":"the email address of the apprentice. This is an exact match only.","required":false,"schema":{"type":"string"}},{"name":"external_learner_id","in":"query","description":"the external learner id of the apprentice.","required":false,"schema":{"type":"string"}},{"name":"given_name","in":"query","description":"the apprentice`s first name. This is an exact match only.","required":false,"schema":{"type":"string"}},{"name":"family_name","in":"query","description":"the apprentice`s surname. This is an exact match only.","required":false,"schema":{"type":"string"}},{"name":"cohort_id","in":"query","description":"the apprentice`s cohort id. This is an exact match only.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApprenticeSearchTransformer"}}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Apprentices not found"}},"security":[{"api_key":[]}]}},"/assessment_element/{id}":{"get":{"summary":"get assessment element details by providing {id} in path","description":"get assessment element details","operationId":"da021ca2e2097a024ccfa0bfb9447cf0","parameters":[{"name":"id","in":"path","description":"the id of the assessment element","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessmentElementTransformer"}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Element not found"}},"security":[{"api_key":[]}]}},"/certification":{"get":{"summary":"Display a listing of the resource.","description":"list certifications","operationId":"28ded8ec2698416b12b2f23934c4ae68","parameters":[{"name":"limit","in":"query","description":"the maximum number of certifications to return per page","required":false,"schema":{"type":"integer","default":10,"maximum":100,"minimum":1}},{"name":"page","in":"query","description":"the page number to retrieve","required":false,"schema":{"type":"integer","default":"1"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CertificationTransformer"}}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Certifications not found"}},"security":[{"api_key":[]}]}},"/certification/{id}":{"get":{"summary":"get certification details","description":"get certification details","operationId":"82edd9a58a746fd7958cf0d90727c2ae","parameters":[{"name":"id","in":"path","description":"the id of the certification record","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CertificationTransformer"}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Certification not found"}},"security":[{"api_key":[]}]}},"/apprentice/change_of_circumstance":{"post":{"summary":"creates a change of circumstance and stores it in the database.","description":"creates a change of circumstance and stores it in the database.","operationId":"ff31eef6bef440c7d86a789bf97d63ea","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["id","status","reason"],"properties":{"id":{"description":"the id or username of the apprentice","type":"string"},"status":{"description":"the status of the apprentice. Must be one of the following: Suspended,Cancelled,Withdrawn,On Programme,In Assessment,Completed","type":"string"},"leave_date":{"description":"the date the apprentice has left (if appropriate, depending on status","type":"string","format":"DD/MM/YYYY"},"expected_return_date":{"description":"the date the apprentice is expected to return to learning (if appropriate, depending on status)","type":"string","format":"DD/MM/YYYY"},"expected_completion_date":{"description":"the new expected completion date for the apprentice. If omitted then the date will not be changed. If provided then it must be valid.","type":"string","format":"DD/MM/YYYY"},"expected_date_ready_for_epa":{"description":"the new expected EPA date for the apprentice. If omitted then the date will not be changed. If provided then it must be valid.","type":"string","format":"DD/MM/YYYY"},"reason":{"description":"the reason for the change of circumstance","type":"string"},"cancel_meetings":{"description":"whether to cancel any meetings, if there are meetings currently in progress for the apprentice. Only required for AO users, when the status is changing to On Programme,In Assessment, or Suspended.","type":"boolean"},"provider_id":{"description":"AO users must give the provider_id for the apprentice","type":"integer"},"reason_type_id":{"description":"the type ID for the change of circumstance reason type","type":"integer"}},"type":"object"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeOfCircumstanceTransformer"}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation errors"}},"security":[{"api_key":[]}]}},"/change_of_circumstance_reason_type":{"get":{"tags":["change_of_circumstance_reason_type"],"summary":"list the change of circumstance reason types.","description":"Returns a collection of Change of Circumstance Reason Types.","operationId":"0e720d0f45465d2c478d959a729ee95f","parameters":[{"name":"search","in":"query","description":"filter the results by bane","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChangeOfCircumstanceReasonTypeTransformer"}}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Apprentice not found"}},"security":[{"api_key":[]}]}},"/change_of_circumstance_reason_type/{id}":{"get":{"tags":["change_of_circumstance_reason_type"],"summary":"get a single Change of Circumstance Reason Type.","description":"Returns a single Change of Circumstance Reason Type.","operationId":"4d9293954618cccdca2e72b120b26349","parameters":[{"name":"id","in":"path","description":"the id of the change of circumstance reason type.","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChangeOfCircumstanceReasonTypeTransformer"}}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Apprentice not found"}},"security":[{"api_key":[]}]}},"/gateway":{"get":{"summary":"list gateways","description":"list gateways","operationId":"fb3aa6028dd80c0ac85799e8abb66709","parameters":[{"name":"limit","in":"query","description":"the maximum number of gateways to return","required":false,"schema":{"type":"integer","default":10,"maximum":100,"minimum":1}},{"name":"page","in":"query","description":"the page number to retrieve","required":false,"schema":{"type":"integer","default":"1"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GatewayTransformer"}}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Apprentices not found"}},"security":[{"api_key":[]}]}},"/gateway/{id}":{"get":{"summary":"get gateway details","description":"get gateway details","operationId":"ce89413b76afd7c70ec36bb3899089c9","parameters":[{"name":"id","in":"path","description":"the id or username of the apprentice","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GatewayTransformer"}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Apprentices not found"}},"security":[{"api_key":[]}]},"put":{"summary":"Process an apprentice ready for approval/rejection by the awarding organisation.","description":"Process an apprentice ready for approval/rejection by the awarding organisation.","operationId":"d8c3b5621d0d712b9d6dc6ca21219ca4","parameters":[{"name":"id","in":"path","description":"the id or username of the apprentice","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["gateway_completion_date"],"properties":{"gateway_completion_date":{"description":"the date the apprentice was submitted to gateway","type":"string","format":"YYYY-MM-DD"}},"type":"object"}}}},"responses":{"204":{"description":"No Content - Successful"},"400":{"description":"Bad request, unauthorized, the gateway specification is not single sign off, or incorrect Date format or missing date"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Apprentice or Gateway specification not found"}},"security":[{"api_key":[]}]}},"/meeting":{"get":{"summary":"list meetings","description":"list meetings","operationId":"f0f26858bc91e66ab7f97c1793954a54","parameters":[{"name":"limit","in":"query","description":"the maximum number of meetings to return","required":false,"schema":{"type":"integer","default":10,"maximum":100,"minimum":1}},{"name":"page","in":"query","description":"the page number to retrieve","required":false,"schema":{"type":"integer","default":"1"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MeetingTransformer"}}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Apprentices not found"}},"security":[{"api_key":[]}]}},"/meeting/{id}":{"get":{"summary":"get meeting details","description":"get meeting details","operationId":"f350ca142aec61832e3a66e8c16463c5","parameters":[{"name":"id","in":"path","description":"the id of the meeting","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingTransformer"}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Meeting not found"}},"security":[{"api_key":[]}]}},"/plan":{"get":{"summary":"list assessment plans","description":"list assessment plans","operationId":"ed1ff5b9805fcc472141d3d91437b95e","parameters":[{"name":"limit","in":"query","description":"the maximum number of plans to return","required":false,"schema":{"type":"integer","default":10,"maximum":100,"minimum":1}},{"name":"page","in":"query","description":"the page number to retrieve","required":false,"schema":{"type":"integer","default":"1"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PlanTransformer"}}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Apprentices not found"}},"security":[{"api_key":[]}]}},"/plan/{id}":{"get":{"summary":"get plan details","description":"get plan details","operationId":"a73497b79b84896ca4e5f493afea0359","parameters":[{"name":"id","in":"path","description":"the id of the plan","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanTransformer"}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Plan not found"}},"security":[{"api_key":[]}]}},"/provider":{"get":{"summary":"list providers","description":"list providers","operationId":"2798d0af0c1a150ef9afaf50ffb3f53d","parameters":[{"name":"limit","in":"query","description":"the maximum number of providers to return","required":false,"schema":{"type":"integer","default":10,"maximum":100,"minimum":1}},{"name":"page","in":"query","description":"the page number to retrieve","required":false,"schema":{"type":"integer","default":"1"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProviderTransformer"}}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Apprentices not found"}},"security":[{"api_key":[]}]},"post":{"summary":"create provider","description":"create provider","operationId":"4df3c9ffb62a1a491a99e61a390bd8fc","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["company_name","username","email","firstname","lastname","telephone","standard_ids[]"],"properties":{"company_name":{"description":"the company name","type":"string"},"billing_reference":{"description":"a billing reference for the provider","type":"string"},"qa_minimum_percentage":{"description":"the minimum % of assessments to QA","type":"integer"},"external_ao_id":{"description":"an external id for the provider from another system","type":"string"},"username":{"description":"a username for the primary user","type":"string"},"email":{"description":"an email for the primary user","type":"string"},"firstname":{"description":"the first name of the primary user","type":"string"},"middlename":{"description":"the middle name of the primary user","type":"string"},"lastname":{"description":"the last name of the primary user","type":"string"},"telephone":{"description":"the telephone number of the primary user","type":"string"},"can_user_login":{"description":"whether the primary user can log into the system using a password","type":"boolean","default":false},"standard_ids[]":{"description":"A list of external standard ids","type":"array","items":{"type":"integer"}},"contact":{"description":"contact details","type":"array","items":{"properties":{"name":{"description":"the contact name","type":"string"},"address_1":{"description":"the contact`s address line 1","type":"string"},"address_2":{"description":"the contact`s address line 2","type":"string"},"address_3":{"description":"the contact`s address line 3","type":"string"},"town":{"description":"the contact`s town","type":"string"},"postcode":{"description":"the contact`s postcode","type":"string"},"county":{"description":"the contact`s county","type":"string"},"telephone":{"description":"the contact`s telephone","type":"string"},"email":{"description":"the contact`s email address","type":"string"}},"type":"object"}},"saras_site_reference":{"description":"the Saras site reference","type":"string"},"xams_site_reference":{"description":"the XAMS site reference","type":"string"}},"type":"object"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProviderTransformer"}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation errors"}},"security":[{"api_key":[]}]}},"/provider/{id}":{"get":{"summary":"get provider details","description":"get provider details","operationId":"023872cfa3ba5228a969edca9c6bff29","parameters":[{"name":"id","in":"path","description":"the id of the provider","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderTransformer"}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Provider not found"}},"security":[{"api_key":[]}]},"put":{"summary":"update provider, by providing the id in the query parameter","description":"update provider","operationId":"f32e078ded41c3178e4276308880c89f","parameters":[{"name":"id","in":"path","description":"the id of the provider","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"properties":{"company_name":{"description":"the company name","type":"string"},"billing_reference":{"description":"a billing reference for the provider","type":"string"},"qa_minimum_percentage":{"description":"the minimum % of assessments to QA","type":"integer"},"external_ao_id":{"description":"an external id for the provider from another system","type":"string"},"email":{"description":"an email for the primary user","type":"string"},"firstname":{"description":"the first name of the primary user","type":"string"},"middlename":{"description":"the middle name of the primary user","type":"string"},"lastname":{"description":"the last name of the primary user","type":"string"},"telephone":{"description":"the telephone number of the primary user","type":"string"},"can_user_login":{"description":"whether the primary user can log into the system using a password","type":"boolean","default":false},"standard_ids[]":{"description":"A list of external standard ids","type":"array","items":{"type":"integer"}},"contact":{"description":"contact details","type":"array","items":{"properties":{"name":{"description":"the contact name","type":"string"},"address_1":{"description":"the contact`s address line 1","type":"string"},"address_2":{"description":"the contact`s address line 2","type":"string"},"address_3":{"description":"the contact`s address line 3","type":"string"},"town":{"description":"the contact`s town","type":"string"},"postcode":{"description":"the contact`s postcode","type":"string"},"county":{"description":"the contact`s county","type":"string"},"telephone":{"description":"the contact`s telephone","type":"string"},"email":{"description":"the contact`s email address","type":"string"}},"type":"object"}},"saras_site_reference":{"description":"the Saras site reference","type":"string"},"xams_site_reference":{"description":"the XAMS site reference","type":"string"}},"type":"object"}}}},"responses":{"204":{"description":"No Content - Successful"},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"security":[{"api_key":[]}]}},"/queue":{"get":{"summary":"list queue items. Note that items in the queue will decay over time to prevent it getting too large.","description":"list queue items. Note that items in the queue will decay over time to prevent it getting too large.","operationId":"3be2515f12da45db4b74b74ade66bd52","parameters":[{"name":"limit","in":"query","description":"the maximum number of items to return. Minimum is 1 and maximum is 1000.","required":false,"schema":{"type":"integer","default":100,"maximum":1000,"minimum":1}},{"name":"page","in":"query","description":"the page number to retrieve.","required":false,"schema":{"type":"integer","default":1}},{"name":"peek","in":"query","description":"whether to peek or pop an item from the queue","required":false,"schema":{"type":"boolean","default":false}},{"name":"provider_id","in":"query","description":"AO users can give the provider_id to filter the results","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/QueueTransformer"}}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Apprentices not found"}},"security":[{"api_key":[]}]}},"/result":{"get":{"summary":"list results","description":"list results","operationId":"8c459ad401d778aa425f597ba990499c","parameters":[{"name":"limit","in":"query","description":"the maximum number of results to return","required":false,"schema":{"type":"integer","default":10,"maximum":100,"minimum":1}},{"name":"page","in":"query","description":"the page number to retrieve","required":false,"schema":{"type":"integer","default":"1"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ResultTransformer"}}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Results not found"}},"security":[{"api_key":[]}]}},"/result/{id}":{"get":{"summary":"get result details","description":"get meeting details","operationId":"1646e622ff66eb299326433c5c98a895","parameters":[{"name":"id","in":"path","description":"the id of the result\"","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultTransformer"}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Result not found"}},"security":[{"api_key":[]}]}},"/apprentice/start_new_programme":{"post":{"summary":"start new programme","description":"start new programme","operationId":"7d6605bc726174ff4da975fb9d69edad","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["id","external_standard_id","expected_start_date"],"properties":{"id":{"description":"the id or username of the apprentice","type":"string"},"external_standard_id":{"description":"the external standard id","type":"string"},"specialism_id":{"description":"the specialism id","type":"string"},"provider_id":{"description":"AO users must give the provider_id for the apprentice","type":"string"},"employer_id":{"description":"the system generated id of the employer","type":"string"},"external_employer_id":{"description":"an external id for the employer from another system","type":"string"},"expected_start_date":{"description":"the expected start date of the apprentice","type":"string","format":"DD/MM/YYYY"},"expected_date_ready_for_epa":{"description":"the expected gateway date for the apprentice","type":"string","format":"DD/MM/YYYY"},"expected_completion_date":{"description":"the expected completion date for the apprentice","type":"string","format":"DD/MM/YYYY"},"reason_id":{"description":"the reason for the start new programme defined by the ProgrammeReasons","type":"string","default":"4"},"additional_information":{"description":"any supporting information for the change of programme reason\", default=\"No reason given, changed via API","type":"string"},"cohort_id":{"description":"the apprentice`s cohort id","type":"string"}},"type":"object"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartNewProgrammeTransformer"}}}},"400":{"description":"Bad request"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation errors"}},"security":[{"api_key":[]}]}}},"components":{"schemas":{"ApprenticeStatusTypesModel":{"properties":{"status":{"description":"the apprentice status","type":"string","enum":["On Programme","Suspended","Cancelled","Withdrawn","Completed","Certified","Back Into Learning","In Assessment"]}},"type":"object","xml":{"name":"ApprenticeStatusTypes"}},"AssessmentPlanElementLocationTypeModel":{"properties":{"location_type":{"description":"the location type description","type":"string","enum":["Online","Physical"]}},"type":"object","xml":{"name":"ElementLocationTypes"}},"AssessmentPlanStatusModel":{"properties":{"status":{"description":"the plan status","type":"string","enum":["In Progress","Cancelled","Completed"]}},"type":"object","xml":{"name":"AssessmentPlanStatus"}},"AssessmentPlanningMeetingTypeModel":{"properties":{"status":{"description":"the meeting type","type":"string","enum":["Remote","Face to Face","Zoom Video","Teams"]}},"type":"object","xml":{"name":"AssessmentPlanningMeetingType"}},"AssessmentPlanningStatusModel":{"properties":{"status":{"description":"the meeting status","type":"string","enum":["Scheduled","Rescheduled","Cancelled","In Progress","Completed","Pending","Rejected"]}},"type":"object","xml":{"name":"AssessmentPlanningStatus"}},"AssessmentResultActionModel":{"properties":{"next_action":{"description":"the next action","type":"string","enum":["Resit","Retake","Failed","Reschedule"]}},"type":"object","xml":{"name":"AssessmentResultAction"}},"ProgrammeReasonsModel":{"properties":{"reason_id":{"enum":["Back Into Learning","New Qualification","User/Registration Error","Other"]}},"type":"object","xml":{"name":"ProgrammeReasons"}},"RegistrationTypeModel":{"properties":{"registration_type":{"description":"the apprentice registration type","type":"string","enum":["ILR","Other","Privately"]}},"type":"object","xml":{"name":"RegistrationType"}},"ApprenticeSearchTransformer":{"description":"Transform the response for the about endpoint.","properties":{"id":{"description":"the apprentice id","type":"integer"},"username":{"description":"the apprentice username","type":"string"},"pronouns":{"description":"the apprentice`s pronouns","type":"string"},"first_name":{"description":"the apprentice`s first name","type":"string"},"preferred_name":{"description":"the apprentice`s preferred name","type":"string"},"pronunciation":{"description":"the pronunciation set against the apprentice`s name","type":"string"},"last_name":{"description":"the apprentice`s last name","type":"string"},"email_address":{"description":"the apprentice`s email address","type":"string"},"external_learner_id":{"description":"the external learner id","type":"string"},"unique_learner_number":{"description":"the apprentice`s ULN","type":"string"},"cohort_id":{"description":"the apprentice`s cohort id","type":"string"}},"type":"object","xml":{"name":"apprentice"}},"ApprenticeTransformer":{"description":"Transform the response for the apprentice endpoint.","properties":{"id":{"description":"the apprentice id","type":"integer"},"programme_id":{"description":"the apprentice`s programme id","type":"integer"},"cohort_id":{"description":"the apprentice`s cohort id","type":"string"},"provider_name":{"description":"the name of the provider for the apprentice","type":"string"},"overall_result_name":{"description":"the certification result","type":"string"},"username":{"description":"the apprentice username","type":"string"},"pronouns":{"description":"the apprentice`s pronouns","type":"string"},"first_name":{"description":"the apprentice`s first name","type":"string"},"preferred_name":{"description":"the apprentice`s preferred name","type":"string"},"pronunciation":{"description":"the pronunciation set against the apprentice`s name","type":"string"},"middle_name":{"description":"the apprentice`s middle name","type":"string"},"last_name":{"description":"the apprentice`s last name","type":"string"},"email_address":{"description":"the apprentice`s email address","type":"string"},"external_standard_id":{"description":"the external standard id","type":"string"},"external_learner_id":{"description":"the external learner id","type":"string"},"external_ao_id":{"description":"the external AO id","type":"string"},"specialism_id":{"description":"the specialism id","type":"integer"},"date_of_birth":{"description":"the apprentice`s date of birth","type":"string","format":"YYYY-MM-DDTHH:II:SS+HH:II"},"gender":{"description":"the apprentice`s gender. Unknown will be remapped to Undisclosed","type":"string","enum":["male","female","unknown","undisclosed","other"]},"ethnicity":{"description":"the apprentice`s ethnicity","type":"string"},"reasonable_adjustments":{"description":"deprecated","type":"string"},"national_insurance_number":{"description":"the apprentice`s national insurance number","type":"string"},"unique_learner_number":{"description":"the apprentice`s ULN","type":"string"},"telephone":{"description":"the apprentice`s telephone number","type":"string"},"company_name":{"description":"the company name for the apprentice","type":"string"},"site_name":{"description":"the site name for the apprentice","type":"string"},"address_line_1":{"description":"","type":"string"},"address_line_2":{"description":"","type":"string"},"town":{"description":"","type":"string"},"county":{"description":"","type":"string"},"postcode":{"description":"","type":"string"},"requires_covid_compliance":{"description":"","type":"boolean"},"registration_type":{"$ref":"#/components/schemas/RegistrationTypeModel"},"employer_id":{"description":"the employer id","type":"integer"},"expected_start_date":{"description":"the expected start date of the apprentice","type":"string","format":"YYYY-MM-DDTHH:II:SS+HH:II"},"expected_date_ready_for_epa":{"description":"the expected date the apprentice will be ready for EPA","type":"string","format":"YYYY-MM-DDTHH:II:SS+HH:II"},"expected_date_ready_for_epa_confirmed":{"description":"the date the expected_date_ready_for_epa was confirmed by the provider","type":"string","format":"YYYY-MM-DDTHH:II:SS+HH:II"},"expected_completion_date":{"description":"the expected completion date of the apprentice","type":"string","format":"YYYY-MM-DDTHH:II:SS+HH:II"},"gateway_completion_date":{"description":"the gateway completion date","type":"string","format":"YYYY-MM-DDTHH:II:SS+HH:II"},"gateway_submitted_datetime":{"description":"the gateway submission date","type":"string","format":"YYYY-MM-DDTHH:II:SS+HH:II"},"epa":{"description":"the epa name","type":"string"},"stage":{"description":"a description of the stage in the EPA process","type":"string"},"purchase_order_number":{"description":"the apprentice purchase order number","type":"string"},"provider_external_ao_id":{"description":"The external provider id","type":"string"},"provider_id":{"description":"The provider id","type":"integer"},"status":{"$ref":"#/components/schemas/ApprenticeStatusTypesModel"},"mentor":{"description":"","properties":{"name":{"description":"the mentor's name","type":"string"},"job_title":{"description":"the mentor's job title","type":"string"},"telephone":{"description":"the mentor's telephone number","type":"string"},"email":{"description":"the mentor's email","type":"string"}},"type":"object"},"parental_consent":{"description":"","properties":{"name":{"description":"their name","type":"string"},"relationship":{"description":"the relationship to the apprentice","type":"string"},"telephone":{"description":"their telephone number","type":"string"},"email":{"description":"their email address","type":"string"}},"type":"object"},"on_programme_assessor":{"description":"","properties":{"name":{"description":"the assessor's name","type":"string"},"telephone":{"description":"the assessor's telephone number","type":"string"},"email":{"description":"their email address","type":"string"}},"type":"object"},"planning_meetings":{"description":"","properties":{"url":{"description":"the resource url","type":"string"},"method":{"description":"the HTTP method","type":"string","enum":["GET"]}},"type":"object"},"plans":{"description":"","properties":{"url":{"description":"the resource url","type":"string"},"method":{"description":"the HTTP method","type":"string","enum":["GET"]}},"type":"object"},"certification":{"description":"","properties":{"url":{"description":"the resource url","type":"string"},"method":{"description":"the HTTP method","type":"string","enum":["GET"]}},"type":"object"},"reasonable_adjustments_list":{"description":"A list of reasonable adjustments defined against the apprentice. This maps with Ofqual's values and replaces the reasonable_adjustments text field. Only available if the API user has permission to read reasonable adjustments.","type":"array","items":{"properties":{"arrangement_type":{"description":"","type":"string"},"type_info":{"description":"additional information to accompany arrangement_type","type":"string"},"nature_of_arrangement":{"description":"","type":"string"},"status":{"description":"","type":"string","enum":["Accepted","Rejected","Pending"]},"additional_reasonable_adjustment_id":{"description":"","type":"string"},"additional_special_consideration_id":{"description":"","type":"string"},"additional_information":{"description":"","type":"string"},"start_date":{"description":"in the format DD/MM/YYYY","type":"string"},"end_date":{"description":"in the format DD/MM/YYYY","type":"string"},"requested_date":{"description":"in the format DD/MM/YYYY","type":"string"}},"type":"object"}}},"type":"object","xml":{"name":"Apprentice"}},"AssessmentElementTransformer":{"description":"Transform the response for the plan endpoint.","properties":{"component_id":{"description":"the id of the component","type":"integer","minimum":1},"element_id":{"description":"the id of the element","type":"integer","minimum":1},"name":{"description":"the name of the component the element is based on","type":"string"},"description":{"description":"a description of the component the element is based on","type":"string"},"assessment_type":{"description":"the type of the assessment","type":"string"},"location_type":{"$ref":"#/components/schemas/AssessmentPlanElementLocationTypeModel"},"external_component_id":{"description":"the external component id for the component related to the element","type":"string"},"schedule_timestamp":{"description":"the scheduled datetime for the element","type":"string","format":"YYYY-MM-DDTHH:II:SS+HH:II"},"result":{"description":"result details","properties":{"name":{"description":"the result name","type":"string"},"url":{"description":"","properties":{"url":{"description":"the resource url","type":"string"},"method":{"description":"the HTTP method","type":"string","enum":["GET"]}},"type":"object"}},"type":"object"},"plan":{"description":"plan details","properties":{"id":{"description":"the plan id for this element","type":"integer","minimum":1},"url":{"description":"","properties":{"url":{"description":"the resource url","type":"string"},"method":{"description":"the HTTP method","type":"string","enum":["GET"]}},"type":"object"}},"type":"object"},"previous_element_id":{"description":"the element id of the previous element","type":"integer","minimum":1},"element_type":{"description":"element type for the plan","properties":{"id":{"description":"the plan id for this element","type":"integer","minimum":1},"element_type":{"description":"data relating to the type of the element","properties":{"id":{"description":"the type ID","type":"integer","minimum":1},"name":{"description":"the friendly name of the type","type":"string","enum":["Active","Resit","Retake","Pending","Cancelled"]}},"type":"object"}},"type":"object"}},"type":"object","xml":{"name":"Assessment Element"}},"CertificationTransformer":{"description":"Transform the response for the certification endpoint.","properties":{"id":{"description":"the certification id","type":"integer"},"programme_id":{"description":"the programme id for the apprentice","type":"integer"},"overall_name":{"description":"the certification result","type":"string"},"certification_datetime":{"description":"the certification datetime","type":"string"},"outcome_release_datetime":{"description":"the certification outcome release datetime","type":"string"},"epa_feedback":{"description":"epa feedback","type":"string"},"epa_next_steps":{"description":"epa next steps","type":"string"},"apprentice":{"description":"","properties":{"url":{"description":"the resource url","type":"string"},"method":{"description":"the HTTP method","type":"string","enum":["GET"]}},"type":"object"},"created":{"description":"the created datetime for the resource","type":"string","format":"YYYY-MM-DDTHH:II:SS+HH:II"},"updated":{"description":"the last updated datetime for the resource","type":"string","format":"YYYY-MM-DDTHH:II:SS+HH:II"}},"type":"object","xml":{"name":"Certification"}},"ChangeOfCircumstanceReasonTypeTransformer":{"description":"Transform the response for the change of circumstance reason type endpoint.","properties":{"id":{"description":"the change of circumstance reason type id","type":"integer"},"name":{"description":"the name of the circumstance reason type","type":"string"}},"type":"object","xml":{"name":"ChangeOfCircumstanceReasonType"}},"ChangeOfCircumstanceTransformer":{"description":"Transform the response for the change of circumstance endpoint.","properties":{"id":{"description":"the newly created change of circumstance id","type":"integer"},"cancelled":{"description":"the assessment meetings/plans that have been cancelled","type":"array","items":{"properties":{"url":{"description":"the resource url","type":"string"},"method":{"description":"the HTTP method","type":"string","enum":["GET"]}},"type":"object"}}},"type":"object","xml":{"name":"ChangeOfCircumstance"}},"CreateApprenticeTransformer":{"description":"Transform the response for the create apprentice endpoint.","properties":{"id":{"description":"the apprentice id","type":"integer"},"username":{"description":"the apprentice's username","type":"string"},"apprentice":{"description":"","type":"array","items":{"properties":{"url":{"description":"the resource url","type":"string"},"method":{"description":"the HTTP method","type":"string","enum":["GET","PUT"]}},"type":"object"}}},"type":"object","xml":{"name":"CreateApprentice"}},"CreateProviderTransformer":{"description":"Transform the response for the create of provider endpoint.","properties":{"id":{"description":"the provider id","type":"integer"},"provider":{"description":"","type":"array","items":{"properties":{"url":{"description":"the resource url","type":"string"},"method":{"description":"the HTTP method","type":"string","enum":["GET","PUT"]}},"type":"object"}}},"type":"object","xml":{"name":"CreateProvider"}},"GatewayTransformer":{"description":"Transform the response for the gateway endpoint.","properties":{"apprentice_username":{"description":"the apprentice username","type":"string"},"programme_id":{"description":"the programme id for the apprentice","type":"integer"},"apprentice":{"description":"","properties":{"url":{"description":"the resource url","type":"string"},"method":{"description":"the HTTP method","type":"string","enum":["GET"]}},"type":"object"},"expected_epa_date":{"description":"the apprentice's expected epa date","type":"string"}},"type":"object","xml":{"name":"Gateway"}},"MeetingTransformer":{"description":"Transform the response for the meeting endpoint.","properties":{"id":{"description":"the meeting id","type":"integer"},"programme_id":{"description":"the programme id for the apprentice","type":"integer"},"datetime":{"description":"the scheduled datetime for the meeting","type":"string","format":"YYYY-MM-DDTHH:II:SS+HH:II"},"status":{"$ref":"#/components/schemas/AssessmentPlanningStatusModel"},"duration":{"description":"the expected duration of the meeting","type":"string","format":"HH:II:SS"},"type":{"$ref":"#/components/schemas/AssessmentPlanningMeetingTypeModel"},"reason_description":{"description":"an additional description for a reschedule or cancellation","type":"string"},"reasons":{"description":"a list of reasons","type":"array","items":{"type":"string"}},"location_id":{"description":"the apprentice's username","type":"string"},"alt_location":{"description":"the apprentice's username","type":"string"},"apprentice":{"description":"","properties":{"url":{"description":"the resource url","type":"string"},"method":{"description":"the HTTP method","type":"string","enum":["GET"]}},"type":"object"},"epa":{"description":"the epa name","type":"string"},"zoom_url":{"description":"the url for the zoom meeting","type":"string"},"teams_url":{"description":"the url for Microsoft Teams meeting","type":"string"},"rescheduled_meeting":{"description":"","properties":{"url":{"description":"the resource url","type":"string"},"method":{"description":"the HTTP method","type":"string","enum":["GET"]}},"type":"object"},"attendees":{"description":"a list of attendees","type":"array","items":{"properties":{"type":{"description":"the user type","type":"string"},"name":{"description":"the attendee name","type":"string"},"email":{"description":"the attendee email","type":"string"},"email_sent":{"description":"the datetime when they last received a meeting invite or reminder","type":"string","format":"YYYY-MM-DDTHH:II:SS+HH:II"},"reasonable_adjustments":{"description":"any reasonable adjustments","type":"string"}},"type":"object"}}},"type":"object","xml":{"name":"Meeting"}},"PlanTransformer":{"description":"Transform the response for the plan endpoint.","properties":{"id":{"description":"the plan id","type":"integer","minimum":1},"programme_id":{"description":"the programme id for the apprentice","type":"integer","minimum":1},"plan":{"description":"","properties":{"url":{"description":"the resource url","type":"string"},"method":{"description":"the HTTP method","type":"string","enum":["GET"]}},"type":"object"},"status":{"$ref":"#/components/schemas/AssessmentPlanStatusModel"},"learner_consent":{"description":"the consent of the learner to the plan","type":"boolean"},"ao_verified":{"description":"the verification of the awarding organisation","type":"boolean"},"created":{"description":"the created datetime for the resource","type":"string","format":"YYYY-MM-DDTHH:II:SS+HH:II"},"updated":{"description":"the last updated datetime for the resource","type":"string","format":"YYYY-MM-DDTHH:II:SS+HH:II"},"apprentice":{"description":"","properties":{"url":{"description":"the resource url","type":"string"},"method":{"description":"the HTTP method","type":"string","enum":["GET"]}},"type":"object"},"elements":{"description":"a list of plan elements","type":"array","items":{"properties":{"component_id":{"description":"the id of the component","type":"integer","minimum":1},"element_id":{"description":"the id of the element","type":"integer","minimum":1},"name":{"description":"the name of the component the element is based on","type":"string"},"description":{"description":"a description of the component the element is based on","type":"string"},"assessment_type":{"description":"the type of the assessment","type":"string"},"location_type":{"$ref":"#/components/schemas/AssessmentPlanElementLocationTypeModel"},"external_component_id":{"description":"the external component id for the component related to the element","type":"string"},"schedule_timestamp":{"description":"the scheduled datetime for the element","type":"string","format":"YYYY-MM-DDTHH:II:SS+HH:II"},"url":{"description":"show assessment element url","properties":{"url":{"description":"the resource url","type":"string"},"method":{"description":"the HTTP method","type":"string","enum":["GET"]}},"type":"object"},"dependent_components":{"description":"a list of dependencies","type":"array","items":{"type":"integer"}},"result":{"description":"result details","properties":{"name":{"description":"the result name","type":"string"},"url":{"description":"show assessment result url","properties":{"url":{"description":"the resource url","type":"string"},"method":{"description":"the HTTP method","type":"string","enum":["GET","POST","PUT","DELETE"]}},"type":"object"}},"type":"object"},"previous_element_id":{"description":"the element id of the previous element id","type":"integer","minimum":1},"element_type":{"description":"data relating to the type of the element","properties":{"id":{"description":"the type ID","type":"integer","minimum":1},"name":{"description":"the friendly name of the type","type":"string","enum":["Active","Rescheduled","Resit","Retake","Pending","Cancelled"]}},"type":"object"}},"type":"object"}}},"type":"object","xml":{"name":"Plan"}},"ProviderTransformer":{"description":"Transform the response for the provider endpoint.","properties":{"provider_id":{"description":"the provider id","type":"integer"},"name":{"description":"the company name","type":"string"},"company_number":{"description":"the company number","type":"string"},"ukprn":{"description":"the certification result","type":"string"},"billing_reference":{"description":"the billing reference","type":"string"},"external_ao_id":{"description":"the external AO id","type":"string"},"contact_name":{"description":"the contact name","type":"string"},"email":{"description":"the contact email address","type":"string"},"address_1":{"description":"the first line of address","type":"string"},"address_2":{"description":"the second line of address","type":"string"},"town":{"description":"the town for the contact","type":"string"},"county":{"description":"the county for the contact","type":"string"},"postcode":{"description":"the postcode for the contact","type":"string"},"telephone":{"description":"the telephone for the contact","type":"string"},"standards":{"description":"","type":"array","items":{"properties":{"id":{"description":"the epaPRO standard id","type":"integer"},"title":{"description":"the standard title","type":"string"}},"type":"object"}},"primary_user":{"description":"","properties":{"username":{"description":"the primary user's username","type":"string"},"email":{"description":"the primary user's email address","type":"string"},"pronouns":{"description":"the primary user's pronouns","type":"string"},"first_name":{"description":"the primary user's first name","type":"string"},"preferred_name":{"description":"the primary user's preferred name","type":"string"},"pronunciation":{"description":"the pronunciation set against the primary user's name","type":"string"},"middle_name":{"description":"the primary user's middle name","type":"string"},"last_name":{"description":"the primary user's last_name","type":"string"},"telephone":{"description":"the primary user's telephone","type":"string"}},"type":"object"},"saras_site_reference":{"description":"the Saras site reference","type":"string"},"xams_site_reference":{"description":"the XAMS site reference","type":"string"}},"type":"object","xml":{"name":"Provider"}},"QueueTransformer":{"description":"Transform the response for the queue endpoint","properties":{"id":{"description":"the queue id","type":"integer"},"url":{"description":"the url for the queue item","type":"string"},"events":{"description":"a list of events","type":"array","items":{"properties":{"type":{"description":"the event name","type":"string","enum":["create_apprentice","update_apprentice","new_programme_{programme_id}","status_change","assign_apprentice","save_meeting","reschedule_meeting","cancel_meeting","update_meeting","update_meeting_status","create_plan","submit_plan","cancel_plan","create_element_{element_id}","update_element_{element_id}","delete_element_{element_id}","pending_element_{element_id}","reschedule_element_{element_id}","resit_element_{element_id}","retaining_element_{element_id}","attended_element_{element_id}","approved_element_{element_id}","cancelled_element_{element_id}","added_result","publish_result","adjusted_result","publish_certification","certification_adjusted_result","certification_result_available","confirm_gateway","submit_gateway"]}},"type":"object"}},"changes":{"description":"a list of fields that have changed","properties":{"field.name":{"description":"the status of the field","type":"string","example":"updated"}},"type":"object"},"created":{"description":"the created datetime for the resource","type":"string","format":"YYYY-MM-DDTHH:II:SS+HH:II"},"last_updated":{"description":"the the last updated  datetime for the resource","type":"string","format":"YYYY-MM-DDTHH:II:SS+HH:II"}},"type":"object","xml":{"name":"Queue"}},"ResultTransformer":{"description":"Transform the response for the result endpoint.","properties":{"id":{"description":"the result id","type":"integer"},"element_id":{"description":"the element id","type":"integer"},"result":{"description":"the result description","type":"string"},"result_type":{"description":"the result type","type":"string","enum":["Pass","Fail","Void"]},"next_action":{"$ref":"#/components/schemas/AssessmentResultActionModel"},"earliest_resit_date":{"description":"the earliest datetime for a resit to be scheduled","type":"string","format":"YYYY-MM-DDTHH:II:SS+HH:II"},"outcome_release_datetime":{"description":"the result outcome release datetime","type":"string","format":"YYYY-MM-DDTHH:II:SS+HH:II"},"attendance":{"description":"deprecated","properties":{"apprentice":{"description":"whether the apprentice attended","type":"boolean"},"epa":{"description":"whether the epa attended","type":"boolean"},"employer":{"description":"whether the employer attended","type":"boolean"},"provider":{"description":"whether the provider attended","type":"boolean"},"invigilator":{"description":"whether the invigilator attended","type":"boolean"}},"type":"object"},"apprentice_feedback":{"description":"apprentice feedback","type":"string"},"epa_feedback":{"description":"epa feedback","type":"string"},"epa_next_steps":{"description":"the epa next steps","type":"string"},"programme_id":{"description":"the programme id for the apprentice","type":"integer"},"apprentice":{"description":"","properties":{"url":{"description":"the resource url","type":"string"},"method":{"description":"the HTTP method","type":"string","enum":["GET"]}},"type":"object"},"plan":{"description":"","properties":{"url":{"description":"the resource url","type":"string"},"method":{"description":"the HTTP method","type":"string","enum":["GET"]}},"type":"object"},"assessment_result_reason_added":{"description":"the reason for the result being added","type":"string"},"qa_enforced_reason":{"description":"the QA enforced reason, if applicable","type":"string"},"created":{"description":"the created datetime for the resource","type":"string","format":"YYYY-MM-DDTHH:II:SS+HH:II"},"updated":{"description":"the updated datetime for the resource","type":"string","format":"YYYY-MM-DDTHH:II:SS+HH:II"},"attendees":{"description":"a list of element attendees","type":"array","items":{"properties":{"name":{"description":"name of the attendee","type":"string"},"type":{"description":"the usertype of the attendee, or guest","type":"string"},"attended":{"description":"if the attendee has attended the element","type":"boolean"}},"type":"object"}}},"type":"object","xml":{"name":"Result"}},"StartNewProgrammeTransformer":{"description":"Transform the response for a start new programme endpoint","properties":{"id":{"description":"the newly created programme id","type":"integer"},"programme":{"description":"","properties":{"url":{"description":"the resource url","type":"string"},"method":{"description":"the HTTP method","type":"string","enum":["GET"]}},"type":"object"}},"type":"object","xml":{"name":"StartNewProgramme"}}},"securitySchemes":{"epa_auth":{"type":"oauth2","flows":{"password":{"tokenUrl":"https://www.yourepasite.com/oauth/token","scopes":{"scope":"Description of the scope"}}}},"api_key":{"type":"apiKey","name":"Authorization","in":"header"}}},"tags":[{"name":"apprentice","description":"apprentice"},{"name":"change_of_circumstance_reason_type","description":"change_of_circumstance_reason_type"}]}