[{"data":1,"prerenderedAt":1572},["ShallowReactive",2],{"api-nav":3,"api-spec:index":351,"api-spec:op:delete-application":636,"api-permissions-guide":999,"api-reference-doc:delete-application":1000},[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":557,"slug":558,"method":254,"path":549,"tag":86,"summary":252,"deprecated":134,"public":134,"permission":559,"scope":468,"order":560,"description":637,"permissions":638,"errors":639,"guide":365,"parameters":675,"requestBody":365,"responses":688,"successStatus":997,"kind":998,"paginated":134,"baseUrl":355,"tagDescription":523,"sandbox":364},"Deletes an application of one of your students. `data` is the application as it was, with `exam`, `payment` and `user` as ids.\n\nAn application whose payment is settled (`status` `paid`, with an `amount` above 0) cannot be deleted: deleting refunds nothing, and this API never moves money. A free exam’s payment (`paid`, `amount` 0) and a `pending` or `canceled` one do not block it.\n\nThe payment is the only state checked. Whether the student has started the exam, or its sitting has passed, is not: read `participated` and `examSubmitted` first if that matters to you.\n\nYour students are the ones your account registered: an application of anyone else’s student answers `404`, as an unknown id does. Deleting again answers `404` too, so a retried delete that gets `404` has already succeeded.",[559],[640,645,649,654,659,662,667,671],{"code":641,"message":642,"status":643,"when":644},"bad_request","Invalid value for '_id': expected ObjectId.",400,"`applicationId` is not 24 hexadecimal digits.",{"code":646,"status":647,"when":648},"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":650,"message":651,"status":652,"when":653},"forbidden","Insufficient role permissions",403,"The token is valid, but no role on your account allows `application\u002Fdelete` on the organization in the path, or a role denies it.",{"code":655,"message":656,"status":657,"when":658},"not_found","Organization not found!",404,"`organizationId` is not the `_id` of an organization.",{"code":655,"message":660,"status":657,"when":661},"Application not found!","No application of your students has this id: it matches nothing, or the application belongs to another account’s student. Both get the same answer.",{"code":663,"message":664,"status":665,"when":666},"conflict","Application has been paid for and cannot be deleted. Cancelling a paid application requires a refund, which this API does not perform.",409,"The payment is settled. Cancelling a paid application is a refund, which happens outside this API.",{"code":668,"status":669,"when":670},"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":672,"status":673,"when":674},"internal_error",500,"Something failed on our side. Retry later, and quote `request_id` if it goes on.",[676,684],{"description":677,"example":678,"in":679,"name":680,"required":364,"schema":681},"The organization’s `_id`: 24 hexadecimal digits, as `listOrganizations` (`GET \u002Fv1\u002Forganization`) lists it.","64b7f0c2a1d3e4f5a6b7c8d9","path","organizationId",{"pattern":682,"type":683},"^[0-9a-f]{24}$","string",{"description":685,"in":679,"name":686,"required":364,"schema":687},"The application’s `_id`, from `createApplication` or one of the application lists.","applicationId",{"type":683},{"200":689,"400":819,"401":862,"403":884,"404":905,"409":928,"429":949,"500":975},{"content":690,"description":807,"headers":808},{"application\u002Fjson":691},{"schema":692},{"allOf":693},[694,733],{"x-ref":695,"description":696,"properties":697,"required":730,"type":728},"#\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":698,"message":702,"pagination":705},{"description":699,"enum":700,"example":364,"type":701},"Always `true` on a success.",[364],"boolean",{"description":703,"example":704,"type":683},"A sentence saying what happened, written for a person. Branch on the status and on `data`, not on this.","Request completed successfully.",{"allOf":706,"description":729},[707],{"x-ref":708,"description":709,"properties":710,"required":723,"type":728},"#\u002Fcomponents\u002Fschemas\u002FPaginationMeta","Where one page sits in the whole list.",{"page":711,"limit":714,"total":717,"totalPages":721},{"description":712,"example":367,"minimum":367,"type":713},"The page returned, counting from 1.","number",{"description":715,"example":478,"maximum":716,"minimum":367,"type":713},"Items per page: the `limit` you sent, 20 if you sent none, and never more than 100.",100,{"description":718,"example":719,"minimum":720,"type":713},"Items across every page.",57,0,{"description":722,"example":382,"minimum":720,"type":713},"Pages at this `limit`: `total \u002F limit`, rounded up.",[724,725,726,727],"page","limit","total","totalPages","object","On list operations only.",[731,732],"success","message",{"properties":734,"required":805,"type":728},{"message":735,"data":737},{"example":736,"type":683},"Application deleted successfully.",{"x-ref":738,"description":739,"properties":740,"required":794,"type":728},"#\u002Fcomponents\u002Fschemas\u002FApplicationRecordResponse","An application as stored, with `exam`, `user` and `payment` as ids. Read the application to have them resolved.",{"_id":741,"exam":744,"user":747,"payment":750,"partners":753,"participated":765,"examStart":767,"examSubmitted":771,"submitDate":773,"simulationStarted":776,"simulationStart":778,"simulationSubmitted":781,"removeAfter":783,"uuid":786,"createdAt":789,"updatedAt":792},{"description":742,"example":743,"type":683},"The application’s id: what `applicationId` takes.","6650a1b2c3d4e5f6a7b8c9e5",{"description":745,"example":746,"type":683},"The id of the exam applied for.","6650a1b2c3d4e5f6a7b8c9e1",{"description":748,"example":749,"type":683},"The organization’s own id for the student, not the id you registered them with. The application reads resolve it into a record carrying both.","6650a1b2c3d4e5f6a7b8c9e9",{"description":751,"example":752,"type":683},"The id of the application’s payment.","6650a1b2c3d4e5f6a7b8c9e6",{"description":754,"items":755,"type":764},"On a team exam, the other members of the team. Empty for an exam sat alone.",{"x-ref":756,"description":757,"properties":758,"type":728},"#\u002Fcomponents\u002Fschemas\u002FApplicationPartnerResponse","Another member of a team application.",{"user":759,"accepted":762},{"description":760,"example":761,"type":683},"The team member’s id in this organization. Not one of your students’ ids, and not resolved.","6650a1b2c3d4e5f6a7b8c9d6",{"description":763,"example":364,"type":701},"Whether they have accepted the invitation to the team.","array",{"description":766,"example":134,"type":701},"Whether the student has started the exam. A started application cannot be moved to another exam.",{"description":768,"example":769,"format":770,"type":683},"When the student started the exam; absent until then.","2026-11-14T10:04:12.000Z","date-time",{"description":772,"example":134,"type":701},"Whether the student has handed the exam in. A handed-in application cannot be moved to another exam.",{"description":774,"example":775,"format":770,"type":683},"When the student handed the exam in; absent until then.","2026-11-14T11:12:40.000Z",{"description":777,"example":134,"type":701},"Whether the student has started the practice run.",{"description":779,"example":780,"format":770,"type":683},"When the student started the practice run; absent until then.","2026-11-07T10:00:00.000Z",{"description":782,"example":134,"type":701},"Whether the student has handed the practice run in.",{"description":784,"example":785,"format":770,"type":683},"Only on an application to an exam on a make-up sitting: when it will be removed, 6 hours after it was made.","2026-09-02T14:05:00.000Z",{"description":787,"example":788,"type":683},"A short reference code for the application.","a3f-09c-7e1",{"description":790,"example":791,"format":770,"type":683},"When the application was made.","2026-09-01T09:30:00.000Z",{"description":793,"example":785,"format":770,"type":683},"When the application last changed.",[795,796,797,798,799,800,801,802,803,804],"_id","exam","user","partners","participated","simulationStarted","simulationSubmitted","uuid","createdAt","updatedAt",[806],"data","Success: `message` is \"Application deleted successfully.\".",{"X-RateLimit-Limit":809,"X-RateLimit-Remaining":813,"X-RateLimit-Reset":816},{"description":810,"schema":811},"Requests your account may make to this operation per window (100).",{"type":812},"integer",{"description":814,"schema":815},"Requests left in the current window.",{"type":812},{"description":817,"schema":818},"Seconds until the current window ends.",{"type":812},{"content":820,"description":861},{"application\u002Fjson":821},{"examples":822,"schema":828},{"bad_request":823},{"summary":641,"value":824},{"error":825},{"code":641,"documentation_url":826,"message":642,"request_id":827},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#bad_request","0b5c6d0e-8f7a-4b1c-9d2e-3f4a5b6c7d8e",{"x-ref":829,"description":830,"properties":831,"required":859,"type":728},"#\u002Fcomponents\u002Fschemas\u002FErrorEnvelope","How every error response is wrapped.",{"error":832},{"x-ref":833,"description":834,"properties":835,"required":855,"type":728},"#\u002Fcomponents\u002Fschemas\u002FErrorDetail","What went wrong.",{"code":836,"message":844,"documentation_url":847,"request_id":851,"details":853},{"description":837,"enum":838,"example":655,"type":683},"A stable machine code: branch on this. Each one is explained at `documentation_url`.",[839,641,646,650,655,663,840,841,842,668,672,843],"invalid_email","payload_too_large","unsupported_media_type","unprocessable_entity","service_unavailable",{"description":845,"example":846,"type":683},"Written for a person, and may change: never branch on it.","Not found!",{"description":848,"example":849,"format":850,"type":683},"Where this code is explained.","https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#not_found","uri",{"description":852,"example":827,"type":683},"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":854,"type":728},"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.",[856,732,857,858],"code","documentation_url","request_id",[860],"error","`bad_request`: `applicationId` is not 24 hexadecimal digits.",{"content":863,"description":883},{"application\u002Fjson":864},{"examples":865,"schema":871},{"unauthorized":866},{"summary":646,"value":867},{"error":868},{"code":646,"documentation_url":869,"message":870,"request_id":827},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#unauthorized","Authentication is required or the provided credentials are invalid.",{"x-ref":829,"description":830,"properties":872,"required":882,"type":728},{"error":873},{"x-ref":833,"description":834,"properties":874,"required":881,"type":728},{"code":875,"message":877,"documentation_url":878,"request_id":879,"details":880},{"description":837,"enum":876,"example":655,"type":683},[839,641,646,650,655,663,840,841,842,668,672,843],{"description":845,"example":846,"type":683},{"description":848,"example":849,"format":850,"type":683},{"description":852,"example":827,"type":683},{"additionalProperties":364,"description":854,"type":728},[856,732,857,858],[860],"`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":885,"description":904},{"application\u002Fjson":886},{"examples":887,"schema":892},{"forbidden":888},{"summary":650,"value":889},{"error":890},{"code":650,"documentation_url":891,"message":651,"request_id":827},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#forbidden",{"x-ref":829,"description":830,"properties":893,"required":903,"type":728},{"error":894},{"x-ref":833,"description":834,"properties":895,"required":902,"type":728},{"code":896,"message":898,"documentation_url":899,"request_id":900,"details":901},{"description":837,"enum":897,"example":655,"type":683},[839,641,646,650,655,663,840,841,842,668,672,843],{"description":845,"example":846,"type":683},{"description":848,"example":849,"format":850,"type":683},{"description":852,"example":827,"type":683},{"additionalProperties":364,"description":854,"type":728},[856,732,857,858],[860],"`forbidden`: The token is valid, but no role on your account allows `application\u002Fdelete` on the organization in the path, or a role denies it.",{"content":906,"description":927},{"application\u002Fjson":907},{"examples":908,"schema":915},{"not_found":909,"not_found_2":912},{"summary":658,"value":910},{"error":911},{"code":655,"documentation_url":849,"message":656,"request_id":827},{"summary":661,"value":913},{"error":914},{"code":655,"documentation_url":849,"message":660,"request_id":827},{"x-ref":829,"description":830,"properties":916,"required":926,"type":728},{"error":917},{"x-ref":833,"description":834,"properties":918,"required":925,"type":728},{"code":919,"message":921,"documentation_url":922,"request_id":923,"details":924},{"description":837,"enum":920,"example":655,"type":683},[839,641,646,650,655,663,840,841,842,668,672,843],{"description":845,"example":846,"type":683},{"description":848,"example":849,"format":850,"type":683},{"description":852,"example":827,"type":683},{"additionalProperties":364,"description":854,"type":728},[856,732,857,858],[860],"- `not_found`: `organizationId` is not the `_id` of an organization.\n- `not_found`: No application of your students has this id: it matches nothing, or the application belongs to another account’s student. Both get the same answer.",{"content":929,"description":948},{"application\u002Fjson":930},{"examples":931,"schema":936},{"conflict":932},{"summary":663,"value":933},{"error":934},{"code":663,"documentation_url":935,"message":664,"request_id":827},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#conflict",{"x-ref":829,"description":830,"properties":937,"required":947,"type":728},{"error":938},{"x-ref":833,"description":834,"properties":939,"required":946,"type":728},{"code":940,"message":942,"documentation_url":943,"request_id":944,"details":945},{"description":837,"enum":941,"example":655,"type":683},[839,641,646,650,655,663,840,841,842,668,672,843],{"description":845,"example":846,"type":683},{"description":848,"example":849,"format":850,"type":683},{"description":852,"example":827,"type":683},{"additionalProperties":364,"description":854,"type":728},[856,732,857,858],[860],"`conflict`: The payment is settled. Cancelling a paid application is a refund, which happens outside this API.",{"content":950,"description":970,"headers":971},{"application\u002Fjson":951},{"examples":952,"schema":958},{"too_many_requests":953},{"summary":668,"value":954},{"error":955},{"code":668,"documentation_url":956,"message":957,"request_id":827},"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":829,"description":830,"properties":959,"required":969,"type":728},{"error":960},{"x-ref":833,"description":834,"properties":961,"required":968,"type":728},{"code":962,"message":964,"documentation_url":965,"request_id":966,"details":967},{"description":837,"enum":963,"example":655,"type":683},[839,641,646,650,655,663,840,841,842,668,672,843],{"description":845,"example":846,"type":683},{"description":848,"example":849,"format":850,"type":683},{"description":852,"example":827,"type":683},{"additionalProperties":364,"description":854,"type":728},[856,732,857,858],[860],"`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":972},{"description":973,"schema":974},"Seconds to wait before sending again; a request sent sooner is refused too.",{"type":812},{"content":976,"description":996},{"application\u002Fjson":977},{"examples":978,"schema":984},{"internal_error":979},{"summary":672,"value":980},{"error":981},{"code":672,"documentation_url":982,"message":983,"request_id":827},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#internal_error","An unexpected error occurred.",{"x-ref":829,"description":830,"properties":985,"required":995,"type":728},{"error":986},{"x-ref":833,"description":834,"properties":987,"required":994,"type":728},{"code":988,"message":990,"documentation_url":991,"request_id":992,"details":993},{"description":837,"enum":989,"example":655,"type":683},[839,641,646,650,655,663,840,841,842,668,672,843],{"description":845,"example":846,"type":683},{"description":848,"example":849,"format":850,"type":683},{"description":852,"example":827,"type":683},{"additionalProperties":364,"description":854,"type":728},[856,732,857,858],[860],"`internal_error`: Something failed on our side. Retry later, and quote `request_id` if it goes on.","200","envelope",{"path":26},{"id":1001,"title":252,"apiPath":549,"body":1002,"deprecated":134,"description":1565,"extension":1566,"meta":1567,"method":254,"navigation":364,"operationId":557,"order":1568,"path":253,"permission":559,"public":134,"seo":1569,"stem":1570,"summary":252,"tag":86,"__hash__":1571},"apiReference\u002Fapi\u002Freference\u002Fdelete-application.md",{"type":1003,"value":1004,"toc":1563},"minimark",[1005,1559],[1006,1007,1008,1064,1266],"api-code-group",{},[1009,1010,1016],"pre",{"className":1011,"code":1012,"filename":1013,"language":1014,"meta":1015,"style":1015},"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 DELETE 'https:\u002F\u002Fapi.main-team.org\u002Fv1\u002F\u003CorganizationId>\u002Fapplication\u002F\u003CapplicationId>' \\\n  -H \"Authorization: Bearer $TOKEN\"\n","curl","bash","",[856,1017,1018,1026,1049],{"__ignoreMap":1015},[1019,1020,1022],"span",{"class":1021,"line":367},"line",[1019,1023,1025],{"class":1024},"sLBg1","# $TOKEN: a short-lived token you minted with your API key and secret\n",[1019,1027,1028,1031,1035,1038,1042,1045],{"class":1021,"line":377},[1019,1029,1013],{"class":1030},"soyes",[1019,1032,1034],{"class":1033},"s-5SL"," -sS",[1019,1036,1037],{"class":1033}," -X",[1019,1039,1041],{"class":1040},"sT6z2"," DELETE",[1019,1043,1044],{"class":1040}," 'https:\u002F\u002Fapi.main-team.org\u002Fv1\u002F\u003CorganizationId>\u002Fapplication\u002F\u003CapplicationId>'",[1019,1046,1048],{"class":1047},"sHUrx"," \\\n",[1019,1050,1051,1054,1057,1061],{"class":1021,"line":382},[1019,1052,1053],{"class":1033},"  -H",[1019,1055,1056],{"class":1040}," \"Authorization: Bearer ",[1019,1058,1060],{"class":1059},"suds8","$TOKEN",[1019,1062,1063],{"class":1040},"\"\n",[1009,1065,1069],{"className":1066,"code":1067,"filename":308,"language":1068,"meta":1015,"style":1015},"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>\u002Fapplication\u002F\u003CapplicationId>', {\n  method: 'DELETE',\n  headers: {\n    Authorization: `Bearer ${token}`,\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",[856,1070,1071,1094,1099,1124,1135,1140,1156,1161,1166,1186,1255],{"__ignoreMap":1015},[1019,1072,1073,1076,1079,1082,1085,1088,1091],{"class":1021,"line":367},[1019,1074,1075],{"class":1047},"const",[1019,1077,1078],{"class":1033}," token",[1019,1080,1081],{"class":1047}," =",[1019,1083,1084],{"class":1059}," process.env.",[1019,1086,1087],{"class":1033},"TOKEN",[1019,1089,1090],{"class":1059},"; ",[1019,1092,1093],{"class":1024},"\u002F\u002F a short-lived token you minted with your API key and secret\n",[1019,1095,1096],{"class":1021,"line":377},[1019,1097,1098],{"emptyLinePlaceholder":364},"\n",[1019,1100,1101,1103,1106,1108,1111,1115,1118,1121],{"class":1021,"line":382},[1019,1102,1075],{"class":1047},[1019,1104,1105],{"class":1033}," res",[1019,1107,1081],{"class":1047},[1019,1109,1110],{"class":1047}," await",[1019,1112,1114],{"class":1113},"sKwhi"," fetch",[1019,1116,1117],{"class":1059},"(",[1019,1119,1120],{"class":1040},"'https:\u002F\u002Fapi.main-team.org\u002Fv1\u002F\u003CorganizationId>\u002Fapplication\u002F\u003CapplicationId>'",[1019,1122,1123],{"class":1059},", {\n",[1019,1125,1126,1129,1132],{"class":1021,"line":391},[1019,1127,1128],{"class":1059},"  method: ",[1019,1130,1131],{"class":1040},"'DELETE'",[1019,1133,1134],{"class":1059},",\n",[1019,1136,1137],{"class":1021,"line":396},[1019,1138,1139],{"class":1059},"  headers: {\n",[1019,1141,1142,1145,1148,1151,1154],{"class":1021,"line":402},[1019,1143,1144],{"class":1059},"    Authorization: ",[1019,1146,1147],{"class":1040},"`Bearer ${",[1019,1149,1150],{"class":1059},"token",[1019,1152,1153],{"class":1040},"}`",[1019,1155,1134],{"class":1059},[1019,1157,1158],{"class":1021,"line":407},[1019,1159,1160],{"class":1059},"  },\n",[1019,1162,1163],{"class":1021,"line":413},[1019,1164,1165],{"class":1059},"});\n",[1019,1167,1168,1170,1173,1175,1177,1180,1183],{"class":1021,"line":418},[1019,1169,1075],{"class":1047},[1019,1171,1172],{"class":1033}," body",[1019,1174,1081],{"class":1047},[1019,1176,1110],{"class":1047},[1019,1178,1179],{"class":1059}," res.",[1019,1181,1182],{"class":1113},"json",[1019,1184,1185],{"class":1059},"();\n",[1019,1187,1188,1191,1194,1197,1200,1203,1206,1209,1211,1214,1217,1220,1223,1226,1229,1231,1233,1235,1237,1240,1242,1244,1246,1248,1250,1252],{"class":1021,"line":427},[1019,1189,1190],{"class":1047},"if",[1019,1192,1193],{"class":1059}," (",[1019,1195,1196],{"class":1047},"!",[1019,1198,1199],{"class":1059},"res.ok) ",[1019,1201,1202],{"class":1047},"throw",[1019,1204,1205],{"class":1047}," new",[1019,1207,1208],{"class":1113}," Error",[1019,1210,1117],{"class":1059},[1019,1212,1213],{"class":1040},"`${",[1019,1215,1216],{"class":1059},"res",[1019,1218,1219],{"class":1040},".",[1019,1221,1222],{"class":1059},"status",[1019,1224,1225],{"class":1040},"} ${",[1019,1227,1228],{"class":1059},"body",[1019,1230,1219],{"class":1040},[1019,1232,860],{"class":1059},[1019,1234,1219],{"class":1040},[1019,1236,856],{"class":1059},[1019,1238,1239],{"class":1040},"}: ${",[1019,1241,1228],{"class":1059},[1019,1243,1219],{"class":1040},[1019,1245,860],{"class":1059},[1019,1247,1219],{"class":1040},[1019,1249,732],{"class":1059},[1019,1251,1153],{"class":1040},[1019,1253,1254],{"class":1059},");\n",[1019,1256,1257,1260,1263],{"class":1021,"line":432},[1019,1258,1259],{"class":1059},"console.",[1019,1261,1262],{"class":1113},"log",[1019,1264,1265],{"class":1059},"(body.data);\n",[1009,1267,1271],{"className":1268,"code":1269,"filename":311,"language":1270,"meta":1015,"style":1015},"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>\u002Fapplication\u002F\u003CapplicationId>');\ncurl_setopt_array($ch, [\n    CURLOPT_CUSTOMREQUEST => 'DELETE',\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);\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",[856,1272,1273,1281,1302,1306,1322,1330,1348,1358,1369,1374,1386,1391,1404,1420,1438,1443,1461,1479,1494,1510,1542,1546],{"__ignoreMap":1015},[1019,1274,1275,1278],{"class":1021,"line":367},[1019,1276,1277],{"class":1047},"\u003C?",[1019,1279,1280],{"class":1033},"php\n",[1019,1282,1283,1286,1289,1292,1294,1297,1300],{"class":1021,"line":377},[1019,1284,1285],{"class":1059},"$token ",[1019,1287,1288],{"class":1047},"=",[1019,1290,1291],{"class":1033}," getenv",[1019,1293,1117],{"class":1059},[1019,1295,1296],{"class":1040},"'TOKEN'",[1019,1298,1299],{"class":1059},"); ",[1019,1301,1093],{"class":1024},[1019,1303,1304],{"class":1021,"line":382},[1019,1305,1098],{"emptyLinePlaceholder":364},[1019,1307,1308,1311,1313,1316,1318,1320],{"class":1021,"line":391},[1019,1309,1310],{"class":1059},"$ch ",[1019,1312,1288],{"class":1047},[1019,1314,1315],{"class":1033}," curl_init",[1019,1317,1117],{"class":1059},[1019,1319,1120],{"class":1040},[1019,1321,1254],{"class":1059},[1019,1323,1324,1327],{"class":1021,"line":396},[1019,1325,1326],{"class":1033},"curl_setopt_array",[1019,1328,1329],{"class":1059},"($ch, [\n",[1019,1331,1332,1335,1338,1341,1343,1346],{"class":1021,"line":402},[1019,1333,1334],{"class":1033},"    CURLOPT_CUSTOMREQUEST",[1019,1336,1337],{"class":1047}," =>",[1019,1339,1340],{"class":1040}," '",[1019,1342,254],{"class":1047},[1019,1344,1345],{"class":1040},"'",[1019,1347,1134],{"class":1059},[1019,1349,1350,1353,1355],{"class":1021,"line":407},[1019,1351,1352],{"class":1033},"    CURLOPT_HTTPHEADER",[1019,1354,1337],{"class":1047},[1019,1356,1357],{"class":1059}," [\n",[1019,1359,1360,1363,1366],{"class":1021,"line":413},[1019,1361,1362],{"class":1040},"        'Authorization: Bearer '",[1019,1364,1365],{"class":1047}," .",[1019,1367,1368],{"class":1059}," $token,\n",[1019,1370,1371],{"class":1021,"line":418},[1019,1372,1373],{"class":1059},"    ],\n",[1019,1375,1376,1379,1381,1384],{"class":1021,"line":427},[1019,1377,1378],{"class":1033},"    CURLOPT_RETURNTRANSFER",[1019,1380,1337],{"class":1047},[1019,1382,1383],{"class":1033}," true",[1019,1385,1134],{"class":1059},[1019,1387,1388],{"class":1021,"line":432},[1019,1389,1390],{"class":1059},"]);\n",[1019,1392,1393,1396,1398,1401],{"class":1021,"line":437},[1019,1394,1395],{"class":1059},"$response ",[1019,1397,1288],{"class":1047},[1019,1399,1400],{"class":1033}," curl_exec",[1019,1402,1403],{"class":1059},"($ch);\n",[1019,1405,1406,1408,1411,1414,1417],{"class":1021,"line":442},[1019,1407,1190],{"class":1047},[1019,1409,1410],{"class":1059}," ($response ",[1019,1412,1413],{"class":1047},"===",[1019,1415,1416],{"class":1033}," false",[1019,1418,1419],{"class":1059},") {\n",[1019,1421,1422,1425,1427,1430,1432,1435],{"class":1021,"line":447},[1019,1423,1424],{"class":1047},"    throw",[1019,1426,1205],{"class":1047},[1019,1428,1429],{"class":1033}," RuntimeException",[1019,1431,1117],{"class":1059},[1019,1433,1434],{"class":1033},"curl_error",[1019,1436,1437],{"class":1059},"($ch));\n",[1019,1439,1440],{"class":1021,"line":452},[1019,1441,1442],{"class":1059},"}\n",[1019,1444,1445,1448,1450,1453,1456,1459],{"class":1021,"line":457},[1019,1446,1447],{"class":1059},"$status ",[1019,1449,1288],{"class":1047},[1019,1451,1452],{"class":1033}," curl_getinfo",[1019,1454,1455],{"class":1059},"($ch, ",[1019,1457,1458],{"class":1033},"CURLINFO_RESPONSE_CODE",[1019,1460,1254],{"class":1059},[1019,1462,1463,1466,1468,1471,1474,1477],{"class":1021,"line":463},[1019,1464,1465],{"class":1059},"$body ",[1019,1467,1288],{"class":1047},[1019,1469,1470],{"class":1033}," json_decode",[1019,1472,1473],{"class":1059},"($response, ",[1019,1475,1476],{"class":1033},"true",[1019,1478,1254],{"class":1059},[1019,1480,1481,1483,1486,1489,1492],{"class":1021,"line":469},[1019,1482,1190],{"class":1047},[1019,1484,1485],{"class":1059}," ($status ",[1019,1487,1488],{"class":1047},">=",[1019,1490,1491],{"class":1033}," 400",[1019,1493,1419],{"class":1059},[1019,1495,1496,1499,1501,1504,1507],{"class":1021,"line":474},[1019,1497,1498],{"class":1059},"    $error ",[1019,1500,1288],{"class":1047},[1019,1502,1503],{"class":1059}," $body[",[1019,1505,1506],{"class":1040},"'error'",[1019,1508,1509],{"class":1059},"];\n",[1019,1511,1512,1514,1516,1518,1520,1523,1526,1529,1532,1535,1537,1540],{"class":1021,"line":478},[1019,1513,1424],{"class":1047},[1019,1515,1205],{"class":1047},[1019,1517,1429],{"class":1033},[1019,1519,1117],{"class":1059},[1019,1521,1522],{"class":1040},"\"",[1019,1524,1525],{"class":1059},"$status",[1019,1527,1528],{"class":1040}," {",[1019,1530,1531],{"class":1059},"$error",[1019,1533,1534],{"class":1040},"['code']}: {",[1019,1536,1531],{"class":1059},[1019,1538,1539],{"class":1040},"['message']}\"",[1019,1541,1254],{"class":1059},[1019,1543,1544],{"class":1021,"line":483},[1019,1545,1442],{"class":1059},[1019,1547,1548,1551,1554,1557],{"class":1021,"line":491},[1019,1549,1550],{"class":1033},"print_r",[1019,1552,1553],{"class":1059},"($body[",[1019,1555,1556],{"class":1040},"'data'",[1019,1558,1390],{"class":1059},[1560,1561,1562],"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":1015,"searchDepth":377,"depth":382,"links":1564},[],"Deletes an application of one of your students.","md",{},"34",{"title":252,"description":1565},"api\u002Freference\u002Fdelete-application","mtJg9HBUz9nsa3nlgQwTVZr1L3LPECTiXwMw2fv1H64",1791554613404]