[{"data":1,"prerenderedAt":1765},["ShallowReactive",2],{"api-nav":3,"api-spec:index":351,"api-spec:op:set-student-password":636,"api-permissions-guide":1073,"api-reference-doc:set-student-password":1074},[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":459,"slug":460,"method":190,"path":461,"tag":62,"summary":192,"deprecated":134,"public":134,"permission":462,"scope":376,"order":463,"description":637,"permissions":638,"errors":639,"guide":365,"parameters":687,"requestBody":694,"responses":707,"successStatus":1071,"kind":1072,"paginated":134,"baseUrl":355,"tagDescription":420,"sandbox":364},"Replaces the password one of your students signs in with, whichever organization they sign in to. A password you choose lets whoever holds it sign in as the student, like a link from `createSigninLink`, but it never expires. So it needs the permission a sign-in link needs: `auth\u002Fsignin` on `mto` or on `*`. A `student\u002F*` role does not grant it.\n\nChecked in this order, before anything is written:\n1. **400** for a password shorter than 5 characters or longer than 72 bytes. These are rules of the body, so they are checked before the student is looked up.\n2. **404** for a student another account registered, answered exactly like one that does not exist.\n3. **409** once the student has confirmed their email address. The account is theirs from then on, and a password set over theirs would lock them out. Send them a sign-in link with `createSigninLink` instead.\n4. **400** for a password that contains the student’s first name, surname, username or email address (or the part of it before `@`), whatever the case. Parts shorter than 4 characters are not checked.\n\nThe password is stored hashed and never returned by any operation, and hashing is deliberately slow, so allow a second or more. Setting it again replaces it. The answer is the student, with references as ids.",[462],[640,644,647,650,654,659,664,669,674,679,683],{"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},"Invalid value for '_id': expected ObjectId.","`studentId` is not 24 hexadecimal digits.",{"code":641,"message":648,"status":642,"when":649},"password must not contain the student's own name, username or email address","`password` contains the student’s first name, surname, username or email address, as stored.",{"code":651,"status":652,"when":653},"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":655,"message":656,"status":657,"when":658},"forbidden","Insufficient role permissions",403,"The token is valid, but no role on your account allows `auth\u002Fsignin` on `mto`, the organization every operation without `:organizationId` acts on, or a role denies it.",{"code":660,"message":661,"status":662,"when":663},"not_found","Student not found!",404,"No student of yours has this `studentId`. A student another account registered answers the same.",{"code":665,"message":666,"status":667,"when":668},"conflict","This student has confirmed their email address, so the password is theirs to change. Send them a sign-in link with POST \u002Fv1\u002F:organizationId\u002Fauth\u002Fsignin.",409,"The student has confirmed their email address, so the password is theirs to change.",{"code":670,"message":671,"status":672,"when":673},"payload_too_large","request entity too large",413,"The body is larger than 100 kB.",{"code":675,"message":676,"status":677,"when":678},"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":680,"status":681,"when":682},"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":684,"status":685,"when":686},"internal_error",500,"Something failed on our side. Retry later, and quote `request_id` if it goes on.",[688],{"description":689,"in":690,"name":691,"required":364,"schema":692},"The student’s `_id`, as `registerStudent` returned it: 24 hexadecimal digits. A student another account registered answers exactly like one that does not exist.","path","studentId",{"type":693},"string",{"content":695,"required":364},{"application\u002Fjson":696},{"schema":697},{"x-ref":698,"description":699,"properties":700,"required":704,"type":706},"#\u002Fcomponents\u002Fschemas\u002FSetStudentPasswordRequest","The body of `setStudentPassword`.",{"password":701},{"description":702,"example":703,"minLength":396,"type":693},"The student’s new sign-in password. At least 5 characters and at most 72 bytes, and not containing the student’s own first name, surname, username or email address, whatever the case. Stored hashed, and never returned by any operation.","correct horse battery staple",[705],"password","object",{"200":708,"400":849,"401":897,"403":919,"404":940,"409":960,"413":981,"415":1002,"429":1023,"500":1049},{"content":709,"description":837,"headers":838},{"application\u002Fjson":710},{"schema":711},{"allOf":712},[713,751],{"x-ref":714,"description":715,"properties":716,"required":748,"type":706},"#\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":717,"message":721,"pagination":724},{"description":718,"enum":719,"example":364,"type":720},"Always `true` on a success.",[364],"boolean",{"description":722,"example":723,"type":693},"A sentence saying what happened, written for a person. Branch on the status and on `data`, not on this.","Request completed successfully.",{"allOf":725,"description":747},[726],{"x-ref":727,"description":728,"properties":729,"required":742,"type":706},"#\u002Fcomponents\u002Fschemas\u002FPaginationMeta","Where one page sits in the whole list.",{"page":730,"limit":733,"total":736,"totalPages":740},{"description":731,"example":367,"minimum":367,"type":732},"The page returned, counting from 1.","number",{"description":734,"example":478,"maximum":735,"minimum":367,"type":732},"Items per page: the `limit` you sent, 20 if you sent none, and never more than 100.",100,{"description":737,"example":738,"minimum":739,"type":732},"Items across every page.",57,0,{"description":741,"example":382,"minimum":739,"type":732},"Pages at this `limit`: `total \u002F limit`, rounded up.",[743,744,745,746],"page","limit","total","totalPages","On list operations only.",[749,750],"success","message",{"properties":752,"required":835,"type":706},{"message":753,"data":755},{"example":754,"type":693},"Password set.",{"x-ref":756,"description":757,"properties":758,"required":824,"type":706},"#\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":759,"mainId":762,"username":764,"firstName":767,"lastName":770,"fullName":773,"email":776,"emailConfirmed":779,"phone":781,"birth":784,"sex":787,"country":793,"city":796,"school":799,"grade":802,"supervisor":805,"partner":808,"activatedPlatformsThisSeason":811,"createdAt":817,"updatedAt":821},{"description":760,"example":761,"type":693},"The student’s id: what every `studentId` path parameter and body field takes.","6650a1b2c3d4e5f6a7b8c9d0",{"description":763,"example":761,"type":693},"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":765,"example":766,"type":693},"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":768,"example":769,"type":693},"The student’s first name.","Jane",{"description":771,"example":772,"type":693},"The student’s surname.","Doe",{"description":774,"example":775,"type":693},"`firstName` and `lastName` joined by a space, kept in step when either changes.","Jane Doe",{"description":777,"example":778,"type":693},"The student’s email address, in lower case.","jane.doe@example.com",{"description":780,"example":134,"type":720},"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":782,"example":783,"type":693},"A phone number, as you sent it.","+1 555 0100",{"description":785,"example":786,"type":693},"Date of birth, `DD\u002FMM\u002FYYYY`.","14\u002F05\u002F2008",{"description":788,"enum":789,"example":791,"type":693},"`m`, `f` or `n`.",[790,791,792],"m","f","n",{"description":794,"example":795,"type":693},"The id of the student’s country.","6650a1b2c3d4e5f6a7b8c9d1",{"description":797,"example":798,"type":693},"The id of the student’s city. A city you sent by name is stored as the id it resolved to.","6650a1b2c3d4e5f6a7b8c9d2",{"description":800,"example":801,"type":693},"The id of the student’s school. A school you sent by name is stored as the id it resolved to.","6650a1b2c3d4e5f6a7b8c9d3",{"description":803,"example":804,"type":693},"The id of the student’s grade. A grade you sent by name is stored as the id it resolved to.","6650a1b2c3d4e5f6a7b8c9d4",{"description":806,"example":807,"type":693},"The id of the student’s supervisor, when one is attached.","6650a1b2c3d4e5f6a7b8c9d5",{"description":809,"example":810,"type":693},"The id of the student’s partner, when one is attached.","6650a1b2c3d4e5f6a7b8c9d6",{"description":812,"example":813,"items":815,"type":816},"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.",[814],"common",{"type":693},"array",{"description":818,"example":819,"format":820,"type":693},"When the student was registered.","2026-09-01T09:30:00.000Z","date-time",{"description":822,"example":823,"format":820,"type":693},"When the record last changed.","2026-09-02T14:05:00.000Z",[825,826,827,828,829,830,831,832,833,834],"_id","username","firstName","lastName","fullName","email","emailConfirmed","activatedPlatformsThisSeason","createdAt","updatedAt",[836],"data","Success: `message` is \"Password set.\".",{"X-RateLimit-Limit":839,"X-RateLimit-Remaining":843,"X-RateLimit-Reset":846},{"description":840,"schema":841},"Requests your account may make to this operation per window (100).",{"type":842},"integer",{"description":844,"schema":845},"Requests left in the current window.",{"type":842},{"description":847,"schema":848},"Seconds until the current window ends.",{"type":842},{"content":850,"description":896},{"application\u002Fjson":851},{"examples":852,"schema":865},{"bad_request":853,"bad_request_2":859,"bad_request_3":862},{"summary":643,"value":854},{"error":855},{"code":641,"documentation_url":856,"message":857,"request_id":858},"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":860},{"error":861},{"code":641,"documentation_url":856,"message":645,"request_id":858},{"summary":649,"value":863},{"error":864},{"code":641,"documentation_url":856,"message":648,"request_id":858},{"x-ref":866,"description":867,"properties":868,"required":894,"type":706},"#\u002Fcomponents\u002Fschemas\u002FErrorEnvelope","How every error response is wrapped.",{"error":869},{"x-ref":870,"description":871,"properties":872,"required":890,"type":706},"#\u002Fcomponents\u002Fschemas\u002FErrorDetail","What went wrong.",{"code":873,"message":879,"documentation_url":882,"request_id":886,"details":888},{"description":874,"enum":875,"example":660,"type":693},"A stable machine code: branch on this. Each one is explained at `documentation_url`.",[876,641,651,655,660,665,670,675,877,680,684,878],"invalid_email","unprocessable_entity","service_unavailable",{"description":880,"example":881,"type":693},"Written for a person, and may change: never branch on it.","Not found!",{"description":883,"example":884,"format":885,"type":693},"Where this code is explained.","https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#not_found","uri",{"description":887,"example":858,"type":693},"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":889,"type":706},"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.",[891,750,892,893],"code","documentation_url","request_id",[895],"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`: `studentId` is not 24 hexadecimal digits.\n- `bad_request`: `password` contains the student’s first name, surname, username or email address, as stored.",{"content":898,"description":918},{"application\u002Fjson":899},{"examples":900,"schema":906},{"unauthorized":901},{"summary":651,"value":902},{"error":903},{"code":651,"documentation_url":904,"message":905,"request_id":858},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#unauthorized","Authentication is required or the provided credentials are invalid.",{"x-ref":866,"description":867,"properties":907,"required":917,"type":706},{"error":908},{"x-ref":870,"description":871,"properties":909,"required":916,"type":706},{"code":910,"message":912,"documentation_url":913,"request_id":914,"details":915},{"description":874,"enum":911,"example":660,"type":693},[876,641,651,655,660,665,670,675,877,680,684,878],{"description":880,"example":881,"type":693},{"description":883,"example":884,"format":885,"type":693},{"description":887,"example":858,"type":693},{"additionalProperties":364,"description":889,"type":706},[891,750,892,893],[895],"`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":920,"description":939},{"application\u002Fjson":921},{"examples":922,"schema":927},{"forbidden":923},{"summary":655,"value":924},{"error":925},{"code":655,"documentation_url":926,"message":656,"request_id":858},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#forbidden",{"x-ref":866,"description":867,"properties":928,"required":938,"type":706},{"error":929},{"x-ref":870,"description":871,"properties":930,"required":937,"type":706},{"code":931,"message":933,"documentation_url":934,"request_id":935,"details":936},{"description":874,"enum":932,"example":660,"type":693},[876,641,651,655,660,665,670,675,877,680,684,878],{"description":880,"example":881,"type":693},{"description":883,"example":884,"format":885,"type":693},{"description":887,"example":858,"type":693},{"additionalProperties":364,"description":889,"type":706},[891,750,892,893],[895],"`forbidden`: The token is valid, but no role on your account allows `auth\u002Fsignin` on `mto`, the organization every operation without `:organizationId` acts on, or a role denies it.",{"content":941,"description":959},{"application\u002Fjson":942},{"examples":943,"schema":947},{"not_found":944},{"summary":660,"value":945},{"error":946},{"code":660,"documentation_url":884,"message":661,"request_id":858},{"x-ref":866,"description":867,"properties":948,"required":958,"type":706},{"error":949},{"x-ref":870,"description":871,"properties":950,"required":957,"type":706},{"code":951,"message":953,"documentation_url":954,"request_id":955,"details":956},{"description":874,"enum":952,"example":660,"type":693},[876,641,651,655,660,665,670,675,877,680,684,878],{"description":880,"example":881,"type":693},{"description":883,"example":884,"format":885,"type":693},{"description":887,"example":858,"type":693},{"additionalProperties":364,"description":889,"type":706},[891,750,892,893],[895],"`not_found`: No student of yours has this `studentId`. A student another account registered answers the same.",{"content":961,"description":980},{"application\u002Fjson":962},{"examples":963,"schema":968},{"conflict":964},{"summary":665,"value":965},{"error":966},{"code":665,"documentation_url":967,"message":666,"request_id":858},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#conflict",{"x-ref":866,"description":867,"properties":969,"required":979,"type":706},{"error":970},{"x-ref":870,"description":871,"properties":971,"required":978,"type":706},{"code":972,"message":974,"documentation_url":975,"request_id":976,"details":977},{"description":874,"enum":973,"example":660,"type":693},[876,641,651,655,660,665,670,675,877,680,684,878],{"description":880,"example":881,"type":693},{"description":883,"example":884,"format":885,"type":693},{"description":887,"example":858,"type":693},{"additionalProperties":364,"description":889,"type":706},[891,750,892,893],[895],"`conflict`: The student has confirmed their email address, so the password is theirs to change.",{"content":982,"description":1001},{"application\u002Fjson":983},{"examples":984,"schema":989},{"payload_too_large":985},{"summary":670,"value":986},{"error":987},{"code":670,"documentation_url":988,"message":671,"request_id":858},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#payload_too_large",{"x-ref":866,"description":867,"properties":990,"required":1000,"type":706},{"error":991},{"x-ref":870,"description":871,"properties":992,"required":999,"type":706},{"code":993,"message":995,"documentation_url":996,"request_id":997,"details":998},{"description":874,"enum":994,"example":660,"type":693},[876,641,651,655,660,665,670,675,877,680,684,878],{"description":880,"example":881,"type":693},{"description":883,"example":884,"format":885,"type":693},{"description":887,"example":858,"type":693},{"additionalProperties":364,"description":889,"type":706},[891,750,892,893],[895],"`payload_too_large`: The body is larger than 100 kB.",{"content":1003,"description":1022},{"application\u002Fjson":1004},{"examples":1005,"schema":1010},{"unsupported_media_type":1006},{"summary":675,"value":1007},{"error":1008},{"code":675,"documentation_url":1009,"message":676,"request_id":858},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#unsupported_media_type",{"x-ref":866,"description":867,"properties":1011,"required":1021,"type":706},{"error":1012},{"x-ref":870,"description":871,"properties":1013,"required":1020,"type":706},{"code":1014,"message":1016,"documentation_url":1017,"request_id":1018,"details":1019},{"description":874,"enum":1015,"example":660,"type":693},[876,641,651,655,660,665,670,675,877,680,684,878],{"description":880,"example":881,"type":693},{"description":883,"example":884,"format":885,"type":693},{"description":887,"example":858,"type":693},{"additionalProperties":364,"description":889,"type":706},[891,750,892,893],[895],"`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":1024,"description":1044,"headers":1045},{"application\u002Fjson":1025},{"examples":1026,"schema":1032},{"too_many_requests":1027},{"summary":680,"value":1028},{"error":1029},{"code":680,"documentation_url":1030,"message":1031,"request_id":858},"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":866,"description":867,"properties":1033,"required":1043,"type":706},{"error":1034},{"x-ref":870,"description":871,"properties":1035,"required":1042,"type":706},{"code":1036,"message":1038,"documentation_url":1039,"request_id":1040,"details":1041},{"description":874,"enum":1037,"example":660,"type":693},[876,641,651,655,660,665,670,675,877,680,684,878],{"description":880,"example":881,"type":693},{"description":883,"example":884,"format":885,"type":693},{"description":887,"example":858,"type":693},{"additionalProperties":364,"description":889,"type":706},[891,750,892,893],[895],"`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":1046},{"description":1047,"schema":1048},"Seconds to wait before sending again; a request sent sooner is refused too.",{"type":842},{"content":1050,"description":1070},{"application\u002Fjson":1051},{"examples":1052,"schema":1058},{"internal_error":1053},{"summary":684,"value":1054},{"error":1055},{"code":684,"documentation_url":1056,"message":1057,"request_id":858},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#internal_error","An unexpected error occurred.",{"x-ref":866,"description":867,"properties":1059,"required":1069,"type":706},{"error":1060},{"x-ref":870,"description":871,"properties":1061,"required":1068,"type":706},{"code":1062,"message":1064,"documentation_url":1065,"request_id":1066,"details":1067},{"description":874,"enum":1063,"example":660,"type":693},[876,641,651,655,660,665,670,675,877,680,684,878],{"description":880,"example":881,"type":693},{"description":883,"example":884,"format":885,"type":693},{"description":887,"example":858,"type":693},{"additionalProperties":364,"description":889,"type":706},[891,750,892,893],[895],"`internal_error`: Something failed on our side. Retry later, and quote `request_id` if it goes on.","200","envelope",{"path":26},{"id":1075,"title":192,"apiPath":461,"body":1076,"deprecated":134,"description":1758,"extension":1759,"meta":1760,"method":190,"navigation":364,"operationId":459,"order":1761,"path":193,"permission":462,"public":134,"seo":1762,"stem":1763,"summary":192,"tag":62,"__hash__":1764},"apiReference\u002Fapi\u002Freference\u002Fset-student-password.md",{"type":1077,"value":1078,"toc":1756},"minimark",[1079,1752],[1080,1081,1082,1183,1429],"api-code-group",{},[1083,1084,1090],"pre",{"className":1085,"code":1086,"filename":1087,"language":1088,"meta":1089,"style":1089},"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 PUT 'https:\u002F\u002Fapi.main-team.org\u002Fv1\u002Fstudent\u002F\u003CstudentId>\u002Fpassword' \\\n  -H \"Authorization: Bearer $TOKEN\" \\\n  -H 'Content-Type: application\u002Fjson' \\\n  --data-binary @- \u003C\u003C'JSON'\n{\n  \"password\": \"correct horse battery staple\"\n}\nJSON\n","curl","bash","",[891,1091,1092,1100,1123,1140,1149,1163,1168,1173,1178],{"__ignoreMap":1089},[1093,1094,1096],"span",{"class":1095,"line":367},"line",[1093,1097,1099],{"class":1098},"sLBg1","# $TOKEN: a short-lived token you minted with your API key and secret\n",[1093,1101,1102,1105,1109,1112,1116,1119],{"class":1095,"line":377},[1093,1103,1087],{"class":1104},"soyes",[1093,1106,1108],{"class":1107},"s-5SL"," -sS",[1093,1110,1111],{"class":1107}," -X",[1093,1113,1115],{"class":1114},"sT6z2"," PUT",[1093,1117,1118],{"class":1114}," 'https:\u002F\u002Fapi.main-team.org\u002Fv1\u002Fstudent\u002F\u003CstudentId>\u002Fpassword'",[1093,1120,1122],{"class":1121},"sHUrx"," \\\n",[1093,1124,1125,1128,1131,1135,1138],{"class":1095,"line":382},[1093,1126,1127],{"class":1107},"  -H",[1093,1129,1130],{"class":1114}," \"Authorization: Bearer ",[1093,1132,1134],{"class":1133},"suds8","$TOKEN",[1093,1136,1137],{"class":1114},"\"",[1093,1139,1122],{"class":1121},[1093,1141,1142,1144,1147],{"class":1095,"line":391},[1093,1143,1127],{"class":1107},[1093,1145,1146],{"class":1114}," 'Content-Type: application\u002Fjson'",[1093,1148,1122],{"class":1121},[1093,1150,1151,1154,1157,1160],{"class":1095,"line":396},[1093,1152,1153],{"class":1107},"  --data-binary",[1093,1155,1156],{"class":1114}," @-",[1093,1158,1159],{"class":1121}," \u003C\u003C",[1093,1161,1162],{"class":1133},"'JSON'\n",[1093,1164,1165],{"class":1095,"line":402},[1093,1166,1167],{"class":1114},"{\n",[1093,1169,1170],{"class":1095,"line":407},[1093,1171,1172],{"class":1114},"  \"password\": \"correct horse battery staple\"\n",[1093,1174,1175],{"class":1095,"line":413},[1093,1176,1177],{"class":1114},"}\n",[1093,1179,1180],{"class":1095,"line":418},[1093,1181,1182],{"class":1133},"JSON\n",[1083,1184,1188],{"className":1185,"code":1186,"filename":308,"language":1187,"meta":1089,"style":1089},"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\u002F\u003CstudentId>\u002Fpassword', {\n  method: 'PUT',\n  headers: {\n    Authorization: `Bearer ${token}`,\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({\n    \"password\": \"correct horse battery staple\"\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",[891,1189,1190,1213,1218,1243,1254,1259,1275,1288,1293,1310,1320,1325,1330,1350,1418],{"__ignoreMap":1089},[1093,1191,1192,1195,1198,1201,1204,1207,1210],{"class":1095,"line":367},[1093,1193,1194],{"class":1121},"const",[1093,1196,1197],{"class":1107}," token",[1093,1199,1200],{"class":1121}," =",[1093,1202,1203],{"class":1133}," process.env.",[1093,1205,1206],{"class":1107},"TOKEN",[1093,1208,1209],{"class":1133},"; ",[1093,1211,1212],{"class":1098},"\u002F\u002F a short-lived token you minted with your API key and secret\n",[1093,1214,1215],{"class":1095,"line":377},[1093,1216,1217],{"emptyLinePlaceholder":364},"\n",[1093,1219,1220,1222,1225,1227,1230,1234,1237,1240],{"class":1095,"line":382},[1093,1221,1194],{"class":1121},[1093,1223,1224],{"class":1107}," res",[1093,1226,1200],{"class":1121},[1093,1228,1229],{"class":1121}," await",[1093,1231,1233],{"class":1232},"sKwhi"," fetch",[1093,1235,1236],{"class":1133},"(",[1093,1238,1239],{"class":1114},"'https:\u002F\u002Fapi.main-team.org\u002Fv1\u002Fstudent\u002F\u003CstudentId>\u002Fpassword'",[1093,1241,1242],{"class":1133},", {\n",[1093,1244,1245,1248,1251],{"class":1095,"line":391},[1093,1246,1247],{"class":1133},"  method: ",[1093,1249,1250],{"class":1114},"'PUT'",[1093,1252,1253],{"class":1133},",\n",[1093,1255,1256],{"class":1095,"line":396},[1093,1257,1258],{"class":1133},"  headers: {\n",[1093,1260,1261,1264,1267,1270,1273],{"class":1095,"line":402},[1093,1262,1263],{"class":1133},"    Authorization: ",[1093,1265,1266],{"class":1114},"`Bearer ${",[1093,1268,1269],{"class":1133},"token",[1093,1271,1272],{"class":1114},"}`",[1093,1274,1253],{"class":1133},[1093,1276,1277,1280,1283,1286],{"class":1095,"line":407},[1093,1278,1279],{"class":1114},"    'Content-Type'",[1093,1281,1282],{"class":1133},": ",[1093,1284,1285],{"class":1114},"'application\u002Fjson'",[1093,1287,1253],{"class":1133},[1093,1289,1290],{"class":1095,"line":413},[1093,1291,1292],{"class":1133},"  },\n",[1093,1294,1295,1298,1301,1304,1307],{"class":1095,"line":418},[1093,1296,1297],{"class":1133},"  body: ",[1093,1299,1300],{"class":1107},"JSON",[1093,1302,1303],{"class":1133},".",[1093,1305,1306],{"class":1232},"stringify",[1093,1308,1309],{"class":1133},"({\n",[1093,1311,1312,1315,1317],{"class":1095,"line":427},[1093,1313,1314],{"class":1114},"    \"password\"",[1093,1316,1282],{"class":1133},[1093,1318,1319],{"class":1114},"\"correct horse battery staple\"\n",[1093,1321,1322],{"class":1095,"line":432},[1093,1323,1324],{"class":1133},"  }),\n",[1093,1326,1327],{"class":1095,"line":437},[1093,1328,1329],{"class":1133},"});\n",[1093,1331,1332,1334,1337,1339,1341,1344,1347],{"class":1095,"line":442},[1093,1333,1194],{"class":1121},[1093,1335,1336],{"class":1107}," body",[1093,1338,1200],{"class":1121},[1093,1340,1229],{"class":1121},[1093,1342,1343],{"class":1133}," res.",[1093,1345,1346],{"class":1232},"json",[1093,1348,1349],{"class":1133},"();\n",[1093,1351,1352,1355,1358,1361,1364,1367,1370,1373,1375,1378,1381,1383,1386,1389,1392,1394,1396,1398,1400,1403,1405,1407,1409,1411,1413,1415],{"class":1095,"line":447},[1093,1353,1354],{"class":1121},"if",[1093,1356,1357],{"class":1133}," (",[1093,1359,1360],{"class":1121},"!",[1093,1362,1363],{"class":1133},"res.ok) ",[1093,1365,1366],{"class":1121},"throw",[1093,1368,1369],{"class":1121}," new",[1093,1371,1372],{"class":1232}," Error",[1093,1374,1236],{"class":1133},[1093,1376,1377],{"class":1114},"`${",[1093,1379,1380],{"class":1133},"res",[1093,1382,1303],{"class":1114},[1093,1384,1385],{"class":1133},"status",[1093,1387,1388],{"class":1114},"} ${",[1093,1390,1391],{"class":1133},"body",[1093,1393,1303],{"class":1114},[1093,1395,895],{"class":1133},[1093,1397,1303],{"class":1114},[1093,1399,891],{"class":1133},[1093,1401,1402],{"class":1114},"}: ${",[1093,1404,1391],{"class":1133},[1093,1406,1303],{"class":1114},[1093,1408,895],{"class":1133},[1093,1410,1303],{"class":1114},[1093,1412,750],{"class":1133},[1093,1414,1272],{"class":1114},[1093,1416,1417],{"class":1133},");\n",[1093,1419,1420,1423,1426],{"class":1095,"line":452},[1093,1421,1422],{"class":1133},"console.",[1093,1424,1425],{"class":1232},"log",[1093,1427,1428],{"class":1133},"(body.data);\n",[1083,1430,1434],{"className":1431,"code":1432,"filename":311,"language":1433,"meta":1089,"style":1089},"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\u002F\u003CstudentId>\u002Fpassword');\ncurl_setopt_array($ch, [\n    CURLOPT_CUSTOMREQUEST => 'PUT',\n    CURLOPT_HTTPHEADER => [\n        'Authorization: Bearer ' . $token,\n        'Content-Type: application\u002Fjson',\n    ],\n    CURLOPT_POSTFIELDS => json_encode([\n        'password' => 'correct horse battery staple',\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",[891,1435,1436,1444,1465,1469,1485,1493,1506,1516,1527,1534,1539,1552,1564,1569,1581,1586,1599,1615,1633,1637,1655,1673,1688,1704,1735,1739],{"__ignoreMap":1089},[1093,1437,1438,1441],{"class":1095,"line":367},[1093,1439,1440],{"class":1121},"\u003C?",[1093,1442,1443],{"class":1107},"php\n",[1093,1445,1446,1449,1452,1455,1457,1460,1463],{"class":1095,"line":377},[1093,1447,1448],{"class":1133},"$token ",[1093,1450,1451],{"class":1121},"=",[1093,1453,1454],{"class":1107}," getenv",[1093,1456,1236],{"class":1133},[1093,1458,1459],{"class":1114},"'TOKEN'",[1093,1461,1462],{"class":1133},"); ",[1093,1464,1212],{"class":1098},[1093,1466,1467],{"class":1095,"line":382},[1093,1468,1217],{"emptyLinePlaceholder":364},[1093,1470,1471,1474,1476,1479,1481,1483],{"class":1095,"line":391},[1093,1472,1473],{"class":1133},"$ch ",[1093,1475,1451],{"class":1121},[1093,1477,1478],{"class":1107}," curl_init",[1093,1480,1236],{"class":1133},[1093,1482,1239],{"class":1114},[1093,1484,1417],{"class":1133},[1093,1486,1487,1490],{"class":1095,"line":396},[1093,1488,1489],{"class":1107},"curl_setopt_array",[1093,1491,1492],{"class":1133},"($ch, [\n",[1093,1494,1495,1498,1501,1504],{"class":1095,"line":402},[1093,1496,1497],{"class":1107},"    CURLOPT_CUSTOMREQUEST",[1093,1499,1500],{"class":1121}," =>",[1093,1502,1503],{"class":1114}," 'PUT'",[1093,1505,1253],{"class":1133},[1093,1507,1508,1511,1513],{"class":1095,"line":407},[1093,1509,1510],{"class":1107},"    CURLOPT_HTTPHEADER",[1093,1512,1500],{"class":1121},[1093,1514,1515],{"class":1133}," [\n",[1093,1517,1518,1521,1524],{"class":1095,"line":413},[1093,1519,1520],{"class":1114},"        'Authorization: Bearer '",[1093,1522,1523],{"class":1121}," .",[1093,1525,1526],{"class":1133}," $token,\n",[1093,1528,1529,1532],{"class":1095,"line":418},[1093,1530,1531],{"class":1114},"        'Content-Type: application\u002Fjson'",[1093,1533,1253],{"class":1133},[1093,1535,1536],{"class":1095,"line":427},[1093,1537,1538],{"class":1133},"    ],\n",[1093,1540,1541,1544,1546,1549],{"class":1095,"line":432},[1093,1542,1543],{"class":1107},"    CURLOPT_POSTFIELDS",[1093,1545,1500],{"class":1121},[1093,1547,1548],{"class":1107}," json_encode",[1093,1550,1551],{"class":1133},"([\n",[1093,1553,1554,1557,1559,1562],{"class":1095,"line":437},[1093,1555,1556],{"class":1114},"        'password'",[1093,1558,1500],{"class":1121},[1093,1560,1561],{"class":1114}," 'correct horse battery staple'",[1093,1563,1253],{"class":1133},[1093,1565,1566],{"class":1095,"line":442},[1093,1567,1568],{"class":1133},"    ]),\n",[1093,1570,1571,1574,1576,1579],{"class":1095,"line":447},[1093,1572,1573],{"class":1107},"    CURLOPT_RETURNTRANSFER",[1093,1575,1500],{"class":1121},[1093,1577,1578],{"class":1107}," true",[1093,1580,1253],{"class":1133},[1093,1582,1583],{"class":1095,"line":452},[1093,1584,1585],{"class":1133},"]);\n",[1093,1587,1588,1591,1593,1596],{"class":1095,"line":457},[1093,1589,1590],{"class":1133},"$response ",[1093,1592,1451],{"class":1121},[1093,1594,1595],{"class":1107}," curl_exec",[1093,1597,1598],{"class":1133},"($ch);\n",[1093,1600,1601,1603,1606,1609,1612],{"class":1095,"line":463},[1093,1602,1354],{"class":1121},[1093,1604,1605],{"class":1133}," ($response ",[1093,1607,1608],{"class":1121},"===",[1093,1610,1611],{"class":1107}," false",[1093,1613,1614],{"class":1133},") {\n",[1093,1616,1617,1620,1622,1625,1627,1630],{"class":1095,"line":469},[1093,1618,1619],{"class":1121},"    throw",[1093,1621,1369],{"class":1121},[1093,1623,1624],{"class":1107}," RuntimeException",[1093,1626,1236],{"class":1133},[1093,1628,1629],{"class":1107},"curl_error",[1093,1631,1632],{"class":1133},"($ch));\n",[1093,1634,1635],{"class":1095,"line":474},[1093,1636,1177],{"class":1133},[1093,1638,1639,1642,1644,1647,1650,1653],{"class":1095,"line":478},[1093,1640,1641],{"class":1133},"$status ",[1093,1643,1451],{"class":1121},[1093,1645,1646],{"class":1107}," curl_getinfo",[1093,1648,1649],{"class":1133},"($ch, ",[1093,1651,1652],{"class":1107},"CURLINFO_RESPONSE_CODE",[1093,1654,1417],{"class":1133},[1093,1656,1657,1660,1662,1665,1668,1671],{"class":1095,"line":483},[1093,1658,1659],{"class":1133},"$body ",[1093,1661,1451],{"class":1121},[1093,1663,1664],{"class":1107}," json_decode",[1093,1666,1667],{"class":1133},"($response, ",[1093,1669,1670],{"class":1107},"true",[1093,1672,1417],{"class":1133},[1093,1674,1675,1677,1680,1683,1686],{"class":1095,"line":491},[1093,1676,1354],{"class":1121},[1093,1678,1679],{"class":1133}," ($status ",[1093,1681,1682],{"class":1121},">=",[1093,1684,1685],{"class":1107}," 400",[1093,1687,1614],{"class":1133},[1093,1689,1690,1693,1695,1698,1701],{"class":1095,"line":500},[1093,1691,1692],{"class":1133},"    $error ",[1093,1694,1451],{"class":1121},[1093,1696,1697],{"class":1133}," $body[",[1093,1699,1700],{"class":1114},"'error'",[1093,1702,1703],{"class":1133},"];\n",[1093,1705,1706,1708,1710,1712,1714,1716,1719,1722,1725,1728,1730,1733],{"class":1095,"line":506},[1093,1707,1619],{"class":1121},[1093,1709,1369],{"class":1121},[1093,1711,1624],{"class":1107},[1093,1713,1236],{"class":1133},[1093,1715,1137],{"class":1114},[1093,1717,1718],{"class":1133},"$status",[1093,1720,1721],{"class":1114}," {",[1093,1723,1724],{"class":1133},"$error",[1093,1726,1727],{"class":1114},"['code']}: {",[1093,1729,1724],{"class":1133},[1093,1731,1732],{"class":1114},"['message']}\"",[1093,1734,1417],{"class":1133},[1093,1736,1737],{"class":1095,"line":511},[1093,1738,1177],{"class":1133},[1093,1740,1741,1744,1747,1750],{"class":1095,"line":516},[1093,1742,1743],{"class":1107},"print_r",[1093,1745,1746],{"class":1133},"($body[",[1093,1748,1749],{"class":1114},"'data'",[1093,1751,1585],{"class":1133},[1753,1754,1755],"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":1089,"searchDepth":377,"depth":382,"links":1757},[],"Replaces the password one of your students signs in with, whichever organization they sign in to.","md",{},"17",{"title":192,"description":1758},"api\u002Freference\u002Fset-student-password","R05jUEHRY5z1BBYfk2iioqeAyauJH7sNp6N2S-ZIAYM",1791554613402]