[{"data":1,"prerenderedAt":2168},["ShallowReactive",2],{"api-nav":3,"api-spec:index":351,"api-spec:op:update-org-student":636,"api-permissions-guide":1130,"api-reference-doc:update-org-student":1131},[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":476,"slug":477,"method":190,"path":473,"tag":62,"summary":201,"deprecated":134,"public":134,"permission":456,"scope":468,"order":478,"description":637,"permissions":638,"errors":639,"guide":365,"parameters":696,"requestBody":709,"responses":767,"successStatus":1128,"kind":1129,"paginated":134,"baseUrl":355,"tagDescription":420,"sandbox":364},"Changes the fields you send and leaves the rest as they are: no field is required, and one you leave out is not cleared. It writes the student’s one record, the one `getStudent` returns and every organization shares, so a change made here shows everywhere.\n\n**Access to this organization.** Leave `activatedPlatformsThisSeason` out and this organization’s `slug` is added to it, unless it already holds `common`. The student then shows in `listOrgStudents` and can be sent a link with `createSigninLink`. This is how you give a student access, so unlike the reads it does not need them to have it already, and an empty body, `{}`, does only that. If you do send `activatedPlatformsThisSeason`, the values you send are added to the stored list, and this organization is added only if you name it. The list only ever grows: nothing is removed, a value it already holds is not added twice, and `[]` adds nothing.\n\n**Fields** follow registration’s rules: `birth` is a date that exists, as `DD\u002FMM\u002FYYYY` (`31\u002F02\u002F2008` is refused), `sex` is `m`, `f` or `n`, `country` is an id from `listCountries`, and `grade`, `city` and `school` take an id or a name. A `city` name is looked up in the student’s country, and a `school` name in their country and city: the ones in this body, or else the stored ones. A name or id that matches nothing is refused; nothing is ever created. `firstName`, `lastName`, `birth` and `sex` can be changed but not cleared: an empty value or `null` is refused. `phone` is cleared with `\"\"`. `password` is refused here: use `setStudentPassword`.\n\n**Email.** A new address sets `emailConfirmed` back to `false`, since nobody has confirmed it yet. Sending the address the student already has, in any letter case, changes nothing. An address another student already has is refused.\n\nSending the same body again leaves the student as the first call did. Answers with the stored record, references as ids; read the student to have them resolved. Only students your account registered can be updated; another account’s student answers 404, like an unknown id.",[456],[640,644,647,650,653,656,660,665,670,673,678,683,688,692],{"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 a well-formed id.",{"code":641,"message":648,"status":642,"when":649},"school is not a known school. This API does not create reference data.","`country`, `grade`, `city` or `school` matches no record, by id or by name, or a `city` or `school` name was sent for a student with no country (or, for a school, no city) to look it up in.",{"code":641,"message":651,"status":642,"when":652},"email must be a valid email address","`email` is `null`: an address can be changed, not removed. Any other value that is not an address is refused by the body’s rules (\"email must be an email\").",{"code":641,"message":654,"status":642,"when":655},"lastName should not be empty","`firstName`, `lastName`, `birth`, `sex`, `phone` or `activatedPlatformsThisSeason` is `null`, or `firstName` or `lastName` is empty. These can be changed, not removed; clear `phone` with `\"\"`.",{"code":657,"status":658,"when":659},"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":661,"message":662,"status":663,"when":664},"forbidden","Insufficient role permissions",403,"The token is valid, but no role on your account allows `student\u002Fupdate` on the organization in the path, or a role denies it.",{"code":666,"message":667,"status":668,"when":669},"not_found","Organization not found!",404,"`organizationId` is not the `_id` of an organization.",{"code":666,"message":671,"status":668,"when":672},"Student not found!","No student of yours has this `studentId`. A student registered by another account answers the same.",{"code":674,"message":675,"status":676,"when":677},"conflict","That email address is already registered.",409,"`email` is already another student’s address. The answer does not say whose.",{"code":679,"message":680,"status":681,"when":682},"payload_too_large","request entity too large",413,"The body is larger than 100 kB.",{"code":684,"message":685,"status":686,"when":687},"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":689,"status":690,"when":691},"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":693,"status":694,"when":695},"internal_error",500,"Something failed on our side. Retry later, and quote `request_id` if it goes on.",[697,705],{"description":698,"example":699,"in":700,"name":701,"required":364,"schema":702},"The organization’s `_id`: 24 hexadecimal digits, as `listOrganizations` (`GET \u002Fv1\u002Forganization`) lists it.","64b7f0c2a1d3e4f5a6b7c8d9","path","organizationId",{"pattern":703,"type":704},"^[0-9a-f]{24}$","string",{"description":706,"in":700,"name":707,"required":364,"schema":708},"The student’s id (`_id`), as `registerStudent` returned it.","studentId",{"type":704},{"content":710,"required":364},{"application\u002Fjson":711},{"schema":712},{"x-ref":713,"description":714,"properties":715,"type":766},"#\u002Fcomponents\u002Fschemas\u002FUpdateOrgStudentRequest","The body of `updateOrgStudent`. Every field is optional.",{"firstName":716,"lastName":719,"birth":722,"sex":726,"email":732,"email2":736,"phone":738,"country":741,"grade":745,"school":748,"city":751,"activatedPlatformsThisSeason":754},{"description":717,"example":718,"type":704},"The student’s first name. Printed on certificates and reports, followed by `lastName`.","Jane",{"description":720,"example":721,"type":704},"The student’s surname. Printed on certificates and reports after `firstName`. It cannot be empty.","Doe",{"description":723,"example":724,"pattern":725,"type":704},"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":727,"enum":728,"example":730,"type":704},"One of `m`, `f` or `n`.",[729,730,731],"m","f","n",{"description":733,"example":734,"format":735,"type":704},"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":737,"type":704},"Leave this out. Any value but an empty one is refused with 400.",{"description":739,"example":740,"type":704},"A phone number, stored as you send it. No format is checked. On an update, `\"\"` clears it.","+1 555 0100",{"description":742,"example":743,"pattern":744,"type":704},"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":746,"example":747,"type":704},"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":749,"example":750,"type":704},"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":752,"example":753,"type":704},"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":755,"example":756,"items":758,"maxItems":402,"type":765},"Organization slugs, or 'common' for every organization, to add to the student's list. Nothing is ever removed: a value the list already holds is not added twice, and `[]` adds nothing. Leave it out to add this organization, which adds nothing if the list holds 'common'. Send it and only what you name is added, so this organization is added only if you name it.",[757],"stem",{"enum":759,"type":704},[760,757,761,762,763,764],"common","hilingua","neo","gmath","coding","array","object",{"200":768,"400":897,"401":951,"403":973,"404":994,"409":1017,"413":1038,"415":1059,"429":1080,"500":1106},{"content":769,"description":885,"headers":886},{"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":704},"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":883,"type":766},{"message":813,"data":815},{"example":814,"type":704},"Student updated 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":704},"The student’s id: what every `studentId` path parameter and body field takes.","6650a1b2c3d4e5f6a7b8c9d0",{"description":823,"example":821,"type":704},"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":704},"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":718,"type":704},"The student’s first name.",{"description":830,"example":721,"type":704},"The student’s surname.",{"description":832,"example":833,"type":704},"`firstName` and `lastName` joined by a space, kept in step when either changes.","Jane Doe",{"description":835,"example":734,"type":704},"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":740,"type":704},"A phone number, as you sent it.",{"description":841,"example":724,"type":704},"Date of birth, `DD\u002FMM\u002FYYYY`.",{"description":843,"enum":844,"example":730,"type":704},"`m`, `f` or `n`.",[729,730,731],{"description":846,"example":743,"type":704},"The id of the student’s country.",{"description":848,"example":849,"type":704},"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":704},"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":704},"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":704},"The id of the student’s supervisor, when one is attached.","6650a1b2c3d4e5f6a7b8c9d5",{"description":860,"example":861,"type":704},"The id of the student’s partner, when one is attached.","6650a1b2c3d4e5f6a7b8c9d6",{"description":863,"example":864,"items":865,"type":765},"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.",[760],{"type":704},{"description":867,"example":868,"format":869,"type":704},"When the student was registered.","2026-09-01T09:30:00.000Z","date-time",{"description":871,"example":872,"format":869,"type":704},"When the record last changed.","2026-09-02T14:05:00.000Z",[874,875,876,877,878,735,879,880,881,882],"_id","username","firstName","lastName","fullName","emailConfirmed","activatedPlatformsThisSeason","createdAt","updatedAt",[884],"data","Success: `message` is \"Student updated successfully.\".",{"X-RateLimit-Limit":887,"X-RateLimit-Remaining":891,"X-RateLimit-Reset":894},{"description":888,"schema":889},"Requests your account may make to this operation per window (100).",{"type":890},"integer",{"description":892,"schema":893},"Requests left in the current window.",{"type":890},{"description":895,"schema":896},"Seconds until the current window ends.",{"type":890},{"content":898,"description":950},{"application\u002Fjson":899},{"examples":900,"schema":919},{"bad_request":901,"bad_request_2":907,"bad_request_3":910,"bad_request_4":913,"bad_request_5":916},{"summary":643,"value":902},{"error":903},{"code":641,"documentation_url":904,"message":905,"request_id":906},"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":908},{"error":909},{"code":641,"documentation_url":904,"message":645,"request_id":906},{"summary":649,"value":911},{"error":912},{"code":641,"documentation_url":904,"message":648,"request_id":906},{"summary":652,"value":914},{"error":915},{"code":641,"documentation_url":904,"message":651,"request_id":906},{"summary":655,"value":917},{"error":918},{"code":641,"documentation_url":904,"message":654,"request_id":906},{"x-ref":920,"description":921,"properties":922,"required":948,"type":766},"#\u002Fcomponents\u002Fschemas\u002FErrorEnvelope","How every error response is wrapped.",{"error":923},{"x-ref":924,"description":925,"properties":926,"required":944,"type":766},"#\u002Fcomponents\u002Fschemas\u002FErrorDetail","What went wrong.",{"code":927,"message":933,"documentation_url":936,"request_id":940,"details":942},{"description":928,"enum":929,"example":666,"type":704},"A stable machine code: branch on this. Each one is explained at `documentation_url`.",[930,641,657,661,666,674,679,684,931,689,693,932],"invalid_email","unprocessable_entity","service_unavailable",{"description":934,"example":935,"type":704},"Written for a person, and may change: never branch on it.","Not found!",{"description":937,"example":938,"format":939,"type":704},"Where this code is explained.","https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#not_found","uri",{"description":941,"example":906,"type":704},"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":943,"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.",[945,810,946,947],"code","documentation_url","request_id",[949],"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 a well-formed id.\n- `bad_request`: `country`, `grade`, `city` or `school` matches no record, by id or by name, or a `city` or `school` name was sent for a student with no country (or, for a school, no city) to look it up in.\n- `bad_request`: `email` is `null`: an address can be changed, not removed. Any other value that is not an address is refused by the body’s rules (\"email must be an email\").\n- `bad_request`: `firstName`, `lastName`, `birth`, `sex`, `phone` or `activatedPlatformsThisSeason` is `null`, or `firstName` or `lastName` is empty. These can be changed, not removed; clear `phone` with `\"\"`.",{"content":952,"description":972},{"application\u002Fjson":953},{"examples":954,"schema":960},{"unauthorized":955},{"summary":657,"value":956},{"error":957},{"code":657,"documentation_url":958,"message":959,"request_id":906},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#unauthorized","Authentication is required or the provided credentials are invalid.",{"x-ref":920,"description":921,"properties":961,"required":971,"type":766},{"error":962},{"x-ref":924,"description":925,"properties":963,"required":970,"type":766},{"code":964,"message":966,"documentation_url":967,"request_id":968,"details":969},{"description":928,"enum":965,"example":666,"type":704},[930,641,657,661,666,674,679,684,931,689,693,932],{"description":934,"example":935,"type":704},{"description":937,"example":938,"format":939,"type":704},{"description":941,"example":906,"type":704},{"additionalProperties":364,"description":943,"type":766},[945,810,946,947],[949],"`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":974,"description":993},{"application\u002Fjson":975},{"examples":976,"schema":981},{"forbidden":977},{"summary":661,"value":978},{"error":979},{"code":661,"documentation_url":980,"message":662,"request_id":906},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#forbidden",{"x-ref":920,"description":921,"properties":982,"required":992,"type":766},{"error":983},{"x-ref":924,"description":925,"properties":984,"required":991,"type":766},{"code":985,"message":987,"documentation_url":988,"request_id":989,"details":990},{"description":928,"enum":986,"example":666,"type":704},[930,641,657,661,666,674,679,684,931,689,693,932],{"description":934,"example":935,"type":704},{"description":937,"example":938,"format":939,"type":704},{"description":941,"example":906,"type":704},{"additionalProperties":364,"description":943,"type":766},[945,810,946,947],[949],"`forbidden`: The token is valid, but no role on your account allows `student\u002Fupdate` on the organization in the path, or a role denies it.",{"content":995,"description":1016},{"application\u002Fjson":996},{"examples":997,"schema":1004},{"not_found":998,"not_found_2":1001},{"summary":669,"value":999},{"error":1000},{"code":666,"documentation_url":938,"message":667,"request_id":906},{"summary":672,"value":1002},{"error":1003},{"code":666,"documentation_url":938,"message":671,"request_id":906},{"x-ref":920,"description":921,"properties":1005,"required":1015,"type":766},{"error":1006},{"x-ref":924,"description":925,"properties":1007,"required":1014,"type":766},{"code":1008,"message":1010,"documentation_url":1011,"request_id":1012,"details":1013},{"description":928,"enum":1009,"example":666,"type":704},[930,641,657,661,666,674,679,684,931,689,693,932],{"description":934,"example":935,"type":704},{"description":937,"example":938,"format":939,"type":704},{"description":941,"example":906,"type":704},{"additionalProperties":364,"description":943,"type":766},[945,810,946,947],[949],"- `not_found`: `organizationId` is not the `_id` of an organization.\n- `not_found`: No student of yours has this `studentId`. A student registered by another account answers the same.",{"content":1018,"description":1037},{"application\u002Fjson":1019},{"examples":1020,"schema":1025},{"conflict":1021},{"summary":674,"value":1022},{"error":1023},{"code":674,"documentation_url":1024,"message":675,"request_id":906},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#conflict",{"x-ref":920,"description":921,"properties":1026,"required":1036,"type":766},{"error":1027},{"x-ref":924,"description":925,"properties":1028,"required":1035,"type":766},{"code":1029,"message":1031,"documentation_url":1032,"request_id":1033,"details":1034},{"description":928,"enum":1030,"example":666,"type":704},[930,641,657,661,666,674,679,684,931,689,693,932],{"description":934,"example":935,"type":704},{"description":937,"example":938,"format":939,"type":704},{"description":941,"example":906,"type":704},{"additionalProperties":364,"description":943,"type":766},[945,810,946,947],[949],"`conflict`: `email` is already another student’s address. The answer does not say whose.",{"content":1039,"description":1058},{"application\u002Fjson":1040},{"examples":1041,"schema":1046},{"payload_too_large":1042},{"summary":679,"value":1043},{"error":1044},{"code":679,"documentation_url":1045,"message":680,"request_id":906},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#payload_too_large",{"x-ref":920,"description":921,"properties":1047,"required":1057,"type":766},{"error":1048},{"x-ref":924,"description":925,"properties":1049,"required":1056,"type":766},{"code":1050,"message":1052,"documentation_url":1053,"request_id":1054,"details":1055},{"description":928,"enum":1051,"example":666,"type":704},[930,641,657,661,666,674,679,684,931,689,693,932],{"description":934,"example":935,"type":704},{"description":937,"example":938,"format":939,"type":704},{"description":941,"example":906,"type":704},{"additionalProperties":364,"description":943,"type":766},[945,810,946,947],[949],"`payload_too_large`: The body is larger than 100 kB.",{"content":1060,"description":1079},{"application\u002Fjson":1061},{"examples":1062,"schema":1067},{"unsupported_media_type":1063},{"summary":684,"value":1064},{"error":1065},{"code":684,"documentation_url":1066,"message":685,"request_id":906},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#unsupported_media_type",{"x-ref":920,"description":921,"properties":1068,"required":1078,"type":766},{"error":1069},{"x-ref":924,"description":925,"properties":1070,"required":1077,"type":766},{"code":1071,"message":1073,"documentation_url":1074,"request_id":1075,"details":1076},{"description":928,"enum":1072,"example":666,"type":704},[930,641,657,661,666,674,679,684,931,689,693,932],{"description":934,"example":935,"type":704},{"description":937,"example":938,"format":939,"type":704},{"description":941,"example":906,"type":704},{"additionalProperties":364,"description":943,"type":766},[945,810,946,947],[949],"`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":1081,"description":1101,"headers":1102},{"application\u002Fjson":1082},{"examples":1083,"schema":1089},{"too_many_requests":1084},{"summary":689,"value":1085},{"error":1086},{"code":689,"documentation_url":1087,"message":1088,"request_id":906},"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":920,"description":921,"properties":1090,"required":1100,"type":766},{"error":1091},{"x-ref":924,"description":925,"properties":1092,"required":1099,"type":766},{"code":1093,"message":1095,"documentation_url":1096,"request_id":1097,"details":1098},{"description":928,"enum":1094,"example":666,"type":704},[930,641,657,661,666,674,679,684,931,689,693,932],{"description":934,"example":935,"type":704},{"description":937,"example":938,"format":939,"type":704},{"description":941,"example":906,"type":704},{"additionalProperties":364,"description":943,"type":766},[945,810,946,947],[949],"`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":1103},{"description":1104,"schema":1105},"Seconds to wait before sending again; a request sent sooner is refused too.",{"type":890},{"content":1107,"description":1127},{"application\u002Fjson":1108},{"examples":1109,"schema":1115},{"internal_error":1110},{"summary":693,"value":1111},{"error":1112},{"code":693,"documentation_url":1113,"message":1114,"request_id":906},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#internal_error","An unexpected error occurred.",{"x-ref":920,"description":921,"properties":1116,"required":1126,"type":766},{"error":1117},{"x-ref":924,"description":925,"properties":1118,"required":1125,"type":766},{"code":1119,"message":1121,"documentation_url":1122,"request_id":1123,"details":1124},{"description":928,"enum":1120,"example":666,"type":704},[930,641,657,661,666,674,679,684,931,689,693,932],{"description":934,"example":935,"type":704},{"description":937,"example":938,"format":939,"type":704},{"description":941,"example":906,"type":704},{"additionalProperties":364,"description":943,"type":766},[945,810,946,947],[949],"`internal_error`: Something failed on our side. Retry later, and quote `request_id` if it goes on.","200","envelope",{"path":26},{"id":1132,"title":201,"apiPath":473,"body":1133,"deprecated":134,"description":2161,"extension":2162,"meta":2163,"method":190,"navigation":364,"operationId":476,"order":2164,"path":202,"permission":456,"public":134,"seo":2165,"stem":2166,"summary":201,"tag":62,"__hash__":2167},"apiReference\u002Fapi\u002Freference\u002Fupdate-org-student.md",{"type":1134,"value":1135,"toc":2159},"minimark",[1136,2155],[1137,1138,1139,1305,1691],"api-code-group",{},[1140,1141,1147],"pre",{"className":1142,"code":1143,"filename":1144,"language":1145,"meta":1146,"style":1146},"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\u002F\u003CorganizationId>\u002Fstudent\u002F\u003CstudentId>' \\\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  \"activatedPlatformsThisSeason\": [\n    \"stem\"\n  ]\n}\nJSON\n","curl","bash","",[945,1148,1149,1157,1180,1197,1206,1220,1225,1230,1235,1240,1245,1250,1255,1260,1265,1270,1275,1280,1285,1290,1295,1300],{"__ignoreMap":1146},[1150,1151,1153],"span",{"class":1152,"line":367},"line",[1150,1154,1156],{"class":1155},"sLBg1","# $TOKEN: a short-lived token you minted with your API key and secret\n",[1150,1158,1159,1162,1166,1169,1173,1176],{"class":1152,"line":377},[1150,1160,1144],{"class":1161},"soyes",[1150,1163,1165],{"class":1164},"s-5SL"," -sS",[1150,1167,1168],{"class":1164}," -X",[1150,1170,1172],{"class":1171},"sT6z2"," PUT",[1150,1174,1175],{"class":1171}," 'https:\u002F\u002Fapi.main-team.org\u002Fv1\u002F\u003CorganizationId>\u002Fstudent\u002F\u003CstudentId>'",[1150,1177,1179],{"class":1178},"sHUrx"," \\\n",[1150,1181,1182,1185,1188,1192,1195],{"class":1152,"line":382},[1150,1183,1184],{"class":1164},"  -H",[1150,1186,1187],{"class":1171}," \"Authorization: Bearer ",[1150,1189,1191],{"class":1190},"suds8","$TOKEN",[1150,1193,1194],{"class":1171},"\"",[1150,1196,1179],{"class":1178},[1150,1198,1199,1201,1204],{"class":1152,"line":391},[1150,1200,1184],{"class":1164},[1150,1202,1203],{"class":1171}," 'Content-Type: application\u002Fjson'",[1150,1205,1179],{"class":1178},[1150,1207,1208,1211,1214,1217],{"class":1152,"line":396},[1150,1209,1210],{"class":1164},"  --data-binary",[1150,1212,1213],{"class":1171}," @-",[1150,1215,1216],{"class":1178}," \u003C\u003C",[1150,1218,1219],{"class":1190},"'JSON'\n",[1150,1221,1222],{"class":1152,"line":402},[1150,1223,1224],{"class":1171},"{\n",[1150,1226,1227],{"class":1152,"line":407},[1150,1228,1229],{"class":1171},"  \"firstName\": \"Jane\",\n",[1150,1231,1232],{"class":1152,"line":413},[1150,1233,1234],{"class":1171},"  \"lastName\": \"Doe\",\n",[1150,1236,1237],{"class":1152,"line":418},[1150,1238,1239],{"class":1171},"  \"birth\": \"14\u002F05\u002F2008\",\n",[1150,1241,1242],{"class":1152,"line":427},[1150,1243,1244],{"class":1171},"  \"sex\": \"f\",\n",[1150,1246,1247],{"class":1152,"line":432},[1150,1248,1249],{"class":1171},"  \"email\": \"jane.doe@example.com\",\n",[1150,1251,1252],{"class":1152,"line":437},[1150,1253,1254],{"class":1171},"  \"email2\": \"\u003Cemail2>\",\n",[1150,1256,1257],{"class":1152,"line":442},[1150,1258,1259],{"class":1171},"  \"phone\": \"+1 555 0100\",\n",[1150,1261,1262],{"class":1152,"line":447},[1150,1263,1264],{"class":1171},"  \"country\": \"6650a1b2c3d4e5f6a7b8c9d1\",\n",[1150,1266,1267],{"class":1152,"line":452},[1150,1268,1269],{"class":1171},"  \"grade\": \"10\",\n",[1150,1271,1272],{"class":1152,"line":457},[1150,1273,1274],{"class":1171},"  \"school\": \"Springfield High School\",\n",[1150,1276,1277],{"class":1152,"line":463},[1150,1278,1279],{"class":1171},"  \"city\": \"Springfield\",\n",[1150,1281,1282],{"class":1152,"line":469},[1150,1283,1284],{"class":1171},"  \"activatedPlatformsThisSeason\": [\n",[1150,1286,1287],{"class":1152,"line":474},[1150,1288,1289],{"class":1171},"    \"stem\"\n",[1150,1291,1292],{"class":1152,"line":478},[1150,1293,1294],{"class":1171},"  ]\n",[1150,1296,1297],{"class":1152,"line":483},[1150,1298,1299],{"class":1171},"}\n",[1150,1301,1302],{"class":1152,"line":491},[1150,1303,1304],{"class":1190},"JSON\n",[1140,1306,1310],{"className":1307,"code":1308,"filename":308,"language":1309,"meta":1146,"style":1146},"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\u002F\u003CorganizationId>\u002Fstudent\u002F\u003CstudentId>', {\n  method: 'PUT',\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    \"activatedPlatformsThisSeason\": [\n      \"stem\"\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",[945,1311,1312,1335,1340,1365,1376,1381,1397,1410,1415,1432,1444,1456,1468,1480,1492,1504,1516,1528,1540,1552,1564,1572,1577,1582,1587,1592,1612,1680],{"__ignoreMap":1146},[1150,1313,1314,1317,1320,1323,1326,1329,1332],{"class":1152,"line":367},[1150,1315,1316],{"class":1178},"const",[1150,1318,1319],{"class":1164}," token",[1150,1321,1322],{"class":1178}," =",[1150,1324,1325],{"class":1190}," process.env.",[1150,1327,1328],{"class":1164},"TOKEN",[1150,1330,1331],{"class":1190},"; ",[1150,1333,1334],{"class":1155},"\u002F\u002F a short-lived token you minted with your API key and secret\n",[1150,1336,1337],{"class":1152,"line":377},[1150,1338,1339],{"emptyLinePlaceholder":364},"\n",[1150,1341,1342,1344,1347,1349,1352,1356,1359,1362],{"class":1152,"line":382},[1150,1343,1316],{"class":1178},[1150,1345,1346],{"class":1164}," res",[1150,1348,1322],{"class":1178},[1150,1350,1351],{"class":1178}," await",[1150,1353,1355],{"class":1354},"sKwhi"," fetch",[1150,1357,1358],{"class":1190},"(",[1150,1360,1361],{"class":1171},"'https:\u002F\u002Fapi.main-team.org\u002Fv1\u002F\u003CorganizationId>\u002Fstudent\u002F\u003CstudentId>'",[1150,1363,1364],{"class":1190},", {\n",[1150,1366,1367,1370,1373],{"class":1152,"line":391},[1150,1368,1369],{"class":1190},"  method: ",[1150,1371,1372],{"class":1171},"'PUT'",[1150,1374,1375],{"class":1190},",\n",[1150,1377,1378],{"class":1152,"line":396},[1150,1379,1380],{"class":1190},"  headers: {\n",[1150,1382,1383,1386,1389,1392,1395],{"class":1152,"line":402},[1150,1384,1385],{"class":1190},"    Authorization: ",[1150,1387,1388],{"class":1171},"`Bearer ${",[1150,1390,1391],{"class":1190},"token",[1150,1393,1394],{"class":1171},"}`",[1150,1396,1375],{"class":1190},[1150,1398,1399,1402,1405,1408],{"class":1152,"line":407},[1150,1400,1401],{"class":1171},"    'Content-Type'",[1150,1403,1404],{"class":1190},": ",[1150,1406,1407],{"class":1171},"'application\u002Fjson'",[1150,1409,1375],{"class":1190},[1150,1411,1412],{"class":1152,"line":413},[1150,1413,1414],{"class":1190},"  },\n",[1150,1416,1417,1420,1423,1426,1429],{"class":1152,"line":418},[1150,1418,1419],{"class":1190},"  body: ",[1150,1421,1422],{"class":1164},"JSON",[1150,1424,1425],{"class":1190},".",[1150,1427,1428],{"class":1354},"stringify",[1150,1430,1431],{"class":1190},"({\n",[1150,1433,1434,1437,1439,1442],{"class":1152,"line":427},[1150,1435,1436],{"class":1171},"    \"firstName\"",[1150,1438,1404],{"class":1190},[1150,1440,1441],{"class":1171},"\"Jane\"",[1150,1443,1375],{"class":1190},[1150,1445,1446,1449,1451,1454],{"class":1152,"line":432},[1150,1447,1448],{"class":1171},"    \"lastName\"",[1150,1450,1404],{"class":1190},[1150,1452,1453],{"class":1171},"\"Doe\"",[1150,1455,1375],{"class":1190},[1150,1457,1458,1461,1463,1466],{"class":1152,"line":437},[1150,1459,1460],{"class":1171},"    \"birth\"",[1150,1462,1404],{"class":1190},[1150,1464,1465],{"class":1171},"\"14\u002F05\u002F2008\"",[1150,1467,1375],{"class":1190},[1150,1469,1470,1473,1475,1478],{"class":1152,"line":442},[1150,1471,1472],{"class":1171},"    \"sex\"",[1150,1474,1404],{"class":1190},[1150,1476,1477],{"class":1171},"\"f\"",[1150,1479,1375],{"class":1190},[1150,1481,1482,1485,1487,1490],{"class":1152,"line":447},[1150,1483,1484],{"class":1171},"    \"email\"",[1150,1486,1404],{"class":1190},[1150,1488,1489],{"class":1171},"\"jane.doe@example.com\"",[1150,1491,1375],{"class":1190},[1150,1493,1494,1497,1499,1502],{"class":1152,"line":452},[1150,1495,1496],{"class":1171},"    \"email2\"",[1150,1498,1404],{"class":1190},[1150,1500,1501],{"class":1171},"\"\u003Cemail2>\"",[1150,1503,1375],{"class":1190},[1150,1505,1506,1509,1511,1514],{"class":1152,"line":457},[1150,1507,1508],{"class":1171},"    \"phone\"",[1150,1510,1404],{"class":1190},[1150,1512,1513],{"class":1171},"\"+1 555 0100\"",[1150,1515,1375],{"class":1190},[1150,1517,1518,1521,1523,1526],{"class":1152,"line":463},[1150,1519,1520],{"class":1171},"    \"country\"",[1150,1522,1404],{"class":1190},[1150,1524,1525],{"class":1171},"\"6650a1b2c3d4e5f6a7b8c9d1\"",[1150,1527,1375],{"class":1190},[1150,1529,1530,1533,1535,1538],{"class":1152,"line":469},[1150,1531,1532],{"class":1171},"    \"grade\"",[1150,1534,1404],{"class":1190},[1150,1536,1537],{"class":1171},"\"10\"",[1150,1539,1375],{"class":1190},[1150,1541,1542,1545,1547,1550],{"class":1152,"line":474},[1150,1543,1544],{"class":1171},"    \"school\"",[1150,1546,1404],{"class":1190},[1150,1548,1549],{"class":1171},"\"Springfield High School\"",[1150,1551,1375],{"class":1190},[1150,1553,1554,1557,1559,1562],{"class":1152,"line":478},[1150,1555,1556],{"class":1171},"    \"city\"",[1150,1558,1404],{"class":1190},[1150,1560,1561],{"class":1171},"\"Springfield\"",[1150,1563,1375],{"class":1190},[1150,1565,1566,1569],{"class":1152,"line":483},[1150,1567,1568],{"class":1171},"    \"activatedPlatformsThisSeason\"",[1150,1570,1571],{"class":1190},": [\n",[1150,1573,1574],{"class":1152,"line":491},[1150,1575,1576],{"class":1171},"      \"stem\"\n",[1150,1578,1579],{"class":1152,"line":500},[1150,1580,1581],{"class":1190},"    ]\n",[1150,1583,1584],{"class":1152,"line":506},[1150,1585,1586],{"class":1190},"  }),\n",[1150,1588,1589],{"class":1152,"line":511},[1150,1590,1591],{"class":1190},"});\n",[1150,1593,1594,1596,1599,1601,1603,1606,1609],{"class":1152,"line":516},[1150,1595,1316],{"class":1178},[1150,1597,1598],{"class":1164}," body",[1150,1600,1322],{"class":1178},[1150,1602,1351],{"class":1178},[1150,1604,1605],{"class":1190}," res.",[1150,1607,1608],{"class":1354},"json",[1150,1610,1611],{"class":1190},"();\n",[1150,1613,1614,1617,1620,1623,1626,1629,1632,1635,1637,1640,1643,1645,1648,1651,1654,1656,1658,1660,1662,1665,1667,1669,1671,1673,1675,1677],{"class":1152,"line":521},[1150,1615,1616],{"class":1178},"if",[1150,1618,1619],{"class":1190}," (",[1150,1621,1622],{"class":1178},"!",[1150,1624,1625],{"class":1190},"res.ok) ",[1150,1627,1628],{"class":1178},"throw",[1150,1630,1631],{"class":1178}," new",[1150,1633,1634],{"class":1354}," Error",[1150,1636,1358],{"class":1190},[1150,1638,1639],{"class":1171},"`${",[1150,1641,1642],{"class":1190},"res",[1150,1644,1425],{"class":1171},[1150,1646,1647],{"class":1190},"status",[1150,1649,1650],{"class":1171},"} ${",[1150,1652,1653],{"class":1190},"body",[1150,1655,1425],{"class":1171},[1150,1657,949],{"class":1190},[1150,1659,1425],{"class":1171},[1150,1661,945],{"class":1190},[1150,1663,1664],{"class":1171},"}: ${",[1150,1666,1653],{"class":1190},[1150,1668,1425],{"class":1171},[1150,1670,949],{"class":1190},[1150,1672,1425],{"class":1171},[1150,1674,810],{"class":1190},[1150,1676,1394],{"class":1171},[1150,1678,1679],{"class":1190},");\n",[1150,1681,1682,1685,1688],{"class":1152,"line":530},[1150,1683,1684],{"class":1190},"console.",[1150,1686,1687],{"class":1354},"log",[1150,1689,1690],{"class":1190},"(body.data);\n",[1140,1692,1696],{"className":1693,"code":1694,"filename":311,"language":1695,"meta":1146,"style":1146},"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\u002F\u003CorganizationId>\u002Fstudent\u002F\u003CstudentId>');\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        '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        'activatedPlatformsThisSeason' => [\n            'stem',\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",[945,1697,1698,1706,1727,1731,1747,1755,1768,1778,1789,1796,1801,1814,1826,1838,1850,1862,1874,1886,1898,1910,1922,1934,1946,1955,1962,1967,1972,1984,1989,2002,2018,2036,2040,2058,2076,2091,2107,2138,2142],{"__ignoreMap":1146},[1150,1699,1700,1703],{"class":1152,"line":367},[1150,1701,1702],{"class":1178},"\u003C?",[1150,1704,1705],{"class":1164},"php\n",[1150,1707,1708,1711,1714,1717,1719,1722,1725],{"class":1152,"line":377},[1150,1709,1710],{"class":1190},"$token ",[1150,1712,1713],{"class":1178},"=",[1150,1715,1716],{"class":1164}," getenv",[1150,1718,1358],{"class":1190},[1150,1720,1721],{"class":1171},"'TOKEN'",[1150,1723,1724],{"class":1190},"); ",[1150,1726,1334],{"class":1155},[1150,1728,1729],{"class":1152,"line":382},[1150,1730,1339],{"emptyLinePlaceholder":364},[1150,1732,1733,1736,1738,1741,1743,1745],{"class":1152,"line":391},[1150,1734,1735],{"class":1190},"$ch ",[1150,1737,1713],{"class":1178},[1150,1739,1740],{"class":1164}," curl_init",[1150,1742,1358],{"class":1190},[1150,1744,1361],{"class":1171},[1150,1746,1679],{"class":1190},[1150,1748,1749,1752],{"class":1152,"line":396},[1150,1750,1751],{"class":1164},"curl_setopt_array",[1150,1753,1754],{"class":1190},"($ch, [\n",[1150,1756,1757,1760,1763,1766],{"class":1152,"line":402},[1150,1758,1759],{"class":1164},"    CURLOPT_CUSTOMREQUEST",[1150,1761,1762],{"class":1178}," =>",[1150,1764,1765],{"class":1171}," 'PUT'",[1150,1767,1375],{"class":1190},[1150,1769,1770,1773,1775],{"class":1152,"line":407},[1150,1771,1772],{"class":1164},"    CURLOPT_HTTPHEADER",[1150,1774,1762],{"class":1178},[1150,1776,1777],{"class":1190}," [\n",[1150,1779,1780,1783,1786],{"class":1152,"line":413},[1150,1781,1782],{"class":1171},"        'Authorization: Bearer '",[1150,1784,1785],{"class":1178}," .",[1150,1787,1788],{"class":1190}," $token,\n",[1150,1790,1791,1794],{"class":1152,"line":418},[1150,1792,1793],{"class":1171},"        'Content-Type: application\u002Fjson'",[1150,1795,1375],{"class":1190},[1150,1797,1798],{"class":1152,"line":427},[1150,1799,1800],{"class":1190},"    ],\n",[1150,1802,1803,1806,1808,1811],{"class":1152,"line":432},[1150,1804,1805],{"class":1164},"    CURLOPT_POSTFIELDS",[1150,1807,1762],{"class":1178},[1150,1809,1810],{"class":1164}," json_encode",[1150,1812,1813],{"class":1190},"([\n",[1150,1815,1816,1819,1821,1824],{"class":1152,"line":437},[1150,1817,1818],{"class":1171},"        'firstName'",[1150,1820,1762],{"class":1178},[1150,1822,1823],{"class":1171}," 'Jane'",[1150,1825,1375],{"class":1190},[1150,1827,1828,1831,1833,1836],{"class":1152,"line":442},[1150,1829,1830],{"class":1171},"        'lastName'",[1150,1832,1762],{"class":1178},[1150,1834,1835],{"class":1171}," 'Doe'",[1150,1837,1375],{"class":1190},[1150,1839,1840,1843,1845,1848],{"class":1152,"line":447},[1150,1841,1842],{"class":1171},"        'birth'",[1150,1844,1762],{"class":1178},[1150,1846,1847],{"class":1171}," '14\u002F05\u002F2008'",[1150,1849,1375],{"class":1190},[1150,1851,1852,1855,1857,1860],{"class":1152,"line":452},[1150,1853,1854],{"class":1171},"        'sex'",[1150,1856,1762],{"class":1178},[1150,1858,1859],{"class":1171}," 'f'",[1150,1861,1375],{"class":1190},[1150,1863,1864,1867,1869,1872],{"class":1152,"line":457},[1150,1865,1866],{"class":1171},"        'email'",[1150,1868,1762],{"class":1178},[1150,1870,1871],{"class":1171}," 'jane.doe@example.com'",[1150,1873,1375],{"class":1190},[1150,1875,1876,1879,1881,1884],{"class":1152,"line":463},[1150,1877,1878],{"class":1171},"        'email2'",[1150,1880,1762],{"class":1178},[1150,1882,1883],{"class":1171}," '\u003Cemail2>'",[1150,1885,1375],{"class":1190},[1150,1887,1888,1891,1893,1896],{"class":1152,"line":469},[1150,1889,1890],{"class":1171},"        'phone'",[1150,1892,1762],{"class":1178},[1150,1894,1895],{"class":1171}," '+1 555 0100'",[1150,1897,1375],{"class":1190},[1150,1899,1900,1903,1905,1908],{"class":1152,"line":474},[1150,1901,1902],{"class":1171},"        'country'",[1150,1904,1762],{"class":1178},[1150,1906,1907],{"class":1171}," '6650a1b2c3d4e5f6a7b8c9d1'",[1150,1909,1375],{"class":1190},[1150,1911,1912,1915,1917,1920],{"class":1152,"line":478},[1150,1913,1914],{"class":1171},"        'grade'",[1150,1916,1762],{"class":1178},[1150,1918,1919],{"class":1171}," '10'",[1150,1921,1375],{"class":1190},[1150,1923,1924,1927,1929,1932],{"class":1152,"line":483},[1150,1925,1926],{"class":1171},"        'school'",[1150,1928,1762],{"class":1178},[1150,1930,1931],{"class":1171}," 'Springfield High School'",[1150,1933,1375],{"class":1190},[1150,1935,1936,1939,1941,1944],{"class":1152,"line":491},[1150,1937,1938],{"class":1171},"        'city'",[1150,1940,1762],{"class":1178},[1150,1942,1943],{"class":1171}," 'Springfield'",[1150,1945,1375],{"class":1190},[1150,1947,1948,1951,1953],{"class":1152,"line":500},[1150,1949,1950],{"class":1171},"        'activatedPlatformsThisSeason'",[1150,1952,1762],{"class":1178},[1150,1954,1777],{"class":1190},[1150,1956,1957,1960],{"class":1152,"line":506},[1150,1958,1959],{"class":1171},"            'stem'",[1150,1961,1375],{"class":1190},[1150,1963,1964],{"class":1152,"line":511},[1150,1965,1966],{"class":1190},"        ],\n",[1150,1968,1969],{"class":1152,"line":516},[1150,1970,1971],{"class":1190},"    ]),\n",[1150,1973,1974,1977,1979,1982],{"class":1152,"line":521},[1150,1975,1976],{"class":1164},"    CURLOPT_RETURNTRANSFER",[1150,1978,1762],{"class":1178},[1150,1980,1981],{"class":1164}," true",[1150,1983,1375],{"class":1190},[1150,1985,1986],{"class":1152,"line":530},[1150,1987,1988],{"class":1190},"]);\n",[1150,1990,1991,1994,1996,1999],{"class":1152,"line":535},[1150,1992,1993],{"class":1190},"$response ",[1150,1995,1713],{"class":1178},[1150,1997,1998],{"class":1164}," curl_exec",[1150,2000,2001],{"class":1190},"($ch);\n",[1150,2003,2004,2006,2009,2012,2015],{"class":1152,"line":540},[1150,2005,1616],{"class":1178},[1150,2007,2008],{"class":1190}," ($response ",[1150,2010,2011],{"class":1178},"===",[1150,2013,2014],{"class":1164}," false",[1150,2016,2017],{"class":1190},") {\n",[1150,2019,2020,2023,2025,2028,2030,2033],{"class":1152,"line":545},[1150,2021,2022],{"class":1178},"    throw",[1150,2024,1631],{"class":1178},[1150,2026,2027],{"class":1164}," RuntimeException",[1150,2029,1358],{"class":1190},[1150,2031,2032],{"class":1164},"curl_error",[1150,2034,2035],{"class":1190},"($ch));\n",[1150,2037,2038],{"class":1152,"line":550},[1150,2039,1299],{"class":1190},[1150,2041,2042,2045,2047,2050,2053,2056],{"class":1152,"line":555},[1150,2043,2044],{"class":1190},"$status ",[1150,2046,1713],{"class":1178},[1150,2048,2049],{"class":1164}," curl_getinfo",[1150,2051,2052],{"class":1190},"($ch, ",[1150,2054,2055],{"class":1164},"CURLINFO_RESPONSE_CODE",[1150,2057,1679],{"class":1190},[1150,2059,2060,2063,2065,2068,2071,2074],{"class":1152,"line":560},[1150,2061,2062],{"class":1190},"$body ",[1150,2064,1713],{"class":1178},[1150,2066,2067],{"class":1164}," json_decode",[1150,2069,2070],{"class":1190},"($response, ",[1150,2072,2073],{"class":1164},"true",[1150,2075,1679],{"class":1190},[1150,2077,2078,2080,2083,2086,2089],{"class":1152,"line":569},[1150,2079,1616],{"class":1178},[1150,2081,2082],{"class":1190}," ($status ",[1150,2084,2085],{"class":1178},">=",[1150,2087,2088],{"class":1164}," 400",[1150,2090,2017],{"class":1190},[1150,2092,2093,2096,2098,2101,2104],{"class":1152,"line":574},[1150,2094,2095],{"class":1190},"    $error ",[1150,2097,1713],{"class":1178},[1150,2099,2100],{"class":1190}," $body[",[1150,2102,2103],{"class":1171},"'error'",[1150,2105,2106],{"class":1190},"];\n",[1150,2108,2109,2111,2113,2115,2117,2119,2122,2125,2128,2131,2133,2136],{"class":1152,"line":580},[1150,2110,2022],{"class":1178},[1150,2112,1631],{"class":1178},[1150,2114,2027],{"class":1164},[1150,2116,1358],{"class":1190},[1150,2118,1194],{"class":1171},[1150,2120,2121],{"class":1190},"$status",[1150,2123,2124],{"class":1171}," {",[1150,2126,2127],{"class":1190},"$error",[1150,2129,2130],{"class":1171},"['code']}: {",[1150,2132,2127],{"class":1190},[1150,2134,2135],{"class":1171},"['message']}\"",[1150,2137,1679],{"class":1190},[1150,2139,2140],{"class":1152,"line":585},[1150,2141,1299],{"class":1190},[1150,2143,2144,2147,2150,2153],{"class":1152,"line":594},[1150,2145,2146],{"class":1164},"print_r",[1150,2148,2149],{"class":1190},"($body[",[1150,2151,2152],{"class":1171},"'data'",[1150,2154,1988],{"class":1190},[2156,2157,2158],"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":1146,"searchDepth":377,"depth":382,"links":2160},[],"Changes the fields you send and leaves the rest as they are: no field is required, and one you leave out is not cleared.","md",{},"20",{"title":201,"description":2161},"api\u002Freference\u002Fupdate-org-student","KooTsWd6-Nb5NyyA1ZAfJP5_J-xBkHo6V-9cuckQj0U",1791554613402]