[{"data":1,"prerenderedAt":1433},["ShallowReactive",2],{"api-nav":3,"api-spec:index":351,"api-spec:op:download-report":636,"api-permissions-guide":846,"api-reference-doc:download-report":847},[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":576,"slug":577,"method":133,"path":578,"tag":256,"summary":266,"deprecated":134,"public":134,"permission":579,"scope":468,"order":580,"description":637,"permissions":638,"errors":639,"guide":365,"parameters":667,"requestBody":365,"responses":680,"successStatus":845,"kind":685,"paginated":134,"baseUrl":355,"tagDescription":562,"sandbox":364},"Sends the file of a released result report of one of your students: the bytes themselves, not JSON. `Content-Disposition` carries its name.\n\nEvery refusal of the report itself is the same `404` \"Not found!\": no report has this id or `shortId`, it is not released or was withdrawn, it belongs to another account’s student, or it has no file. So a download never shows whether a report exists in someone else’s hands.\n\nErrors always arrive as JSON before the first byte. A transfer that ends early, or with fewer bytes than `Content-Length`, has failed: discard what you received.",[579],[640,644,649,654,657,661,665],{"code":641,"status":642,"when":643},"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":645,"message":646,"status":647,"when":648},"forbidden","Insufficient role permissions",403,"The token is valid, but no role on your account allows `report\u002Fread` on the organization in the path, or a role denies it.",{"code":650,"message":651,"status":652,"when":653},"not_found","Organization not found!",404,"`organizationId` is not the `_id` of an organization.",{"code":650,"message":655,"status":652,"when":656},"Not found!","No report has this id or shortId, it is not released, it belongs to another account's student, it has no file attached, or its file is missing from storage. Every one of these answers the same, so the status says nothing about another account's ids.",{"code":658,"status":659,"when":660},"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":662,"status":663,"when":664},"internal_error",500,"Something failed on our side. Retry later, and quote `request_id` if it goes on.",{"code":662,"status":663,"when":666},"File storage is not configured or could not be reached.",[668,676],{"description":669,"example":670,"in":671,"name":672,"required":364,"schema":673},"The organization’s `_id`: 24 hexadecimal digits, as `listOrganizations` (`GET \u002Fv1\u002Forganization`) lists it.","64b7f0c2a1d3e4f5a6b7c8d9","path","organizationId",{"pattern":674,"type":675},"^[0-9a-f]{24}$","string",{"description":677,"in":671,"name":678,"required":364,"schema":679},"The report’s `_id` (24 hexadecimal digits) or its 10-character `shortId`, both from `listStudentReports`. A `shortId` is matched exactly, case included.","reportId",{"type":675},{"200":681,"401":706,"403":753,"404":774,"429":797,"500":823},{"content":682,"description":688,"headers":689},{"application\u002Foctet-stream":683,"application\u002Fpdf":686},{"schema":684},{"format":685,"type":675},"binary",{"schema":687},{"format":685,"type":675},"The report file, streamed. Content-Type is whatever the object was stored with. Content-Disposition carries an ASCII `filename` and the real name as RFC 5987 `filename*=UTF-8''…`; prefer the latter.",{"Content-Disposition":690,"Content-Length":693,"X-RateLimit-Limit":697,"X-RateLimit-Remaining":700,"X-RateLimit-Reset":703},{"description":691,"schema":692},"attachment; filename=\"\u003Cascii>\"; filename*=UTF-8''\u003Cpercent-encoded>",{"type":675},{"description":694,"schema":695},"Present when storage reports the size.",{"type":696},"integer",{"description":698,"schema":699},"Requests your account may make to this operation per window (100).",{"type":696},{"description":701,"schema":702},"Requests left in the current window.",{"type":696},{"description":704,"schema":705},"Seconds until the current window ends.",{"type":696},{"content":707,"description":752},{"application\u002Fjson":708},{"examples":709,"schema":716},{"unauthorized":710},{"summary":641,"value":711},{"error":712},{"code":641,"documentation_url":713,"message":714,"request_id":715},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#unauthorized","Authentication is required or the provided credentials are invalid.","0b5c6d0e-8f7a-4b1c-9d2e-3f4a5b6c7d8e",{"x-ref":717,"description":718,"properties":719,"required":750,"type":744},"#\u002Fcomponents\u002Fschemas\u002FErrorEnvelope","How every error response is wrapped.",{"error":720},{"x-ref":721,"description":722,"properties":723,"required":745,"type":744},"#\u002Fcomponents\u002Fschemas\u002FErrorDetail","What went wrong.",{"code":724,"message":734,"documentation_url":736,"request_id":740,"details":742},{"description":725,"enum":726,"example":650,"type":675},"A stable machine code: branch on this. Each one is explained at `documentation_url`.",[727,728,641,645,650,729,730,731,732,658,662,733],"invalid_email","bad_request","conflict","payload_too_large","unsupported_media_type","unprocessable_entity","service_unavailable",{"description":735,"example":655,"type":675},"Written for a person, and may change: never branch on it.",{"description":737,"example":738,"format":739,"type":675},"Where this code is explained.","https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#not_found","uri",{"description":741,"example":715,"type":675},"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":743,"type":744},"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.","object",[746,747,748,749],"code","message","documentation_url","request_id",[751],"error","`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":754,"description":773},{"application\u002Fjson":755},{"examples":756,"schema":761},{"forbidden":757},{"summary":645,"value":758},{"error":759},{"code":645,"documentation_url":760,"message":646,"request_id":715},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#forbidden",{"x-ref":717,"description":718,"properties":762,"required":772,"type":744},{"error":763},{"x-ref":721,"description":722,"properties":764,"required":771,"type":744},{"code":765,"message":767,"documentation_url":768,"request_id":769,"details":770},{"description":725,"enum":766,"example":650,"type":675},[727,728,641,645,650,729,730,731,732,658,662,733],{"description":735,"example":655,"type":675},{"description":737,"example":738,"format":739,"type":675},{"description":741,"example":715,"type":675},{"additionalProperties":364,"description":743,"type":744},[746,747,748,749],[751],"`forbidden`: The token is valid, but no role on your account allows `report\u002Fread` on the organization in the path, or a role denies it.",{"content":775,"description":796},{"application\u002Fjson":776},{"examples":777,"schema":784},{"not_found":778,"not_found_2":781},{"summary":653,"value":779},{"error":780},{"code":650,"documentation_url":738,"message":651,"request_id":715},{"summary":656,"value":782},{"error":783},{"code":650,"documentation_url":738,"message":655,"request_id":715},{"x-ref":717,"description":718,"properties":785,"required":795,"type":744},{"error":786},{"x-ref":721,"description":722,"properties":787,"required":794,"type":744},{"code":788,"message":790,"documentation_url":791,"request_id":792,"details":793},{"description":725,"enum":789,"example":650,"type":675},[727,728,641,645,650,729,730,731,732,658,662,733],{"description":735,"example":655,"type":675},{"description":737,"example":738,"format":739,"type":675},{"description":741,"example":715,"type":675},{"additionalProperties":364,"description":743,"type":744},[746,747,748,749],[751],"- `not_found`: `organizationId` is not the `_id` of an organization.\n- `not_found`: No report has this id or shortId, it is not released, it belongs to another account's student, it has no file attached, or its file is missing from storage. Every one of these answers the same, so the status says nothing about another account's ids.",{"content":798,"description":818,"headers":819},{"application\u002Fjson":799},{"examples":800,"schema":806},{"too_many_requests":801},{"summary":658,"value":802},{"error":803},{"code":658,"documentation_url":804,"message":805,"request_id":715},"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":717,"description":718,"properties":807,"required":817,"type":744},{"error":808},{"x-ref":721,"description":722,"properties":809,"required":816,"type":744},{"code":810,"message":812,"documentation_url":813,"request_id":814,"details":815},{"description":725,"enum":811,"example":650,"type":675},[727,728,641,645,650,729,730,731,732,658,662,733],{"description":735,"example":655,"type":675},{"description":737,"example":738,"format":739,"type":675},{"description":741,"example":715,"type":675},{"additionalProperties":364,"description":743,"type":744},[746,747,748,749],[751],"`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":820},{"description":821,"schema":822},"Seconds to wait before sending again; a request sent sooner is refused too.",{"type":696},{"content":824,"description":844},{"application\u002Fjson":825},{"examples":826,"schema":832},{"internal_error":827},{"summary":662,"value":828},{"error":829},{"code":662,"documentation_url":830,"message":831,"request_id":715},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#internal_error","An unexpected error occurred.",{"x-ref":717,"description":718,"properties":833,"required":843,"type":744},{"error":834},{"x-ref":721,"description":722,"properties":835,"required":842,"type":744},{"code":836,"message":838,"documentation_url":839,"request_id":840,"details":841},{"description":725,"enum":837,"example":650,"type":675},[727,728,641,645,650,729,730,731,732,658,662,733],{"description":735,"example":655,"type":675},{"description":737,"example":738,"format":739,"type":675},{"description":741,"example":715,"type":675},{"additionalProperties":364,"description":743,"type":744},[746,747,748,749],[751],"- `internal_error`: Something failed on our side. Retry later, and quote `request_id` if it goes on.\n- `internal_error`: File storage is not configured or could not be reached.","200",{"path":26},{"id":848,"title":266,"apiPath":578,"body":849,"deprecated":134,"description":1426,"extension":1427,"meta":1428,"method":133,"navigation":364,"operationId":576,"order":1429,"path":267,"permission":579,"public":134,"seo":1430,"stem":1431,"summary":266,"tag":256,"__hash__":1432},"apiReference\u002Fapi\u002Freference\u002Fdownload-report.md",{"type":850,"value":851,"toc":1424},"minimark",[852,1420],[853,854,855,919,1156],"api-code-group",{},[856,857,863],"pre",{"className":858,"code":859,"filename":860,"language":861,"meta":862,"style":862},"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\n# -f: an error status exits non-zero instead of being saved as report.pdf\ncurl -sS -f -o report.pdf 'https:\u002F\u002Fapi.main-team.org\u002Fv1\u002F\u003CorganizationId>\u002Freport\u002Fdownload\u002F\u003CreportId>' \\\n  -H \"Authorization: Bearer $TOKEN\"\n","curl","bash","",[746,864,865,873,878,904],{"__ignoreMap":862},[866,867,869],"span",{"class":868,"line":367},"line",[866,870,872],{"class":871},"sLBg1","# $TOKEN: a short-lived token you minted with your API key and secret\n",[866,874,875],{"class":868,"line":377},[866,876,877],{"class":871},"# -f: an error status exits non-zero instead of being saved as report.pdf\n",[866,879,880,883,887,890,893,897,900],{"class":868,"line":382},[866,881,860],{"class":882},"soyes",[866,884,886],{"class":885},"s-5SL"," -sS",[866,888,889],{"class":885}," -f",[866,891,892],{"class":885}," -o",[866,894,896],{"class":895},"sT6z2"," report.pdf",[866,898,899],{"class":895}," 'https:\u002F\u002Fapi.main-team.org\u002Fv1\u002F\u003CorganizationId>\u002Freport\u002Fdownload\u002F\u003CreportId>'",[866,901,903],{"class":902},"sHUrx"," \\\n",[866,905,906,909,912,916],{"class":868,"line":391},[866,907,908],{"class":885},"  -H",[866,910,911],{"class":895}," \"Authorization: Bearer ",[866,913,915],{"class":914},"suds8","$TOKEN",[866,917,918],{"class":895},"\"\n",[856,920,924],{"className":921,"code":922,"filename":308,"language":923,"meta":862,"style":862},"language-js shiki shiki-themes github-light-high-contrast github-dark-high-contrast","import { writeFile } from 'node:fs\u002Fpromises';\n\nconst 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>\u002Freport\u002Fdownload\u002F\u003CreportId>', {\n  headers: {\n    Authorization: `Bearer ${token}`,\n  },\n});\nif (!res.ok) {\n  const { error } = await res.json();\n  throw new Error(`${res.status} ${error.code}: ${error.message}`);\n}\nawait writeFile('report.pdf', Buffer.from(await res.arrayBuffer()));\n","js",[746,925,926,943,948,971,975,1000,1005,1022,1027,1032,1046,1073,1121,1126],{"__ignoreMap":862},[866,927,928,931,934,937,940],{"class":868,"line":367},[866,929,930],{"class":902},"import",[866,932,933],{"class":914}," { writeFile } ",[866,935,936],{"class":902},"from",[866,938,939],{"class":895}," 'node:fs\u002Fpromises'",[866,941,942],{"class":914},";\n",[866,944,945],{"class":868,"line":377},[866,946,947],{"emptyLinePlaceholder":364},"\n",[866,949,950,953,956,959,962,965,968],{"class":868,"line":382},[866,951,952],{"class":902},"const",[866,954,955],{"class":885}," token",[866,957,958],{"class":902}," =",[866,960,961],{"class":914}," process.env.",[866,963,964],{"class":885},"TOKEN",[866,966,967],{"class":914},"; ",[866,969,970],{"class":871},"\u002F\u002F a short-lived token you minted with your API key and secret\n",[866,972,973],{"class":868,"line":391},[866,974,947],{"emptyLinePlaceholder":364},[866,976,977,979,982,984,987,991,994,997],{"class":868,"line":396},[866,978,952],{"class":902},[866,980,981],{"class":885}," res",[866,983,958],{"class":902},[866,985,986],{"class":902}," await",[866,988,990],{"class":989},"sKwhi"," fetch",[866,992,993],{"class":914},"(",[866,995,996],{"class":895},"'https:\u002F\u002Fapi.main-team.org\u002Fv1\u002F\u003CorganizationId>\u002Freport\u002Fdownload\u002F\u003CreportId>'",[866,998,999],{"class":914},", {\n",[866,1001,1002],{"class":868,"line":402},[866,1003,1004],{"class":914},"  headers: {\n",[866,1006,1007,1010,1013,1016,1019],{"class":868,"line":407},[866,1008,1009],{"class":914},"    Authorization: ",[866,1011,1012],{"class":895},"`Bearer ${",[866,1014,1015],{"class":914},"token",[866,1017,1018],{"class":895},"}`",[866,1020,1021],{"class":914},",\n",[866,1023,1024],{"class":868,"line":413},[866,1025,1026],{"class":914},"  },\n",[866,1028,1029],{"class":868,"line":418},[866,1030,1031],{"class":914},"});\n",[866,1033,1034,1037,1040,1043],{"class":868,"line":427},[866,1035,1036],{"class":902},"if",[866,1038,1039],{"class":914}," (",[866,1041,1042],{"class":902},"!",[866,1044,1045],{"class":914},"res.ok) {\n",[866,1047,1048,1051,1054,1056,1059,1062,1064,1067,1070],{"class":868,"line":432},[866,1049,1050],{"class":902},"  const",[866,1052,1053],{"class":914}," { ",[866,1055,751],{"class":885},[866,1057,1058],{"class":914}," } ",[866,1060,1061],{"class":902},"=",[866,1063,986],{"class":902},[866,1065,1066],{"class":914}," res.",[866,1068,1069],{"class":989},"json",[866,1071,1072],{"class":914},"();\n",[866,1074,1075,1078,1081,1084,1086,1089,1092,1095,1098,1101,1103,1105,1107,1110,1112,1114,1116,1118],{"class":868,"line":437},[866,1076,1077],{"class":902},"  throw",[866,1079,1080],{"class":902}," new",[866,1082,1083],{"class":989}," Error",[866,1085,993],{"class":914},[866,1087,1088],{"class":895},"`${",[866,1090,1091],{"class":914},"res",[866,1093,1094],{"class":895},".",[866,1096,1097],{"class":914},"status",[866,1099,1100],{"class":895},"} ${",[866,1102,751],{"class":914},[866,1104,1094],{"class":895},[866,1106,746],{"class":914},[866,1108,1109],{"class":895},"}: ${",[866,1111,751],{"class":914},[866,1113,1094],{"class":895},[866,1115,747],{"class":914},[866,1117,1018],{"class":895},[866,1119,1120],{"class":914},");\n",[866,1122,1123],{"class":868,"line":442},[866,1124,1125],{"class":914},"}\n",[866,1127,1128,1131,1134,1136,1139,1142,1144,1146,1148,1150,1153],{"class":868,"line":447},[866,1129,1130],{"class":902},"await",[866,1132,1133],{"class":989}," writeFile",[866,1135,993],{"class":914},[866,1137,1138],{"class":895},"'report.pdf'",[866,1140,1141],{"class":914},", Buffer.",[866,1143,936],{"class":989},[866,1145,993],{"class":914},[866,1147,1130],{"class":902},[866,1149,1066],{"class":914},[866,1151,1152],{"class":989},"arrayBuffer",[866,1154,1155],{"class":914},"()));\n",[856,1157,1161],{"className":1158,"code":1159,"filename":311,"language":1160,"meta":862,"style":862},"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>\u002Freport\u002Fdownload\u002F\u003CreportId>');\ncurl_setopt_array($ch, [\n    CURLOPT_HTTPHEADER => [\n        'Authorization: Bearer ' . $token,\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);\nif ($status >= 400) {\n    $error = json_decode($response, true)['error'];\n    throw new RuntimeException(\"$status {$error['code']}: {$error['message']}\");\n}\nfile_put_contents('report.pdf', $response);\n","php",[746,1162,1163,1171,1191,1195,1211,1219,1230,1241,1246,1258,1263,1276,1292,1310,1314,1332,1347,1372,1404,1408],{"__ignoreMap":862},[866,1164,1165,1168],{"class":868,"line":367},[866,1166,1167],{"class":902},"\u003C?",[866,1169,1170],{"class":885},"php\n",[866,1172,1173,1176,1178,1181,1183,1186,1189],{"class":868,"line":377},[866,1174,1175],{"class":914},"$token ",[866,1177,1061],{"class":902},[866,1179,1180],{"class":885}," getenv",[866,1182,993],{"class":914},[866,1184,1185],{"class":895},"'TOKEN'",[866,1187,1188],{"class":914},"); ",[866,1190,970],{"class":871},[866,1192,1193],{"class":868,"line":382},[866,1194,947],{"emptyLinePlaceholder":364},[866,1196,1197,1200,1202,1205,1207,1209],{"class":868,"line":391},[866,1198,1199],{"class":914},"$ch ",[866,1201,1061],{"class":902},[866,1203,1204],{"class":885}," curl_init",[866,1206,993],{"class":914},[866,1208,996],{"class":895},[866,1210,1120],{"class":914},[866,1212,1213,1216],{"class":868,"line":396},[866,1214,1215],{"class":885},"curl_setopt_array",[866,1217,1218],{"class":914},"($ch, [\n",[866,1220,1221,1224,1227],{"class":868,"line":402},[866,1222,1223],{"class":885},"    CURLOPT_HTTPHEADER",[866,1225,1226],{"class":902}," =>",[866,1228,1229],{"class":914}," [\n",[866,1231,1232,1235,1238],{"class":868,"line":407},[866,1233,1234],{"class":895},"        'Authorization: Bearer '",[866,1236,1237],{"class":902}," .",[866,1239,1240],{"class":914}," $token,\n",[866,1242,1243],{"class":868,"line":413},[866,1244,1245],{"class":914},"    ],\n",[866,1247,1248,1251,1253,1256],{"class":868,"line":418},[866,1249,1250],{"class":885},"    CURLOPT_RETURNTRANSFER",[866,1252,1226],{"class":902},[866,1254,1255],{"class":885}," true",[866,1257,1021],{"class":914},[866,1259,1260],{"class":868,"line":427},[866,1261,1262],{"class":914},"]);\n",[866,1264,1265,1268,1270,1273],{"class":868,"line":432},[866,1266,1267],{"class":914},"$response ",[866,1269,1061],{"class":902},[866,1271,1272],{"class":885}," curl_exec",[866,1274,1275],{"class":914},"($ch);\n",[866,1277,1278,1280,1283,1286,1289],{"class":868,"line":437},[866,1279,1036],{"class":902},[866,1281,1282],{"class":914}," ($response ",[866,1284,1285],{"class":902},"===",[866,1287,1288],{"class":885}," false",[866,1290,1291],{"class":914},") {\n",[866,1293,1294,1297,1299,1302,1304,1307],{"class":868,"line":442},[866,1295,1296],{"class":902},"    throw",[866,1298,1080],{"class":902},[866,1300,1301],{"class":885}," RuntimeException",[866,1303,993],{"class":914},[866,1305,1306],{"class":885},"curl_error",[866,1308,1309],{"class":914},"($ch));\n",[866,1311,1312],{"class":868,"line":447},[866,1313,1125],{"class":914},[866,1315,1316,1319,1321,1324,1327,1330],{"class":868,"line":452},[866,1317,1318],{"class":914},"$status ",[866,1320,1061],{"class":902},[866,1322,1323],{"class":885}," curl_getinfo",[866,1325,1326],{"class":914},"($ch, ",[866,1328,1329],{"class":885},"CURLINFO_RESPONSE_CODE",[866,1331,1120],{"class":914},[866,1333,1334,1336,1339,1342,1345],{"class":868,"line":457},[866,1335,1036],{"class":902},[866,1337,1338],{"class":914}," ($status ",[866,1340,1341],{"class":902},">=",[866,1343,1344],{"class":885}," 400",[866,1346,1291],{"class":914},[866,1348,1349,1352,1354,1357,1360,1363,1366,1369],{"class":868,"line":463},[866,1350,1351],{"class":914},"    $error ",[866,1353,1061],{"class":902},[866,1355,1356],{"class":885}," json_decode",[866,1358,1359],{"class":914},"($response, ",[866,1361,1362],{"class":885},"true",[866,1364,1365],{"class":914},")[",[866,1367,1368],{"class":895},"'error'",[866,1370,1371],{"class":914},"];\n",[866,1373,1374,1376,1378,1380,1382,1385,1388,1391,1394,1397,1399,1402],{"class":868,"line":469},[866,1375,1296],{"class":902},[866,1377,1080],{"class":902},[866,1379,1301],{"class":885},[866,1381,993],{"class":914},[866,1383,1384],{"class":895},"\"",[866,1386,1387],{"class":914},"$status",[866,1389,1390],{"class":895}," {",[866,1392,1393],{"class":914},"$error",[866,1395,1396],{"class":895},"['code']}: {",[866,1398,1393],{"class":914},[866,1400,1401],{"class":895},"['message']}\"",[866,1403,1120],{"class":914},[866,1405,1406],{"class":868,"line":474},[866,1407,1125],{"class":914},[866,1409,1410,1413,1415,1417],{"class":868,"line":478},[866,1411,1412],{"class":885},"file_put_contents",[866,1414,993],{"class":914},[866,1416,1138],{"class":895},[866,1418,1419],{"class":914},", $response);\n",[1421,1422,1423],"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":862,"searchDepth":377,"depth":382,"links":1425},[],"Sends the file of a released result report of one of your students: the bytes themselves, not JSON.","md",{},"37",{"title":266,"description":1426},"api\u002Freference\u002Fdownload-report","SMHjsRhmhEOVRV3kduE1_3bxvSFblBo15CcKwDiiqkM",1791554613404]