[{"data":1,"prerenderedAt":2176},["ShallowReactive",2],{"api-nav":3,"api-spec:index":351,"api-spec:op:register-student":636,"api-permissions-guide":1109,"api-reference-doc:register-student":1110},[4,28,57,95,115,301,317,331],{"id":5,"title":6,"links":7,"groups":27},"start","Start here",[8,11,15,18,21,24],{"title":9,"to":10},"Overview","\u002Fapi",{"title":12,"to":13,"status":14},"Quickstart","\u002Fapi\u002Fquickstart","available",{"title":16,"to":17,"status":14},"Environments","\u002Fapi\u002Fenvironments",{"title":19,"to":20,"status":14},"Authentication","\u002Fapi\u002Fauthentication",{"title":22,"to":23,"status":14},"Organizations","\u002Fapi\u002Forganizations",{"title":25,"to":26,"status":14},"Permissions","\u002Fapi\u002Fpermissions",[],{"id":29,"title":30,"links":31,"groups":56},"concepts","Concepts",[32,35,38,41,44,47,50,53],{"title":33,"to":34,"status":14},"Requests and responses","\u002Fapi\u002Frequests-and-responses",{"title":36,"to":37,"status":14},"Identifiers","\u002Fapi\u002Fidentifiers",{"title":39,"to":40,"status":14},"Pagination","\u002Fapi\u002Fpagination",{"title":42,"to":43},"Errors","\u002Fapi\u002Ferrors",{"title":45,"to":46,"status":14},"Rate limits","\u002Fapi\u002Frate-limits",{"title":48,"to":49,"status":14},"Retries","\u002Fapi\u002Fretries-and-idempotency",{"title":51,"to":52,"status":14},"Security","\u002Fapi\u002Fsecurity",{"title":54,"to":55,"status":14},"Versioning","\u002Fapi\u002Fversioning",[],{"id":58,"title":59,"links":60,"groups":94},"resources","Guides",[61,64,67,70,73,76,79,82,85,88,91],{"title":62,"to":63,"status":14},"Students","\u002Fapi\u002Fguides\u002Fstudents",{"title":65,"to":66,"status":14},"Bulk registration","\u002Fapi\u002Fguides\u002Fbulk-registration",{"title":68,"to":69,"status":14},"Passwords","\u002Fapi\u002Fguides\u002Fpasswords",{"title":71,"to":72,"status":14},"Supervisors","\u002Fapi\u002Fguides\u002Fsupervisors",{"title":74,"to":75,"status":14},"Reference data","\u002Fapi\u002Fguides\u002Freference-data",{"title":77,"to":78,"status":14},"API account","\u002Fapi\u002Fguides\u002Fapi-account",{"title":80,"to":81,"status":14},"Sign-in links","\u002Fapi\u002Fguides\u002Fsign-in-links",{"title":83,"to":84,"status":14},"Exams","\u002Fapi\u002Fguides\u002Fexams",{"title":86,"to":87,"status":14},"Applications","\u002Fapi\u002Fguides\u002Fapplications",{"title":89,"to":90,"status":14},"Group challenges","\u002Fapi\u002Fguides\u002Fgroup-challenges",{"title":92,"to":93,"status":14},"Certificates and reports","\u002Fapi\u002Fguides\u002Fcertificates-and-reports",[],{"id":96,"title":97,"links":98,"groups":114},"tutorials","Tutorials",[99,102,105,108,111],{"title":100,"to":101,"status":14},"Register and apply","\u002Fapi\u002Ftutorials\u002Fregister-and-apply",{"title":103,"to":104,"status":14},"Send a student to the panel","\u002Fapi\u002Ftutorials\u002Fsend-student-to-panel",{"title":106,"to":107,"status":14},"Change an application","\u002Fapi\u002Ftutorials\u002Fchange-an-application",{"title":109,"to":110,"status":14},"Collect results","\u002Fapi\u002Ftutorials\u002Fcollect-results",{"title":112,"to":113,"status":14},"Token handling","\u002Fapi\u002Ftutorials\u002Ftoken-handling",[],{"id":116,"title":117,"links":118,"groups":125},"reference","Reference",[119,122],{"title":120,"to":121},"All endpoints","\u002Fapi\u002Freference",{"title":123,"to":124},"Sandbox console","\u002Fapi\u002Fconsole",[126,135,145,166,206,212,230,255,271],{"tag":127,"slug":128,"links":129},"Health","health",[130],{"title":131,"to":132,"method":133,"deprecated":134},"Check that the API is up","\u002Fapi\u002Freference\u002Fget-health","GET",false,{"tag":77,"slug":136,"links":137},"api-account",[138,142],{"title":139,"to":140,"method":141,"deprecated":134},"Revoke the token you send, before it expires","\u002Fapi\u002Freference\u002Frevoke-token","POST",{"title":143,"to":144,"method":133,"deprecated":134},"Fetch the API account your token belongs to","\u002Fapi\u002Freference\u002Fget-current-api-account",{"tag":74,"slug":146,"links":147},"reference-data",[148,151,154,157,160,163],{"title":149,"to":150,"method":133,"deprecated":134},"List the countries a student can be registered in","\u002Fapi\u002Freference\u002Flist-countries",{"title":152,"to":153,"method":133,"deprecated":134},"Fetch one country by its id","\u002Fapi\u002Freference\u002Fget-country",{"title":155,"to":156,"method":133,"deprecated":134},"List the grades a student can be registered with","\u002Fapi\u002Freference\u002Flist-grades",{"title":158,"to":159,"method":133,"deprecated":134},"Fetch one grade by its id","\u002Fapi\u002Freference\u002Fget-grade",{"title":161,"to":162,"method":133,"deprecated":134},"List the organizations and their ids","\u002Fapi\u002Freference\u002Flist-organizations",{"title":164,"to":165,"method":133,"deprecated":134},"Fetch one organization by its id","\u002Fapi\u002Freference\u002Fget-organization",{"tag":62,"slug":167,"links":168},"students",[169,172,175,178,181,184,187,191,194,197,200,203],{"title":170,"to":171,"method":133,"deprecated":134},"List your students","\u002Fapi\u002Freference\u002Flist-students",{"title":173,"to":174,"method":141,"deprecated":134},"Register a student","\u002Fapi\u002Freference\u002Fregister-student",{"title":176,"to":177,"method":141,"deprecated":134},"Check a registration without registering the student","\u002Fapi\u002Freference\u002Fcheck-student-registration",{"title":179,"to":180,"method":141,"deprecated":134},"Register many students at once","\u002Fapi\u002Freference\u002Fcreate-student-import",{"title":182,"to":183,"method":133,"deprecated":134},"Follow a batch of students you sent","\u002Fapi\u002Freference\u002Fget-student-import",{"title":185,"to":186,"method":133,"deprecated":134},"Fetch one of your students","\u002Fapi\u002Freference\u002Fget-student",{"title":188,"to":189,"method":190,"deprecated":134},"Update one of your students","\u002Fapi\u002Freference\u002Fupdate-student","PUT",{"title":192,"to":193,"method":190,"deprecated":134},"Set the sign-in password of one of your students","\u002Fapi\u002Freference\u002Fset-student-password",{"title":195,"to":196,"method":133,"deprecated":134},"List your students who can use this organization","\u002Fapi\u002Freference\u002Flist-org-students",{"title":198,"to":199,"method":133,"deprecated":134},"Fetch one of your students, if they can use this organization","\u002Fapi\u002Freference\u002Fget-org-student",{"title":201,"to":202,"method":190,"deprecated":134},"Update one of your students and give them access to this organization","\u002Fapi\u002Freference\u002Fupdate-org-student",{"title":204,"to":205,"method":190,"deprecated":134},"Link one of your students to a supervisor on this organization","\u002Fapi\u002Freference\u002Flink-student-supervisor",{"tag":80,"slug":207,"links":208},"sign-in-links",[209],{"title":210,"to":211,"method":141,"deprecated":134},"Create a single-use sign-in link for one of your students","\u002Fapi\u002Freference\u002Fcreate-signin-link",{"tag":83,"slug":213,"links":214},"exams",[215,218,221,224,227],{"title":216,"to":217,"method":133,"deprecated":134},"List the exams open for applications","\u002Fapi\u002Freference\u002Flist-exams",{"title":219,"to":220,"method":133,"deprecated":134},"List an organization’s exam categories","\u002Fapi\u002Freference\u002Flist-exam-categories",{"title":222,"to":223,"method":133,"deprecated":134},"Fetch one exam category","\u002Fapi\u002Freference\u002Fget-exam-category",{"title":225,"to":226,"method":133,"deprecated":134},"List the exams one of your students can apply to","\u002Fapi\u002Freference\u002Flist-available-exams",{"title":228,"to":229,"method":133,"deprecated":134},"Fetch one exam that is open for applications","\u002Fapi\u002Freference\u002Fget-exam",{"tag":86,"slug":231,"links":232},"applications",[233,236,239,242,245,248,251],{"title":234,"to":235,"method":133,"deprecated":134},"List your students’ applications in this organization","\u002Fapi\u002Freference\u002Flist-applications",{"title":237,"to":238,"method":141,"deprecated":134},"Enter one of your students for an exam","\u002Fapi\u002Freference\u002Fcreate-application",{"title":240,"to":241,"method":133,"deprecated":134},"List your students’ applications for one exam","\u002Fapi\u002Freference\u002Flist-exam-applications",{"title":243,"to":244,"method":133,"deprecated":134},"List one of your students’ applications in this organization","\u002Fapi\u002Freference\u002Flist-student-applications",{"title":246,"to":247,"method":133,"deprecated":134},"Fetch one of your students’ applications","\u002Fapi\u002Freference\u002Fget-application",{"title":249,"to":250,"method":190,"deprecated":134},"Move one of your students’ applications to another exam","\u002Fapi\u002Freference\u002Fmove-application",{"title":252,"to":253,"method":254,"deprecated":134},"Withdraw one of your students from an exam","\u002Fapi\u002Freference\u002Fdelete-application","DELETE",{"tag":256,"slug":257,"links":258},"Documents","documents",[259,262,265,268],{"title":260,"to":261,"method":133,"deprecated":134},"Download a certificate file","\u002Fapi\u002Freference\u002Fdownload-certificate",{"title":263,"to":264,"method":133,"deprecated":134},"List one of your students’ released certificates","\u002Fapi\u002Freference\u002Flist-student-certificates",{"title":266,"to":267,"method":133,"deprecated":134},"Download a result report file","\u002Fapi\u002Freference\u002Fdownload-report",{"title":269,"to":270,"method":133,"deprecated":134},"List one of your students’ released result reports","\u002Fapi\u002Freference\u002Flist-student-reports",{"tag":89,"slug":272,"links":273},"group-challenges",[274,277,280,283,286,289,292,295,298],{"title":275,"to":276,"method":133,"deprecated":134},"List the group challenges an organization runs","\u002Fapi\u002Freference\u002Flist-group-challenges",{"title":278,"to":279,"method":133,"deprecated":134},"Fetch one group challenge","\u002Fapi\u002Freference\u002Fget-group-challenge",{"title":281,"to":282,"method":133,"deprecated":134},"List the groups your students are in for a group challenge","\u002Fapi\u002Freference\u002Flist-group-challenge-groups",{"title":284,"to":285,"method":133,"deprecated":134},"Fetch one group, with its steps and files","\u002Fapi\u002Freference\u002Fget-group-challenge-group",{"title":287,"to":288,"method":133,"deprecated":134},"List what has happened in one group","\u002Fapi\u002Freference\u002Flist-group-challenge-activity",{"title":290,"to":291,"method":141,"deprecated":134},"Send a group’s finished work for one of your students","\u002Fapi\u002Freference\u002Fsubmit-group-challenge-work",{"title":293,"to":294,"method":141,"deprecated":134},"Submit one step of a group for one of your students","\u002Fapi\u002Freference\u002Fsubmit-group-challenge-step",{"title":296,"to":297,"method":133,"deprecated":134},"List your students’ eligibility and groups for a group challenge","\u002Fapi\u002Freference\u002Flist-group-challenge-students",{"title":299,"to":300,"method":133,"deprecated":134},"Fetch one of your students’ eligibility and group for a group challenge","\u002Fapi\u002Freference\u002Fget-group-challenge-student",{"id":302,"title":303,"links":304,"groups":316},"clients","Clients",[305,307,310,313],{"title":9,"to":306,"status":14},"\u002Fapi\u002Fclients",{"title":308,"to":309,"status":14},"Node.js","\u002Fapi\u002Fclients\u002Fnode",{"title":311,"to":312,"status":14},"PHP","\u002Fapi\u002Fclients\u002Fphp",{"title":314,"to":315,"status":14},"Build your own","\u002Fapi\u002Fclients\u002Fbuild-your-own",[],{"id":318,"title":319,"links":320,"groups":330},"agents","AI agents",[321,324,327],{"title":322,"to":323},"AI connections","\u002Fapi\u002Fmcp",{"title":325,"to":326},"What it can do","\u002Fapi\u002Fmcp\u002Ftools",{"title":328,"to":329},"Agent skills","\u002Fapi\u002Fskills",[],{"id":332,"title":333,"links":334,"groups":350},"help","Help",[335,338,341,344,347],{"title":336,"to":337,"status":14},"Glossary","\u002Fapi\u002Fglossary",{"title":339,"to":340,"status":14},"FAQ","\u002Fapi\u002Ffaq",{"title":342,"to":343,"status":14},"Troubleshooting","\u002Fapi\u002Ftroubleshooting",{"title":345,"to":346,"status":14},"Support","\u002Fapi\u002Fsupport",{"title":348,"to":349},"Changelog","\u002Fapi\u002Fchangelog",[],{"title":352,"version":353,"description":354,"baseUrl":355,"groups":356},"Main Team API","1.2.0","Register your students, enter them for exams, follow their applications, download their certificates and reports, and sign them in to an organization’s panel.\n\nEvery operation except the health check needs a bearer token: a JWT you sign yourself with HS256 and your account’s `apiSecret`. Put your `apiKey` in both the `kid` header and the `sub` claim, and set `iat` and `exp` at most 3600 seconds apart. Every authentication failure answers the same `401 unauthorized`.","https:\u002F\u002Fapi.main-team.org",[357,368,383,419,484,492,522,561,586],{"tag":127,"slug":128,"description":358,"guide":17,"operations":359},"Whether the API is up. No token needed, so it is the first call to make against an environment.",[360],{"operationId":361,"slug":362,"method":133,"path":363,"tag":127,"summary":131,"deprecated":134,"public":364,"permission":365,"scope":366,"order":367},"getHealth","get-health","\u002Fv1\u002Fhealth",true,null,"public",1,{"tag":77,"slug":136,"description":369,"guide":78,"operations":370},"The account your token belongs to, and revoking a token before it expires.",[371,378],{"operationId":372,"slug":373,"method":141,"path":374,"tag":77,"summary":139,"deprecated":134,"public":134,"permission":375,"scope":376,"order":377},"revokeToken","revoke-token","\u002Fv1\u002Fapi-account\u002Frevoke-token","api\u002F*:$org:$ID","flat",2,{"operationId":379,"slug":380,"method":133,"path":381,"tag":77,"summary":143,"deprecated":134,"public":134,"permission":375,"scope":376,"order":382},"getCurrentApiAccount","get-current-api-account","\u002Fv1\u002Fapi-account\u002Fvalidate-me",3,{"tag":74,"slug":146,"description":384,"guide":75,"operations":385},"Countries, grades and organizations. A student’s `country` and `grade` take these `_id`s, and so does every `:organizationId` in a path.",[386,392,397,403,408,414],{"operationId":387,"slug":388,"method":133,"path":389,"tag":74,"summary":149,"deprecated":134,"public":134,"permission":390,"scope":376,"order":391},"listCountries","list-countries","\u002Fv1\u002Fcountry","country\u002Fread:$org:$ID",4,{"operationId":393,"slug":394,"method":133,"path":395,"tag":74,"summary":152,"deprecated":134,"public":134,"permission":390,"scope":376,"order":396},"getCountry","get-country","\u002Fv1\u002Fcountry\u002F{id}",5,{"operationId":398,"slug":399,"method":133,"path":400,"tag":74,"summary":155,"deprecated":134,"public":134,"permission":401,"scope":376,"order":402},"listGrades","list-grades","\u002Fv1\u002Fgrade","grade\u002Fread:$org:$ID",6,{"operationId":404,"slug":405,"method":133,"path":406,"tag":74,"summary":158,"deprecated":134,"public":134,"permission":401,"scope":376,"order":407},"getGrade","get-grade","\u002Fv1\u002Fgrade\u002F{id}",7,{"operationId":409,"slug":410,"method":133,"path":411,"tag":74,"summary":161,"deprecated":134,"public":134,"permission":412,"scope":376,"order":413},"listOrganizations","list-organizations","\u002Fv1\u002Forganization","organization\u002Fread:$org:$ID",8,{"operationId":415,"slug":416,"method":133,"path":417,"tag":74,"summary":164,"deprecated":134,"public":134,"permission":412,"scope":376,"order":418},"getOrganization","get-organization","\u002Fv1\u002Forganization\u002F{id}",9,{"tag":62,"slug":167,"description":420,"guide":63,"operations":421},"Registering your students, reading and updating them, setting a password, and what each organization holds for them. You only ever see the students your account registered.",[422,428,433,438,443,448,453,458,464,470,475,479],{"operationId":423,"slug":424,"method":133,"path":425,"tag":62,"summary":170,"deprecated":134,"public":134,"permission":426,"scope":376,"order":427},"listStudents","list-students","\u002Fv1\u002Fstudent","student\u002Fread:$org:$ID",10,{"operationId":429,"slug":430,"method":141,"path":425,"tag":62,"summary":173,"deprecated":134,"public":134,"permission":431,"scope":376,"order":432},"registerStudent","register-student","student\u002Fcreate:$org:$ID",11,{"operationId":434,"slug":435,"method":141,"path":436,"tag":62,"summary":176,"deprecated":134,"public":134,"permission":431,"scope":376,"order":437},"checkStudentRegistration","check-student-registration","\u002Fv1\u002Fstudent\u002Fcheck",12,{"operationId":439,"slug":440,"method":141,"path":441,"tag":62,"summary":179,"deprecated":134,"public":134,"permission":431,"scope":376,"order":442},"createStudentImport","create-student-import","\u002Fv1\u002Fstudent\u002Fimport",13,{"operationId":444,"slug":445,"method":133,"path":446,"tag":62,"summary":182,"deprecated":134,"public":134,"permission":431,"scope":376,"order":447},"getStudentImport","get-student-import","\u002Fv1\u002Fstudent\u002Fimport\u002F{importId}",14,{"operationId":449,"slug":450,"method":133,"path":451,"tag":62,"summary":185,"deprecated":134,"public":134,"permission":426,"scope":376,"order":452},"getStudent","get-student","\u002Fv1\u002Fstudent\u002F{studentId}",15,{"operationId":454,"slug":455,"method":190,"path":451,"tag":62,"summary":188,"deprecated":134,"public":134,"permission":456,"scope":376,"order":457},"updateStudent","update-student","student\u002Fupdate:$org:$ID",16,{"operationId":459,"slug":460,"method":190,"path":461,"tag":62,"summary":192,"deprecated":134,"public":134,"permission":462,"scope":376,"order":463},"setStudentPassword","set-student-password","\u002Fv1\u002Fstudent\u002F{studentId}\u002Fpassword","auth\u002Fsignin:$org:$ID",17,{"operationId":465,"slug":466,"method":133,"path":467,"tag":62,"summary":195,"deprecated":134,"public":134,"permission":426,"scope":468,"order":469},"listOrgStudents","list-org-students","\u002Fv1\u002F{organizationId}\u002Fstudent","organization",18,{"operationId":471,"slug":472,"method":133,"path":473,"tag":62,"summary":198,"deprecated":134,"public":134,"permission":426,"scope":468,"order":474},"getOrgStudent","get-org-student","\u002Fv1\u002F{organizationId}\u002Fstudent\u002F{studentId}",19,{"operationId":476,"slug":477,"method":190,"path":473,"tag":62,"summary":201,"deprecated":134,"public":134,"permission":456,"scope":468,"order":478},"updateOrgStudent","update-org-student",20,{"operationId":480,"slug":481,"method":190,"path":482,"tag":62,"summary":204,"deprecated":134,"public":134,"permission":456,"scope":468,"order":483},"linkStudentSupervisor","link-student-supervisor","\u002Fv1\u002F{organizationId}\u002Fstudent\u002F{studentId}\u002Fsupervisor",21,{"tag":80,"slug":207,"description":485,"guide":81,"operations":486},"Links that sign one of your students into an organization’s panel. Each works once and expires two minutes after it is issued.",[487],{"operationId":488,"slug":489,"method":141,"path":490,"tag":80,"summary":210,"deprecated":134,"public":134,"permission":462,"scope":468,"order":491},"createSigninLink","create-signin-link","\u002Fv1\u002F{organizationId}\u002Fauth\u002Fsignin",22,{"tag":83,"slug":213,"description":493,"guide":84,"operations":494},"The exam categories and exams an organization runs, and the ones one of your students can apply to.",[495,501,507,512,517],{"operationId":496,"slug":497,"method":133,"path":498,"tag":83,"summary":216,"deprecated":134,"public":134,"permission":499,"scope":468,"order":500},"listExams","list-exams","\u002Fv1\u002F{organizationId}\u002Fexam","exam\u002Fread:$org:$ID",23,{"operationId":502,"slug":503,"method":133,"path":504,"tag":83,"summary":219,"deprecated":134,"public":134,"permission":505,"scope":468,"order":506},"listExamCategories","list-exam-categories","\u002Fv1\u002F{organizationId}\u002Fexam-category","exam-category\u002Fread:$org:$ID",24,{"operationId":508,"slug":509,"method":133,"path":510,"tag":83,"summary":222,"deprecated":134,"public":134,"permission":505,"scope":468,"order":511},"getExamCategory","get-exam-category","\u002Fv1\u002F{organizationId}\u002Fexam-category\u002F{categoryId}",25,{"operationId":513,"slug":514,"method":133,"path":515,"tag":83,"summary":225,"deprecated":134,"public":134,"permission":499,"scope":468,"order":516},"listAvailableExams","list-available-exams","\u002Fv1\u002F{organizationId}\u002Fexam\u002Favailable\u002F{studentId}",26,{"operationId":518,"slug":519,"method":133,"path":520,"tag":83,"summary":228,"deprecated":134,"public":134,"permission":499,"scope":468,"order":521},"getExam","get-exam","\u002Fv1\u002F{organizationId}\u002Fexam\u002F{examId}",27,{"tag":86,"slug":231,"description":523,"guide":87,"operations":524},"Entering your students for exams: creating, reading, moving and deleting their applications.",[525,531,536,541,546,551,556],{"operationId":526,"slug":527,"method":133,"path":528,"tag":86,"summary":234,"deprecated":134,"public":134,"permission":529,"scope":468,"order":530},"listApplications","list-applications","\u002Fv1\u002F{organizationId}\u002Fapplication","application\u002Fread:$org:$ID",28,{"operationId":532,"slug":533,"method":141,"path":528,"tag":86,"summary":237,"deprecated":134,"public":134,"permission":534,"scope":468,"order":535},"createApplication","create-application","application\u002Fcreate:$org:$ID",29,{"operationId":537,"slug":538,"method":133,"path":539,"tag":86,"summary":240,"deprecated":134,"public":134,"permission":529,"scope":468,"order":540},"listExamApplications","list-exam-applications","\u002Fv1\u002F{organizationId}\u002Fapplication\u002Fexam-applications\u002F{examId}",30,{"operationId":542,"slug":543,"method":133,"path":544,"tag":86,"summary":243,"deprecated":134,"public":134,"permission":529,"scope":468,"order":545},"listStudentApplications","list-student-applications","\u002Fv1\u002F{organizationId}\u002Fapplication\u002Fstudent-applications\u002F{studentId}",31,{"operationId":547,"slug":548,"method":133,"path":549,"tag":86,"summary":246,"deprecated":134,"public":134,"permission":529,"scope":468,"order":550},"getApplication","get-application","\u002Fv1\u002F{organizationId}\u002Fapplication\u002F{applicationId}",32,{"operationId":552,"slug":553,"method":190,"path":549,"tag":86,"summary":249,"deprecated":134,"public":134,"permission":554,"scope":468,"order":555},"moveApplication","move-application","application\u002Fupdate:$org:$ID",33,{"operationId":557,"slug":558,"method":254,"path":549,"tag":86,"summary":252,"deprecated":134,"public":134,"permission":559,"scope":468,"order":560},"deleteApplication","delete-application","application\u002Fdelete:$org:$ID",34,{"tag":256,"slug":257,"description":562,"guide":93,"operations":563},"Your students’ certificates and reports: listing them and downloading the files.",[564,570,575,581],{"operationId":565,"slug":566,"method":133,"path":567,"tag":256,"summary":260,"deprecated":134,"public":134,"permission":568,"scope":468,"order":569},"downloadCertificate","download-certificate","\u002Fv1\u002F{organizationId}\u002Fcertificate\u002Fdownload\u002F{certificateId}","certificate\u002Fread:$org:$ID",35,{"operationId":571,"slug":572,"method":133,"path":573,"tag":256,"summary":263,"deprecated":134,"public":134,"permission":568,"scope":468,"order":574},"listStudentCertificates","list-student-certificates","\u002Fv1\u002F{organizationId}\u002Fcertificate\u002F{userId}",36,{"operationId":576,"slug":577,"method":133,"path":578,"tag":256,"summary":266,"deprecated":134,"public":134,"permission":579,"scope":468,"order":580},"downloadReport","download-report","\u002Fv1\u002F{organizationId}\u002Freport\u002Fdownload\u002F{reportId}","report\u002Fread:$org:$ID",37,{"operationId":582,"slug":583,"method":133,"path":584,"tag":256,"summary":269,"deprecated":134,"public":134,"permission":579,"scope":468,"order":585},"listStudentReports","list-student-reports","\u002Fv1\u002F{organizationId}\u002Freport\u002F{userId}",38,{"tag":89,"slug":272,"description":587,"guide":90,"operations":588},"Online group challenges your students take part in: the challenges, which of your students can join, the groups they are in, each step and its files, what happened in a group, and submitting on your student’s behalf.",[589,595,600,605,610,615,621,626,631],{"operationId":590,"slug":591,"method":133,"path":592,"tag":89,"summary":275,"deprecated":134,"public":134,"permission":593,"scope":468,"order":594},"listGroupChallenges","list-group-challenges","\u002Fv1\u002F{organizationId}\u002Fgroup-challenge","group-challenge\u002Fread:$org:$ID",39,{"operationId":596,"slug":597,"method":133,"path":598,"tag":89,"summary":278,"deprecated":134,"public":134,"permission":593,"scope":468,"order":599},"getGroupChallenge","get-group-challenge","\u002Fv1\u002F{organizationId}\u002Fgroup-challenge\u002F{challengeId}",40,{"operationId":601,"slug":602,"method":133,"path":603,"tag":89,"summary":281,"deprecated":134,"public":134,"permission":593,"scope":468,"order":604},"listGroupChallengeGroups","list-group-challenge-groups","\u002Fv1\u002F{organizationId}\u002Fgroup-challenge\u002F{challengeId}\u002Fgroup",41,{"operationId":606,"slug":607,"method":133,"path":608,"tag":89,"summary":284,"deprecated":134,"public":134,"permission":593,"scope":468,"order":609},"getGroupChallengeGroup","get-group-challenge-group","\u002Fv1\u002F{organizationId}\u002Fgroup-challenge\u002F{challengeId}\u002Fgroup\u002F{groupId}",42,{"operationId":611,"slug":612,"method":133,"path":613,"tag":89,"summary":287,"deprecated":134,"public":134,"permission":593,"scope":468,"order":614},"listGroupChallengeActivity","list-group-challenge-activity","\u002Fv1\u002F{organizationId}\u002Fgroup-challenge\u002F{challengeId}\u002Fgroup\u002F{groupId}\u002Factivity",43,{"operationId":616,"slug":617,"method":141,"path":618,"tag":89,"summary":290,"deprecated":134,"public":134,"permission":619,"scope":468,"order":620},"submitGroupChallengeWork","submit-group-challenge-work","\u002Fv1\u002F{organizationId}\u002Fgroup-challenge\u002F{challengeId}\u002Fgroup\u002F{groupId}\u002Ffinal-submit","group-challenge\u002Fsubmit:$org:$ID",44,{"operationId":622,"slug":623,"method":141,"path":624,"tag":89,"summary":293,"deprecated":134,"public":134,"permission":619,"scope":468,"order":625},"submitGroupChallengeStep","submit-group-challenge-step","\u002Fv1\u002F{organizationId}\u002Fgroup-challenge\u002F{challengeId}\u002Fgroup\u002F{groupId}\u002Fstep\u002F{stepId}\u002Fsubmit",45,{"operationId":627,"slug":628,"method":133,"path":629,"tag":89,"summary":296,"deprecated":134,"public":134,"permission":593,"scope":468,"order":630},"listGroupChallengeStudents","list-group-challenge-students","\u002Fv1\u002F{organizationId}\u002Fgroup-challenge\u002F{challengeId}\u002Fstudent",46,{"operationId":632,"slug":633,"method":133,"path":634,"tag":89,"summary":299,"deprecated":134,"public":134,"permission":593,"scope":468,"order":635},"getGroupChallengeStudent","get-group-challenge-student","\u002Fv1\u002F{organizationId}\u002Fgroup-challenge\u002F{challengeId}\u002Fstudent\u002F{studentId}",47,{"operationId":429,"slug":430,"method":141,"path":425,"tag":62,"summary":173,"deprecated":134,"public":134,"permission":431,"scope":376,"order":432,"description":637,"permissions":638,"errors":639,"guide":365,"parameters":695,"requestBody":696,"responses":767,"successStatus":1107,"kind":1108,"paginated":134,"baseUrl":355,"tagDescription":420,"sandbox":364},"Creates a student under your account. From then on the student is one of yours: you can read and update them, send them a sign-in link, and apply them to exams.\n\n**What to look up first**\n- `country` is the `_id` of a country from `listCountries`. A name or an ISO code is refused.\n- `grade` is the `_id` of a grade from `listGrades`, or its name, `1` to `12`.\n- `city` is a city’s `_id` or its name within `country`, and `school` a school’s `_id` or its name within that country and city. There is no list of cities or schools: send the names your records hold. Names are matched without regard to case, and one that matches nothing is refused with 400. No country, grade, city or school is ever created.\n\n**What is set for you**\n- `username`: the country’s two-letter code, a letter and a number, such as `XXB1045` with a real code in place of `XX`. You cannot choose it, and it is how the student signs in and how support finds the account.\n- `fullName`, from `firstName` and `lastName`.\n- `activatedPlatformsThisSeason`: `[\"common\"]` unless you send a list.\n- `emailConfirmed`: `false`. Only the student can confirm their address.\n\n**A password is optional, and needs a second permission.** Sending `password` needs `auth\u002Fsignin` on `mto` as well as `student\u002Fcreate`; without it the request is refused with 403 before anything is read or written. It is stored hashed and never returned, and hashing is deliberately slow, so a registration that carries one takes a second or more longer. Leave it out to sign the student in with `createSigninLink` instead, or set one later with `setStudentPassword`.\n\n**Not idempotent.** Registering an email address one of your students already has is refused with 409, and the message ends with that student’s `_id`, so a replayed batch can fetch the student rather than create a second one. An address another account registered is refused with 409 as well, without an id.\n\nThe answer has `country`, `city`, `school` and `grade` as ids; `getStudent` resolves them. An organization holds no record of the student until they have signed in there once, for instance through a link from `createSigninLink`, and until then `createApplication` on that organization is refused with 409.",[431],[640,644,647,649,652,655,657,661,666,669,674,677,682,687,691],{"code":641,"status":642,"when":643},"bad_request",400,"The body is not valid JSON, breaks a field’s rules, or has a field this operation does not accept (\"property \u003Cname> should not exist\").",{"code":641,"message":645,"status":642,"when":646},"country is not a known country.","`country` is not the `_id` of a country `listCountries` lists, or the country has no two-letter code to begin a username with.",{"code":641,"status":642,"when":648},"`grade`, `city` or `school` matches nothing: no record has that `_id`, and none has that name (within `country`, and for a school within `city` too).",{"code":641,"message":650,"status":642,"when":651},"lastName should not be empty","`lastName` is missing or empty.",{"code":641,"message":653,"status":642,"when":654},"birth must be a real date in DD\u002FMM\u002FYYYY format","`birth` is not `DD\u002FMM\u002FYYYY`, or is not a date that exists, such as `31\u002F02\u002F2008`.",{"code":641,"status":642,"when":656},"`password` is shorter than 5 characters, longer than 72 bytes, or contains the student’s own name or email address.",{"code":658,"status":659,"when":660},"unauthorized",401,"The token is missing or malformed, is not signed with your account’s `apiSecret`, breaks the `iat` and `exp` rules, has expired or been revoked, or its account is not active. All of these answer the same.",{"code":662,"message":663,"status":664,"when":665},"forbidden","Insufficient role permissions",403,"The token is valid, but no role on your account allows `student\u002Fcreate` on `mto`, the organization every operation without `:organizationId` acts on, or a role denies it.",{"code":662,"message":667,"status":664,"when":668},"Setting a student's password needs the auth\u002Fsignin permission on mto, the same grant a sign-in link needs.","`password` was sent, and your account does not hold `auth\u002Fsignin` on `mto`. Nothing was written.",{"code":670,"message":671,"status":672,"when":673},"conflict","A student with that email is already registered to this account (6650a1b2c3d4e5f6a7b8c9d0).",409,"One of your students already has this email address. The message ends with that student’s `_id`.",{"code":670,"message":675,"status":672,"when":676},"That email address is already registered.","Another account registered this email address. The message does not say whose it is.",{"code":678,"message":679,"status":680,"when":681},"payload_too_large","request entity too large",413,"The body is larger than 100 kB.",{"code":683,"message":684,"status":685,"when":686},"unsupported_media_type","unsupported charset \"ISO-8859-1\"",415,"The body declares a charset that is not a UTF one (send UTF-8), or a `Content-Encoding` other than gzip, deflate or br.",{"code":688,"status":689,"when":690},"too_many_requests",429,"Your account has made more than 100 requests to this operation in the current 60-second window. Wait the seconds in `Retry-After` before sending again.",{"code":692,"status":693,"when":694},"internal_error",500,"Something failed on our side. Retry later, and quote `request_id` if it goes on.",[],{"content":697,"required":364},{"application\u002Fjson":698},{"schema":699},{"x-ref":700,"description":701,"properties":702,"required":757,"type":766},"#\u002Fcomponents\u002Fschemas\u002FRegisterStudentRequest","The body of `registerStudent`.",{"firstName":703,"lastName":707,"birth":710,"sex":714,"email":720,"email2":724,"phone":726,"country":729,"grade":733,"school":736,"city":739,"password":742,"activatedPlatformsThisSeason":745},{"description":704,"example":705,"type":706},"The student’s first name. Printed on certificates and reports, followed by `lastName`.","Jane","string",{"description":708,"example":709,"type":706},"The student’s surname. Printed on certificates and reports after `firstName`. It cannot be empty.","Doe",{"description":711,"example":712,"pattern":713,"type":706},"Date of birth as `DD\u002FMM\u002FYYYY`, and a date that exists: `31\u002F02\u002F2008` is refused. An ISO date such as `2008-05-14` is refused.","14\u002F05\u002F2008","^(0[1-9]|[12]\\d|3[01])\\\u002F(0[1-9]|1[0-2])\\\u002F\\d{4}$",{"description":715,"enum":716,"example":718,"type":706},"One of `m`, `f` or `n`.",[717,718,719],"m","f","n",{"description":721,"example":722,"format":723,"type":706},"The student’s email address, stored in lower case. An address belongs to one student on the whole platform, so one already registered, by your account or another, is refused with 409.","jane.doe@example.com","email",{"description":725,"type":706},"Leave this out. Any value but an empty one is refused with 400.",{"description":727,"example":728,"type":706},"A phone number, stored as you send it. No format is checked. On an update, `\"\"` clears it.","+1 555 0100",{"description":730,"example":731,"pattern":732,"type":706},"The `_id` of a country, from `listCountries` (`GET \u002Fv1\u002Fcountry`). An id only: a name or an ISO code is refused. Its two-letter code starts the student’s `username`.","6650a1b2c3d4e5f6a7b8c9d1","^[0-9a-fA-F]{24}$",{"description":734,"example":735,"type":706},"The `_id` of a grade, from `listGrades` (`GET \u002Fv1\u002Fgrade`), or its name, `1` to `12`. Either way the grade’s `_id` is what is stored. One that matches no grade is refused with 400. The grade decides which exams the student is offered.","10",{"description":737,"example":738,"type":706},"The `_id` of a school, or its name within `country` and `city`, matched without regard to case. There is no list of schools to look one up in: send the name your records hold. One that matches no school is refused with 400; no school is ever created.","Springfield High School",{"description":740,"example":741,"type":706},"The `_id` of a city, or its name within `country`, matched without regard to case. There is no list of cities to look one up in: send the name your records hold. One that matches no city is refused with 400; no city is ever created.","Springfield",{"description":743,"example":744,"minLength":396,"type":706},"The student’s sign-in password. Accepted only from an account that holds `auth\u002Fsignin` on `mto`; from any other the registration is refused with 403. At least 5 characters, the minimum the sign-up form applies, and at most 72 bytes, and not containing the student’s own name or email address. Stored hashed, and never returned by any operation. Omit it to register the student without one.","correct horse battery staple",{"description":746,"example":747,"items":749,"maxItems":402,"type":756},"The organizations the student takes part in this season, by `slug` (as `listOrganizations` gives it, except `mto`: the core record, which every student is on), or `common` for every organization. Registration sets `[\"common\"]` when you leave it out; `null` is refused with 400. At most 6 entries.",[748],"common",{"enum":750,"type":706},[748,751,752,753,754,755],"stem","hilingua","neo","gmath","coding","array",[758,759,760,761,723,762,763,764,765],"firstName","lastName","birth","sex","country","grade","school","city","object",{"201":768,"400":895,"401":947,"403":969,"409":993,"413":1017,"415":1038,"429":1059,"500":1085},{"content":769,"description":883,"headers":884},{"application\u002Fjson":770},{"schema":771},{"allOf":772},[773,811],{"x-ref":774,"description":775,"properties":776,"required":808,"type":766},"#\u002Fcomponents\u002Fschemas\u002FSuccessEnvelope","How every successful JSON response is wrapped. `data` is the result, and each operation declares its shape; list operations add `pagination`. `GET \u002Fv1\u002Fapi-account\u002Fvalidate-me` is the one operation that answers without this envelope.",{"success":777,"message":781,"pagination":784},{"description":778,"enum":779,"example":364,"type":780},"Always `true` on a success.",[364],"boolean",{"description":782,"example":783,"type":706},"A sentence saying what happened, written for a person. Branch on the status and on `data`, not on this.","Request completed successfully.",{"allOf":785,"description":807},[786],{"x-ref":787,"description":788,"properties":789,"required":802,"type":766},"#\u002Fcomponents\u002Fschemas\u002FPaginationMeta","Where one page sits in the whole list.",{"page":790,"limit":793,"total":796,"totalPages":800},{"description":791,"example":367,"minimum":367,"type":792},"The page returned, counting from 1.","number",{"description":794,"example":478,"maximum":795,"minimum":367,"type":792},"Items per page: the `limit` you sent, 20 if you sent none, and never more than 100.",100,{"description":797,"example":798,"minimum":799,"type":792},"Items across every page.",57,0,{"description":801,"example":382,"minimum":799,"type":792},"Pages at this `limit`: `total \u002F limit`, rounded up.",[803,804,805,806],"page","limit","total","totalPages","On list operations only.",[809,810],"success","message",{"properties":812,"required":881,"type":766},{"message":813,"data":815},{"example":814,"type":706},"User registered successfully.",{"x-ref":816,"description":817,"properties":818,"required":873,"type":766},"#\u002Fcomponents\u002Fschemas\u002FStudentRecordResponse","One of your students as stored, with `country`, `city`, `school`, `grade`, `supervisor` and `partner` as ids. What registration, the updates and `setStudentPassword` answer with; read the student to have them resolved.",{"_id":819,"mainId":822,"username":824,"firstName":827,"lastName":829,"fullName":831,"email":834,"emailConfirmed":836,"phone":838,"birth":840,"sex":842,"country":845,"city":847,"school":850,"grade":853,"supervisor":856,"partner":859,"activatedPlatformsThisSeason":862,"createdAt":866,"updatedAt":870},{"description":820,"example":821,"type":706},"The student’s id: what every `studentId` path parameter and body field takes.","6650a1b2c3d4e5f6a7b8c9d0",{"description":823,"example":821,"type":706},"Only on an organization’s own copy of a student, which `linkStudentSupervisor` answers with: there it is the student’s id, and `_id` is the organization’s own. Absent on every other operation.",{"description":825,"example":826,"type":706},"Issued at registration, never chosen by you: the country’s two-letter code, a letter, then a number. It is how the student signs in and how support refers to the account.","XXB1045",{"description":828,"example":705,"type":706},"The student’s first name.",{"description":830,"example":709,"type":706},"The student’s surname.",{"description":832,"example":833,"type":706},"`firstName` and `lastName` joined by a space, kept in step when either changes.","Jane Doe",{"description":835,"example":722,"type":706},"The student’s email address, in lower case.",{"description":837,"example":134,"type":780},"Whether the student has confirmed `email`. It starts `false`, only the student can make it `true`, and changing `email` sets it back to `false`. Once it is `true`, `setStudentPassword` is refused: the account is the student’s.",{"description":839,"example":728,"type":706},"A phone number, as you sent it.",{"description":841,"example":712,"type":706},"Date of birth, `DD\u002FMM\u002FYYYY`.",{"description":843,"enum":844,"example":718,"type":706},"`m`, `f` or `n`.",[717,718,719],{"description":846,"example":731,"type":706},"The id of the student’s country.",{"description":848,"example":849,"type":706},"The id of the student’s city. A city you sent by name is stored as the id it resolved to.","6650a1b2c3d4e5f6a7b8c9d2",{"description":851,"example":852,"type":706},"The id of the student’s school. A school you sent by name is stored as the id it resolved to.","6650a1b2c3d4e5f6a7b8c9d3",{"description":854,"example":855,"type":706},"The id of the student’s grade. A grade you sent by name is stored as the id it resolved to.","6650a1b2c3d4e5f6a7b8c9d4",{"description":857,"example":858,"type":706},"The id of the student’s supervisor, when one is attached.","6650a1b2c3d4e5f6a7b8c9d5",{"description":860,"example":861,"type":706},"The id of the student’s partner, when one is attached.","6650a1b2c3d4e5f6a7b8c9d6",{"description":863,"example":864,"items":865,"type":756},"The organizations the student is active on this season, by `slug`; `common` means every organization. Registration sets `common` unless you send a list. The organization-scoped student operations see a student only when this lists that organization or `common`, and updating a student through one adds that organization.",[748],{"type":706},{"description":867,"example":868,"format":869,"type":706},"When the student was registered.","2026-09-01T09:30:00.000Z","date-time",{"description":871,"example":872,"format":869,"type":706},"When the record last changed.","2026-09-02T14:05:00.000Z",[874,875,758,759,876,723,877,878,879,880],"_id","username","fullName","emailConfirmed","activatedPlatformsThisSeason","createdAt","updatedAt",[882],"data","Created: `message` is \"User registered successfully.\".",{"X-RateLimit-Limit":885,"X-RateLimit-Remaining":889,"X-RateLimit-Reset":892},{"description":886,"schema":887},"Requests your account may make to this operation per window (100).",{"type":888},"integer",{"description":890,"schema":891},"Requests left in the current window.",{"type":888},{"description":893,"schema":894},"Seconds until the current window ends.",{"type":888},{"content":896,"description":946},{"application\u002Fjson":897},{"examples":898,"schema":914},{"bad_request":899,"bad_request_2":905,"bad_request_3":908,"bad_request_4":911},{"summary":643,"value":900},{"error":901},{"code":641,"documentation_url":902,"message":903,"request_id":904},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#bad_request","The request was malformed or contained invalid parameters.","0b5c6d0e-8f7a-4b1c-9d2e-3f4a5b6c7d8e",{"summary":646,"value":906},{"error":907},{"code":641,"documentation_url":902,"message":645,"request_id":904},{"summary":651,"value":909},{"error":910},{"code":641,"documentation_url":902,"message":650,"request_id":904},{"summary":654,"value":912},{"error":913},{"code":641,"documentation_url":902,"message":653,"request_id":904},{"x-ref":915,"description":916,"properties":917,"required":944,"type":766},"#\u002Fcomponents\u002Fschemas\u002FErrorEnvelope","How every error response is wrapped.",{"error":918},{"x-ref":919,"description":920,"properties":921,"required":940,"type":766},"#\u002Fcomponents\u002Fschemas\u002FErrorDetail","What went wrong.",{"code":922,"message":929,"documentation_url":932,"request_id":936,"details":938},{"description":923,"enum":924,"example":926,"type":706},"A stable machine code: branch on this. Each one is explained at `documentation_url`.",[925,641,658,662,926,670,678,683,927,688,692,928],"invalid_email","not_found","unprocessable_entity","service_unavailable",{"description":930,"example":931,"type":706},"Written for a person, and may change: never branch on it.","Not found!",{"description":933,"example":934,"format":935,"type":706},"Where this code is explained.","https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#not_found","uri",{"description":937,"example":904,"type":706},"This request’s id, also sent as the `X-Request-Id` response header: the one you sent, when it was acceptable, or else one the API made. Quote it when you report a problem.",{"additionalProperties":364,"description":939,"type":766},"Present only where an operation says so, and then with the shape that operation documents — the rows it could not accept, say. Treat it as absent everywhere else, and ignore a `details` you do not recognise.",[941,810,942,943],"code","documentation_url","request_id",[945],"error","- `bad_request`: The body is not valid JSON, breaks a field’s rules, or has a field this operation does not accept (\"property \u003Cname> should not exist\").\n- `bad_request`: `country` is not the `_id` of a country `listCountries` lists, or the country has no two-letter code to begin a username with.\n- `bad_request`: `grade`, `city` or `school` matches nothing: no record has that `_id`, and none has that name (within `country`, and for a school within `city` too).\n- `bad_request`: `lastName` is missing or empty.\n- `bad_request`: `birth` is not `DD\u002FMM\u002FYYYY`, or is not a date that exists, such as `31\u002F02\u002F2008`.\n- `bad_request`: `password` is shorter than 5 characters, longer than 72 bytes, or contains the student’s own name or email address.",{"content":948,"description":968},{"application\u002Fjson":949},{"examples":950,"schema":956},{"unauthorized":951},{"summary":658,"value":952},{"error":953},{"code":658,"documentation_url":954,"message":955,"request_id":904},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#unauthorized","Authentication is required or the provided credentials are invalid.",{"x-ref":915,"description":916,"properties":957,"required":967,"type":766},{"error":958},{"x-ref":919,"description":920,"properties":959,"required":966,"type":766},{"code":960,"message":962,"documentation_url":963,"request_id":964,"details":965},{"description":923,"enum":961,"example":926,"type":706},[925,641,658,662,926,670,678,683,927,688,692,928],{"description":930,"example":931,"type":706},{"description":933,"example":934,"format":935,"type":706},{"description":937,"example":904,"type":706},{"additionalProperties":364,"description":939,"type":766},[941,810,942,943],[945],"`unauthorized`: The token is missing or malformed, is not signed with your account’s `apiSecret`, breaks the `iat` and `exp` rules, has expired or been revoked, or its account is not active. All of these answer the same.",{"content":970,"description":992},{"application\u002Fjson":971},{"examples":972,"schema":980},{"forbidden":973,"forbidden_2":977},{"summary":665,"value":974},{"error":975},{"code":662,"documentation_url":976,"message":663,"request_id":904},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#forbidden",{"summary":668,"value":978},{"error":979},{"code":662,"documentation_url":976,"message":667,"request_id":904},{"x-ref":915,"description":916,"properties":981,"required":991,"type":766},{"error":982},{"x-ref":919,"description":920,"properties":983,"required":990,"type":766},{"code":984,"message":986,"documentation_url":987,"request_id":988,"details":989},{"description":923,"enum":985,"example":926,"type":706},[925,641,658,662,926,670,678,683,927,688,692,928],{"description":930,"example":931,"type":706},{"description":933,"example":934,"format":935,"type":706},{"description":937,"example":904,"type":706},{"additionalProperties":364,"description":939,"type":766},[941,810,942,943],[945],"- `forbidden`: The token is valid, but no role on your account allows `student\u002Fcreate` on `mto`, the organization every operation without `:organizationId` acts on, or a role denies it.\n- `forbidden`: `password` was sent, and your account does not hold `auth\u002Fsignin` on `mto`. Nothing was written.",{"content":994,"description":1016},{"application\u002Fjson":995},{"examples":996,"schema":1004},{"conflict":997,"conflict_2":1001},{"summary":673,"value":998},{"error":999},{"code":670,"documentation_url":1000,"message":671,"request_id":904},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#conflict",{"summary":676,"value":1002},{"error":1003},{"code":670,"documentation_url":1000,"message":675,"request_id":904},{"x-ref":915,"description":916,"properties":1005,"required":1015,"type":766},{"error":1006},{"x-ref":919,"description":920,"properties":1007,"required":1014,"type":766},{"code":1008,"message":1010,"documentation_url":1011,"request_id":1012,"details":1013},{"description":923,"enum":1009,"example":926,"type":706},[925,641,658,662,926,670,678,683,927,688,692,928],{"description":930,"example":931,"type":706},{"description":933,"example":934,"format":935,"type":706},{"description":937,"example":904,"type":706},{"additionalProperties":364,"description":939,"type":766},[941,810,942,943],[945],"- `conflict`: One of your students already has this email address. The message ends with that student’s `_id`.\n- `conflict`: Another account registered this email address. The message does not say whose it is.",{"content":1018,"description":1037},{"application\u002Fjson":1019},{"examples":1020,"schema":1025},{"payload_too_large":1021},{"summary":678,"value":1022},{"error":1023},{"code":678,"documentation_url":1024,"message":679,"request_id":904},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#payload_too_large",{"x-ref":915,"description":916,"properties":1026,"required":1036,"type":766},{"error":1027},{"x-ref":919,"description":920,"properties":1028,"required":1035,"type":766},{"code":1029,"message":1031,"documentation_url":1032,"request_id":1033,"details":1034},{"description":923,"enum":1030,"example":926,"type":706},[925,641,658,662,926,670,678,683,927,688,692,928],{"description":930,"example":931,"type":706},{"description":933,"example":934,"format":935,"type":706},{"description":937,"example":904,"type":706},{"additionalProperties":364,"description":939,"type":766},[941,810,942,943],[945],"`payload_too_large`: The body is larger than 100 kB.",{"content":1039,"description":1058},{"application\u002Fjson":1040},{"examples":1041,"schema":1046},{"unsupported_media_type":1042},{"summary":683,"value":1043},{"error":1044},{"code":683,"documentation_url":1045,"message":684,"request_id":904},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#unsupported_media_type",{"x-ref":915,"description":916,"properties":1047,"required":1057,"type":766},{"error":1048},{"x-ref":919,"description":920,"properties":1049,"required":1056,"type":766},{"code":1050,"message":1052,"documentation_url":1053,"request_id":1054,"details":1055},{"description":923,"enum":1051,"example":926,"type":706},[925,641,658,662,926,670,678,683,927,688,692,928],{"description":930,"example":931,"type":706},{"description":933,"example":934,"format":935,"type":706},{"description":937,"example":904,"type":706},{"additionalProperties":364,"description":939,"type":766},[941,810,942,943],[945],"`unsupported_media_type`: The body declares a charset that is not a UTF one (send UTF-8), or a `Content-Encoding` other than gzip, deflate or br.",{"content":1060,"description":1080,"headers":1081},{"application\u002Fjson":1061},{"examples":1062,"schema":1068},{"too_many_requests":1063},{"summary":688,"value":1064},{"error":1065},{"code":688,"documentation_url":1066,"message":1067,"request_id":904},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#too_many_requests","Too many requests to this operation. Wait the number of seconds in Retry-After, then try again.",{"x-ref":915,"description":916,"properties":1069,"required":1079,"type":766},{"error":1070},{"x-ref":919,"description":920,"properties":1071,"required":1078,"type":766},{"code":1072,"message":1074,"documentation_url":1075,"request_id":1076,"details":1077},{"description":923,"enum":1073,"example":926,"type":706},[925,641,658,662,926,670,678,683,927,688,692,928],{"description":930,"example":931,"type":706},{"description":933,"example":934,"format":935,"type":706},{"description":937,"example":904,"type":706},{"additionalProperties":364,"description":939,"type":766},[941,810,942,943],[945],"`too_many_requests`: Your account has made more than 100 requests to this operation in the current 60-second window. Wait the seconds in `Retry-After` before sending again.",{"Retry-After":1082},{"description":1083,"schema":1084},"Seconds to wait before sending again; a request sent sooner is refused too.",{"type":888},{"content":1086,"description":1106},{"application\u002Fjson":1087},{"examples":1088,"schema":1094},{"internal_error":1089},{"summary":692,"value":1090},{"error":1091},{"code":692,"documentation_url":1092,"message":1093,"request_id":904},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#internal_error","An unexpected error occurred.",{"x-ref":915,"description":916,"properties":1095,"required":1105,"type":766},{"error":1096},{"x-ref":919,"description":920,"properties":1097,"required":1104,"type":766},{"code":1098,"message":1100,"documentation_url":1101,"request_id":1102,"details":1103},{"description":923,"enum":1099,"example":926,"type":706},[925,641,658,662,926,670,678,683,927,688,692,928],{"description":930,"example":931,"type":706},{"description":933,"example":934,"format":935,"type":706},{"description":937,"example":904,"type":706},{"additionalProperties":364,"description":939,"type":766},[941,810,942,943],[945],"`internal_error`: Something failed on our side. Retry later, and quote `request_id` if it goes on.","201","envelope",{"path":26},{"id":1111,"title":173,"apiPath":425,"body":1112,"deprecated":134,"description":2169,"extension":2170,"meta":2171,"method":141,"navigation":364,"operationId":429,"order":2172,"path":174,"permission":431,"public":134,"seo":2173,"stem":2174,"summary":173,"tag":62,"__hash__":2175},"apiReference\u002Fapi\u002Freference\u002Fregister-student.md",{"type":1113,"value":1114,"toc":2167},"minimark",[1115,2163],[1116,1117,1118,1289,1687],"api-code-group",{},[1119,1120,1126],"pre",{"className":1121,"code":1122,"filename":1123,"language":1124,"meta":1125,"style":1125},"language-bash shiki shiki-themes github-light-high-contrast github-dark-high-contrast","# $TOKEN: a short-lived token you minted with your API key and secret\ncurl -sS -X POST 'https:\u002F\u002Fapi.main-team.org\u002Fv1\u002Fstudent' \\\n  -H \"Authorization: Bearer $TOKEN\" \\\n  -H 'Content-Type: application\u002Fjson' \\\n  --data-binary @- \u003C\u003C'JSON'\n{\n  \"firstName\": \"Jane\",\n  \"lastName\": \"Doe\",\n  \"birth\": \"14\u002F05\u002F2008\",\n  \"sex\": \"f\",\n  \"email\": \"jane.doe@example.com\",\n  \"email2\": \"\u003Cemail2>\",\n  \"phone\": \"+1 555 0100\",\n  \"country\": \"6650a1b2c3d4e5f6a7b8c9d1\",\n  \"grade\": \"10\",\n  \"school\": \"Springfield High School\",\n  \"city\": \"Springfield\",\n  \"password\": \"correct horse battery staple\",\n  \"activatedPlatformsThisSeason\": [\n    \"common\"\n  ]\n}\nJSON\n","curl","bash","",[941,1127,1128,1136,1159,1176,1185,1199,1204,1209,1214,1219,1224,1229,1234,1239,1244,1249,1254,1259,1264,1269,1274,1279,1284],{"__ignoreMap":1125},[1129,1130,1132],"span",{"class":1131,"line":367},"line",[1129,1133,1135],{"class":1134},"sLBg1","# $TOKEN: a short-lived token you minted with your API key and secret\n",[1129,1137,1138,1141,1145,1148,1152,1155],{"class":1131,"line":377},[1129,1139,1123],{"class":1140},"soyes",[1129,1142,1144],{"class":1143},"s-5SL"," -sS",[1129,1146,1147],{"class":1143}," -X",[1129,1149,1151],{"class":1150},"sT6z2"," POST",[1129,1153,1154],{"class":1150}," 'https:\u002F\u002Fapi.main-team.org\u002Fv1\u002Fstudent'",[1129,1156,1158],{"class":1157},"sHUrx"," \\\n",[1129,1160,1161,1164,1167,1171,1174],{"class":1131,"line":382},[1129,1162,1163],{"class":1143},"  -H",[1129,1165,1166],{"class":1150}," \"Authorization: Bearer ",[1129,1168,1170],{"class":1169},"suds8","$TOKEN",[1129,1172,1173],{"class":1150},"\"",[1129,1175,1158],{"class":1157},[1129,1177,1178,1180,1183],{"class":1131,"line":391},[1129,1179,1163],{"class":1143},[1129,1181,1182],{"class":1150}," 'Content-Type: application\u002Fjson'",[1129,1184,1158],{"class":1157},[1129,1186,1187,1190,1193,1196],{"class":1131,"line":396},[1129,1188,1189],{"class":1143},"  --data-binary",[1129,1191,1192],{"class":1150}," @-",[1129,1194,1195],{"class":1157}," \u003C\u003C",[1129,1197,1198],{"class":1169},"'JSON'\n",[1129,1200,1201],{"class":1131,"line":402},[1129,1202,1203],{"class":1150},"{\n",[1129,1205,1206],{"class":1131,"line":407},[1129,1207,1208],{"class":1150},"  \"firstName\": \"Jane\",\n",[1129,1210,1211],{"class":1131,"line":413},[1129,1212,1213],{"class":1150},"  \"lastName\": \"Doe\",\n",[1129,1215,1216],{"class":1131,"line":418},[1129,1217,1218],{"class":1150},"  \"birth\": \"14\u002F05\u002F2008\",\n",[1129,1220,1221],{"class":1131,"line":427},[1129,1222,1223],{"class":1150},"  \"sex\": \"f\",\n",[1129,1225,1226],{"class":1131,"line":432},[1129,1227,1228],{"class":1150},"  \"email\": \"jane.doe@example.com\",\n",[1129,1230,1231],{"class":1131,"line":437},[1129,1232,1233],{"class":1150},"  \"email2\": \"\u003Cemail2>\",\n",[1129,1235,1236],{"class":1131,"line":442},[1129,1237,1238],{"class":1150},"  \"phone\": \"+1 555 0100\",\n",[1129,1240,1241],{"class":1131,"line":447},[1129,1242,1243],{"class":1150},"  \"country\": \"6650a1b2c3d4e5f6a7b8c9d1\",\n",[1129,1245,1246],{"class":1131,"line":452},[1129,1247,1248],{"class":1150},"  \"grade\": \"10\",\n",[1129,1250,1251],{"class":1131,"line":457},[1129,1252,1253],{"class":1150},"  \"school\": \"Springfield High School\",\n",[1129,1255,1256],{"class":1131,"line":463},[1129,1257,1258],{"class":1150},"  \"city\": \"Springfield\",\n",[1129,1260,1261],{"class":1131,"line":469},[1129,1262,1263],{"class":1150},"  \"password\": \"correct horse battery staple\",\n",[1129,1265,1266],{"class":1131,"line":474},[1129,1267,1268],{"class":1150},"  \"activatedPlatformsThisSeason\": [\n",[1129,1270,1271],{"class":1131,"line":478},[1129,1272,1273],{"class":1150},"    \"common\"\n",[1129,1275,1276],{"class":1131,"line":483},[1129,1277,1278],{"class":1150},"  ]\n",[1129,1280,1281],{"class":1131,"line":491},[1129,1282,1283],{"class":1150},"}\n",[1129,1285,1286],{"class":1131,"line":500},[1129,1287,1288],{"class":1169},"JSON\n",[1119,1290,1294],{"className":1291,"code":1292,"filename":308,"language":1293,"meta":1125,"style":1125},"language-js shiki shiki-themes github-light-high-contrast github-dark-high-contrast","const token = process.env.TOKEN; \u002F\u002F a short-lived token you minted with your API key and secret\n\nconst res = await fetch('https:\u002F\u002Fapi.main-team.org\u002Fv1\u002Fstudent', {\n  method: 'POST',\n  headers: {\n    Authorization: `Bearer ${token}`,\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({\n    \"firstName\": \"Jane\",\n    \"lastName\": \"Doe\",\n    \"birth\": \"14\u002F05\u002F2008\",\n    \"sex\": \"f\",\n    \"email\": \"jane.doe@example.com\",\n    \"email2\": \"\u003Cemail2>\",\n    \"phone\": \"+1 555 0100\",\n    \"country\": \"6650a1b2c3d4e5f6a7b8c9d1\",\n    \"grade\": \"10\",\n    \"school\": \"Springfield High School\",\n    \"city\": \"Springfield\",\n    \"password\": \"correct horse battery staple\",\n    \"activatedPlatformsThisSeason\": [\n      \"common\"\n    ]\n  }),\n});\nconst body = await res.json();\nif (!res.ok) throw new Error(`${res.status} ${body.error.code}: ${body.error.message}`);\nconsole.log(body.data);\n","js",[941,1295,1296,1319,1324,1349,1360,1365,1381,1394,1399,1416,1428,1440,1452,1464,1476,1488,1500,1512,1524,1536,1548,1560,1568,1573,1578,1583,1588,1608,1676],{"__ignoreMap":1125},[1129,1297,1298,1301,1304,1307,1310,1313,1316],{"class":1131,"line":367},[1129,1299,1300],{"class":1157},"const",[1129,1302,1303],{"class":1143}," token",[1129,1305,1306],{"class":1157}," =",[1129,1308,1309],{"class":1169}," process.env.",[1129,1311,1312],{"class":1143},"TOKEN",[1129,1314,1315],{"class":1169},"; ",[1129,1317,1318],{"class":1134},"\u002F\u002F a short-lived token you minted with your API key and secret\n",[1129,1320,1321],{"class":1131,"line":377},[1129,1322,1323],{"emptyLinePlaceholder":364},"\n",[1129,1325,1326,1328,1331,1333,1336,1340,1343,1346],{"class":1131,"line":382},[1129,1327,1300],{"class":1157},[1129,1329,1330],{"class":1143}," res",[1129,1332,1306],{"class":1157},[1129,1334,1335],{"class":1157}," await",[1129,1337,1339],{"class":1338},"sKwhi"," fetch",[1129,1341,1342],{"class":1169},"(",[1129,1344,1345],{"class":1150},"'https:\u002F\u002Fapi.main-team.org\u002Fv1\u002Fstudent'",[1129,1347,1348],{"class":1169},", {\n",[1129,1350,1351,1354,1357],{"class":1131,"line":391},[1129,1352,1353],{"class":1169},"  method: ",[1129,1355,1356],{"class":1150},"'POST'",[1129,1358,1359],{"class":1169},",\n",[1129,1361,1362],{"class":1131,"line":396},[1129,1363,1364],{"class":1169},"  headers: {\n",[1129,1366,1367,1370,1373,1376,1379],{"class":1131,"line":402},[1129,1368,1369],{"class":1169},"    Authorization: ",[1129,1371,1372],{"class":1150},"`Bearer ${",[1129,1374,1375],{"class":1169},"token",[1129,1377,1378],{"class":1150},"}`",[1129,1380,1359],{"class":1169},[1129,1382,1383,1386,1389,1392],{"class":1131,"line":407},[1129,1384,1385],{"class":1150},"    'Content-Type'",[1129,1387,1388],{"class":1169},": ",[1129,1390,1391],{"class":1150},"'application\u002Fjson'",[1129,1393,1359],{"class":1169},[1129,1395,1396],{"class":1131,"line":413},[1129,1397,1398],{"class":1169},"  },\n",[1129,1400,1401,1404,1407,1410,1413],{"class":1131,"line":418},[1129,1402,1403],{"class":1169},"  body: ",[1129,1405,1406],{"class":1143},"JSON",[1129,1408,1409],{"class":1169},".",[1129,1411,1412],{"class":1338},"stringify",[1129,1414,1415],{"class":1169},"({\n",[1129,1417,1418,1421,1423,1426],{"class":1131,"line":427},[1129,1419,1420],{"class":1150},"    \"firstName\"",[1129,1422,1388],{"class":1169},[1129,1424,1425],{"class":1150},"\"Jane\"",[1129,1427,1359],{"class":1169},[1129,1429,1430,1433,1435,1438],{"class":1131,"line":432},[1129,1431,1432],{"class":1150},"    \"lastName\"",[1129,1434,1388],{"class":1169},[1129,1436,1437],{"class":1150},"\"Doe\"",[1129,1439,1359],{"class":1169},[1129,1441,1442,1445,1447,1450],{"class":1131,"line":437},[1129,1443,1444],{"class":1150},"    \"birth\"",[1129,1446,1388],{"class":1169},[1129,1448,1449],{"class":1150},"\"14\u002F05\u002F2008\"",[1129,1451,1359],{"class":1169},[1129,1453,1454,1457,1459,1462],{"class":1131,"line":442},[1129,1455,1456],{"class":1150},"    \"sex\"",[1129,1458,1388],{"class":1169},[1129,1460,1461],{"class":1150},"\"f\"",[1129,1463,1359],{"class":1169},[1129,1465,1466,1469,1471,1474],{"class":1131,"line":447},[1129,1467,1468],{"class":1150},"    \"email\"",[1129,1470,1388],{"class":1169},[1129,1472,1473],{"class":1150},"\"jane.doe@example.com\"",[1129,1475,1359],{"class":1169},[1129,1477,1478,1481,1483,1486],{"class":1131,"line":452},[1129,1479,1480],{"class":1150},"    \"email2\"",[1129,1482,1388],{"class":1169},[1129,1484,1485],{"class":1150},"\"\u003Cemail2>\"",[1129,1487,1359],{"class":1169},[1129,1489,1490,1493,1495,1498],{"class":1131,"line":457},[1129,1491,1492],{"class":1150},"    \"phone\"",[1129,1494,1388],{"class":1169},[1129,1496,1497],{"class":1150},"\"+1 555 0100\"",[1129,1499,1359],{"class":1169},[1129,1501,1502,1505,1507,1510],{"class":1131,"line":463},[1129,1503,1504],{"class":1150},"    \"country\"",[1129,1506,1388],{"class":1169},[1129,1508,1509],{"class":1150},"\"6650a1b2c3d4e5f6a7b8c9d1\"",[1129,1511,1359],{"class":1169},[1129,1513,1514,1517,1519,1522],{"class":1131,"line":469},[1129,1515,1516],{"class":1150},"    \"grade\"",[1129,1518,1388],{"class":1169},[1129,1520,1521],{"class":1150},"\"10\"",[1129,1523,1359],{"class":1169},[1129,1525,1526,1529,1531,1534],{"class":1131,"line":474},[1129,1527,1528],{"class":1150},"    \"school\"",[1129,1530,1388],{"class":1169},[1129,1532,1533],{"class":1150},"\"Springfield High School\"",[1129,1535,1359],{"class":1169},[1129,1537,1538,1541,1543,1546],{"class":1131,"line":478},[1129,1539,1540],{"class":1150},"    \"city\"",[1129,1542,1388],{"class":1169},[1129,1544,1545],{"class":1150},"\"Springfield\"",[1129,1547,1359],{"class":1169},[1129,1549,1550,1553,1555,1558],{"class":1131,"line":483},[1129,1551,1552],{"class":1150},"    \"password\"",[1129,1554,1388],{"class":1169},[1129,1556,1557],{"class":1150},"\"correct horse battery staple\"",[1129,1559,1359],{"class":1169},[1129,1561,1562,1565],{"class":1131,"line":491},[1129,1563,1564],{"class":1150},"    \"activatedPlatformsThisSeason\"",[1129,1566,1567],{"class":1169},": [\n",[1129,1569,1570],{"class":1131,"line":500},[1129,1571,1572],{"class":1150},"      \"common\"\n",[1129,1574,1575],{"class":1131,"line":506},[1129,1576,1577],{"class":1169},"    ]\n",[1129,1579,1580],{"class":1131,"line":511},[1129,1581,1582],{"class":1169},"  }),\n",[1129,1584,1585],{"class":1131,"line":516},[1129,1586,1587],{"class":1169},"});\n",[1129,1589,1590,1592,1595,1597,1599,1602,1605],{"class":1131,"line":521},[1129,1591,1300],{"class":1157},[1129,1593,1594],{"class":1143}," body",[1129,1596,1306],{"class":1157},[1129,1598,1335],{"class":1157},[1129,1600,1601],{"class":1169}," res.",[1129,1603,1604],{"class":1338},"json",[1129,1606,1607],{"class":1169},"();\n",[1129,1609,1610,1613,1616,1619,1622,1625,1628,1631,1633,1636,1639,1641,1644,1647,1650,1652,1654,1656,1658,1661,1663,1665,1667,1669,1671,1673],{"class":1131,"line":530},[1129,1611,1612],{"class":1157},"if",[1129,1614,1615],{"class":1169}," (",[1129,1617,1618],{"class":1157},"!",[1129,1620,1621],{"class":1169},"res.ok) ",[1129,1623,1624],{"class":1157},"throw",[1129,1626,1627],{"class":1157}," new",[1129,1629,1630],{"class":1338}," Error",[1129,1632,1342],{"class":1169},[1129,1634,1635],{"class":1150},"`${",[1129,1637,1638],{"class":1169},"res",[1129,1640,1409],{"class":1150},[1129,1642,1643],{"class":1169},"status",[1129,1645,1646],{"class":1150},"} ${",[1129,1648,1649],{"class":1169},"body",[1129,1651,1409],{"class":1150},[1129,1653,945],{"class":1169},[1129,1655,1409],{"class":1150},[1129,1657,941],{"class":1169},[1129,1659,1660],{"class":1150},"}: ${",[1129,1662,1649],{"class":1169},[1129,1664,1409],{"class":1150},[1129,1666,945],{"class":1169},[1129,1668,1409],{"class":1150},[1129,1670,810],{"class":1169},[1129,1672,1378],{"class":1150},[1129,1674,1675],{"class":1169},");\n",[1129,1677,1678,1681,1684],{"class":1131,"line":535},[1129,1679,1680],{"class":1169},"console.",[1129,1682,1683],{"class":1338},"log",[1129,1685,1686],{"class":1169},"(body.data);\n",[1119,1688,1692],{"className":1689,"code":1690,"filename":311,"language":1691,"meta":1125,"style":1125},"language-php shiki shiki-themes github-light-high-contrast github-dark-high-contrast","\u003C?php\n$token = getenv('TOKEN'); \u002F\u002F a short-lived token you minted with your API key and secret\n\n$ch = curl_init('https:\u002F\u002Fapi.main-team.org\u002Fv1\u002Fstudent');\ncurl_setopt_array($ch, [\n    CURLOPT_CUSTOMREQUEST => 'POST',\n    CURLOPT_HTTPHEADER => [\n        'Authorization: Bearer ' . $token,\n        'Content-Type: application\u002Fjson',\n    ],\n    CURLOPT_POSTFIELDS => json_encode([\n        'firstName' => 'Jane',\n        'lastName' => 'Doe',\n        'birth' => '14\u002F05\u002F2008',\n        'sex' => 'f',\n        'email' => 'jane.doe@example.com',\n        'email2' => '\u003Cemail2>',\n        'phone' => '+1 555 0100',\n        'country' => '6650a1b2c3d4e5f6a7b8c9d1',\n        'grade' => '10',\n        'school' => 'Springfield High School',\n        'city' => 'Springfield',\n        'password' => 'correct horse battery staple',\n        'activatedPlatformsThisSeason' => [\n            'common',\n        ],\n    ]),\n    CURLOPT_RETURNTRANSFER => true,\n]);\n$response = curl_exec($ch);\nif ($response === false) {\n    throw new RuntimeException(curl_error($ch));\n}\n$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);\n$body = json_decode($response, true);\nif ($status >= 400) {\n    $error = $body['error'];\n    throw new RuntimeException(\"$status {$error['code']}: {$error['message']}\");\n}\nprint_r($body['data']);\n","php",[941,1693,1694,1702,1723,1727,1743,1751,1764,1774,1785,1792,1797,1810,1822,1834,1846,1858,1870,1882,1894,1906,1918,1930,1942,1954,1963,1970,1975,1980,1992,1997,2010,2026,2044,2048,2066,2084,2099,2115,2146,2150],{"__ignoreMap":1125},[1129,1695,1696,1699],{"class":1131,"line":367},[1129,1697,1698],{"class":1157},"\u003C?",[1129,1700,1701],{"class":1143},"php\n",[1129,1703,1704,1707,1710,1713,1715,1718,1721],{"class":1131,"line":377},[1129,1705,1706],{"class":1169},"$token ",[1129,1708,1709],{"class":1157},"=",[1129,1711,1712],{"class":1143}," getenv",[1129,1714,1342],{"class":1169},[1129,1716,1717],{"class":1150},"'TOKEN'",[1129,1719,1720],{"class":1169},"); ",[1129,1722,1318],{"class":1134},[1129,1724,1725],{"class":1131,"line":382},[1129,1726,1323],{"emptyLinePlaceholder":364},[1129,1728,1729,1732,1734,1737,1739,1741],{"class":1131,"line":391},[1129,1730,1731],{"class":1169},"$ch ",[1129,1733,1709],{"class":1157},[1129,1735,1736],{"class":1143}," curl_init",[1129,1738,1342],{"class":1169},[1129,1740,1345],{"class":1150},[1129,1742,1675],{"class":1169},[1129,1744,1745,1748],{"class":1131,"line":396},[1129,1746,1747],{"class":1143},"curl_setopt_array",[1129,1749,1750],{"class":1169},"($ch, [\n",[1129,1752,1753,1756,1759,1762],{"class":1131,"line":402},[1129,1754,1755],{"class":1143},"    CURLOPT_CUSTOMREQUEST",[1129,1757,1758],{"class":1157}," =>",[1129,1760,1761],{"class":1150}," 'POST'",[1129,1763,1359],{"class":1169},[1129,1765,1766,1769,1771],{"class":1131,"line":407},[1129,1767,1768],{"class":1143},"    CURLOPT_HTTPHEADER",[1129,1770,1758],{"class":1157},[1129,1772,1773],{"class":1169}," [\n",[1129,1775,1776,1779,1782],{"class":1131,"line":413},[1129,1777,1778],{"class":1150},"        'Authorization: Bearer '",[1129,1780,1781],{"class":1157}," .",[1129,1783,1784],{"class":1169}," $token,\n",[1129,1786,1787,1790],{"class":1131,"line":418},[1129,1788,1789],{"class":1150},"        'Content-Type: application\u002Fjson'",[1129,1791,1359],{"class":1169},[1129,1793,1794],{"class":1131,"line":427},[1129,1795,1796],{"class":1169},"    ],\n",[1129,1798,1799,1802,1804,1807],{"class":1131,"line":432},[1129,1800,1801],{"class":1143},"    CURLOPT_POSTFIELDS",[1129,1803,1758],{"class":1157},[1129,1805,1806],{"class":1143}," json_encode",[1129,1808,1809],{"class":1169},"([\n",[1129,1811,1812,1815,1817,1820],{"class":1131,"line":437},[1129,1813,1814],{"class":1150},"        'firstName'",[1129,1816,1758],{"class":1157},[1129,1818,1819],{"class":1150}," 'Jane'",[1129,1821,1359],{"class":1169},[1129,1823,1824,1827,1829,1832],{"class":1131,"line":442},[1129,1825,1826],{"class":1150},"        'lastName'",[1129,1828,1758],{"class":1157},[1129,1830,1831],{"class":1150}," 'Doe'",[1129,1833,1359],{"class":1169},[1129,1835,1836,1839,1841,1844],{"class":1131,"line":447},[1129,1837,1838],{"class":1150},"        'birth'",[1129,1840,1758],{"class":1157},[1129,1842,1843],{"class":1150}," '14\u002F05\u002F2008'",[1129,1845,1359],{"class":1169},[1129,1847,1848,1851,1853,1856],{"class":1131,"line":452},[1129,1849,1850],{"class":1150},"        'sex'",[1129,1852,1758],{"class":1157},[1129,1854,1855],{"class":1150}," 'f'",[1129,1857,1359],{"class":1169},[1129,1859,1860,1863,1865,1868],{"class":1131,"line":457},[1129,1861,1862],{"class":1150},"        'email'",[1129,1864,1758],{"class":1157},[1129,1866,1867],{"class":1150}," 'jane.doe@example.com'",[1129,1869,1359],{"class":1169},[1129,1871,1872,1875,1877,1880],{"class":1131,"line":463},[1129,1873,1874],{"class":1150},"        'email2'",[1129,1876,1758],{"class":1157},[1129,1878,1879],{"class":1150}," '\u003Cemail2>'",[1129,1881,1359],{"class":1169},[1129,1883,1884,1887,1889,1892],{"class":1131,"line":469},[1129,1885,1886],{"class":1150},"        'phone'",[1129,1888,1758],{"class":1157},[1129,1890,1891],{"class":1150}," '+1 555 0100'",[1129,1893,1359],{"class":1169},[1129,1895,1896,1899,1901,1904],{"class":1131,"line":474},[1129,1897,1898],{"class":1150},"        'country'",[1129,1900,1758],{"class":1157},[1129,1902,1903],{"class":1150}," '6650a1b2c3d4e5f6a7b8c9d1'",[1129,1905,1359],{"class":1169},[1129,1907,1908,1911,1913,1916],{"class":1131,"line":478},[1129,1909,1910],{"class":1150},"        'grade'",[1129,1912,1758],{"class":1157},[1129,1914,1915],{"class":1150}," '10'",[1129,1917,1359],{"class":1169},[1129,1919,1920,1923,1925,1928],{"class":1131,"line":483},[1129,1921,1922],{"class":1150},"        'school'",[1129,1924,1758],{"class":1157},[1129,1926,1927],{"class":1150}," 'Springfield High School'",[1129,1929,1359],{"class":1169},[1129,1931,1932,1935,1937,1940],{"class":1131,"line":491},[1129,1933,1934],{"class":1150},"        'city'",[1129,1936,1758],{"class":1157},[1129,1938,1939],{"class":1150}," 'Springfield'",[1129,1941,1359],{"class":1169},[1129,1943,1944,1947,1949,1952],{"class":1131,"line":500},[1129,1945,1946],{"class":1150},"        'password'",[1129,1948,1758],{"class":1157},[1129,1950,1951],{"class":1150}," 'correct horse battery staple'",[1129,1953,1359],{"class":1169},[1129,1955,1956,1959,1961],{"class":1131,"line":506},[1129,1957,1958],{"class":1150},"        'activatedPlatformsThisSeason'",[1129,1960,1758],{"class":1157},[1129,1962,1773],{"class":1169},[1129,1964,1965,1968],{"class":1131,"line":511},[1129,1966,1967],{"class":1150},"            'common'",[1129,1969,1359],{"class":1169},[1129,1971,1972],{"class":1131,"line":516},[1129,1973,1974],{"class":1169},"        ],\n",[1129,1976,1977],{"class":1131,"line":521},[1129,1978,1979],{"class":1169},"    ]),\n",[1129,1981,1982,1985,1987,1990],{"class":1131,"line":530},[1129,1983,1984],{"class":1143},"    CURLOPT_RETURNTRANSFER",[1129,1986,1758],{"class":1157},[1129,1988,1989],{"class":1143}," true",[1129,1991,1359],{"class":1169},[1129,1993,1994],{"class":1131,"line":535},[1129,1995,1996],{"class":1169},"]);\n",[1129,1998,1999,2002,2004,2007],{"class":1131,"line":540},[1129,2000,2001],{"class":1169},"$response ",[1129,2003,1709],{"class":1157},[1129,2005,2006],{"class":1143}," curl_exec",[1129,2008,2009],{"class":1169},"($ch);\n",[1129,2011,2012,2014,2017,2020,2023],{"class":1131,"line":545},[1129,2013,1612],{"class":1157},[1129,2015,2016],{"class":1169}," ($response ",[1129,2018,2019],{"class":1157},"===",[1129,2021,2022],{"class":1143}," false",[1129,2024,2025],{"class":1169},") {\n",[1129,2027,2028,2031,2033,2036,2038,2041],{"class":1131,"line":550},[1129,2029,2030],{"class":1157},"    throw",[1129,2032,1627],{"class":1157},[1129,2034,2035],{"class":1143}," RuntimeException",[1129,2037,1342],{"class":1169},[1129,2039,2040],{"class":1143},"curl_error",[1129,2042,2043],{"class":1169},"($ch));\n",[1129,2045,2046],{"class":1131,"line":555},[1129,2047,1283],{"class":1169},[1129,2049,2050,2053,2055,2058,2061,2064],{"class":1131,"line":560},[1129,2051,2052],{"class":1169},"$status ",[1129,2054,1709],{"class":1157},[1129,2056,2057],{"class":1143}," curl_getinfo",[1129,2059,2060],{"class":1169},"($ch, ",[1129,2062,2063],{"class":1143},"CURLINFO_RESPONSE_CODE",[1129,2065,1675],{"class":1169},[1129,2067,2068,2071,2073,2076,2079,2082],{"class":1131,"line":569},[1129,2069,2070],{"class":1169},"$body ",[1129,2072,1709],{"class":1157},[1129,2074,2075],{"class":1143}," json_decode",[1129,2077,2078],{"class":1169},"($response, ",[1129,2080,2081],{"class":1143},"true",[1129,2083,1675],{"class":1169},[1129,2085,2086,2088,2091,2094,2097],{"class":1131,"line":574},[1129,2087,1612],{"class":1157},[1129,2089,2090],{"class":1169}," ($status ",[1129,2092,2093],{"class":1157},">=",[1129,2095,2096],{"class":1143}," 400",[1129,2098,2025],{"class":1169},[1129,2100,2101,2104,2106,2109,2112],{"class":1131,"line":580},[1129,2102,2103],{"class":1169},"    $error ",[1129,2105,1709],{"class":1157},[1129,2107,2108],{"class":1169}," $body[",[1129,2110,2111],{"class":1150},"'error'",[1129,2113,2114],{"class":1169},"];\n",[1129,2116,2117,2119,2121,2123,2125,2127,2130,2133,2136,2139,2141,2144],{"class":1131,"line":585},[1129,2118,2030],{"class":1157},[1129,2120,1627],{"class":1157},[1129,2122,2035],{"class":1143},[1129,2124,1342],{"class":1169},[1129,2126,1173],{"class":1150},[1129,2128,2129],{"class":1169},"$status",[1129,2131,2132],{"class":1150}," {",[1129,2134,2135],{"class":1169},"$error",[1129,2137,2138],{"class":1150},"['code']}: {",[1129,2140,2135],{"class":1169},[1129,2142,2143],{"class":1150},"['message']}\"",[1129,2145,1675],{"class":1169},[1129,2147,2148],{"class":1131,"line":594},[1129,2149,1283],{"class":1169},[1129,2151,2152,2155,2158,2161],{"class":1131,"line":599},[1129,2153,2154],{"class":1143},"print_r",[1129,2156,2157],{"class":1169},"($body[",[1129,2159,2160],{"class":1150},"'data'",[1129,2162,1996],{"class":1169},[2164,2165,2166],"style",{},"html pre.shiki code .sLBg1, html code.shiki .sLBg1{--shiki-default:#66707B;--shiki-dark:#BDC4CC}html pre.shiki code .soyes, html code.shiki .soyes{--shiki-default:#702C00;--shiki-dark:#FFB757}html pre.shiki code .s-5SL, html code.shiki .s-5SL{--shiki-default:#023B95;--shiki-dark:#91CBFF}html pre.shiki code .sT6z2, html code.shiki .sT6z2{--shiki-default:#032563;--shiki-dark:#ADDCFF}html pre.shiki code .sHUrx, html code.shiki .sHUrx{--shiki-default:#A0111F;--shiki-dark:#FF9492}html pre.shiki code .suds8, html code.shiki .suds8{--shiki-default:#0E1116;--shiki-dark:#F0F3F6}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sKwhi, html code.shiki .sKwhi{--shiki-default:#622CBC;--shiki-dark:#DBB7FF}",{"title":1125,"searchDepth":377,"depth":382,"links":2168},[],"Creates a student under your account.","md",{},"11",{"title":173,"description":2169},"api\u002Freference\u002Fregister-student","x1UTz4B9xSnqpl5RN9T8GfUzUnRN6XncLDnJvvbEDlY",1791554613401]