{"components":{"parameters":{"IdempotencyKey":{"description":"A value unique to this request — a UUID — so that sending it again does its work once. The same request sent again with the same key within a day is answered as the first was, with `Idempotent-Replayed: true`; the key sent with another request answers `422 IDEMPOTENCY_KEY_REUSED`, and sent while the first is still running `409 IDEMPOTENCY_KEY_IN_PROGRESS`. Only a success is kept: after an error the same key may be sent again.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":255,"minLength":1,"type":"string"}}},"schemas":{},"securitySchemes":{"access-token":{"bearerFormat":"JWT","in":"header","scheme":"bearer","type":"http"},"api-key":{"in":"header","name":"X-API-Key","type":"apiKey"}}},"info":{"contact":{"email":"support@fastomr.com","name":"FastOMR support","url":"https://fastomr.com"},"description":"REST API for designing, printing, scanning and scoring answer sheets.\n\n**Authentication**, one of:\n- a person: `Authorization: Bearer <accessToken>` from `POST /auth/login`; the refresh token\n  travels in an `HttpOnly` cookie and is rotated by `POST /auth/refresh`;\n- an integration: `X-API-Key: <key>`, made on the organization's API keys page. A key reaches\n  what its scopes allow, in its own organization, and never what only a person may do —\n  accounts, members, keys, billing.\n\nOperations that need neither say so.\n**Tenant context** for a person: `x-organization-id: <organizationId>`.\n\n**Retries**: a `POST` or `PATCH` may carry `Idempotency-Key: <a UUID>`. Sent again with the same key,\nit is answered as the first time — marked `Idempotent-Replayed: true` — and its work is done once.","title":"FastOMR API","version":"1.0.0"},"openapi":"3.0.0","paths":{"/api/health/live":{"get":{"operationId":"healthLive","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"description":"OK"}},"security":[],"summary":"Liveness probe (does not check dependencies)","tags":["System"]}},"/api/health/ready":{"get":{"operationId":"healthReady","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{"additionalProperties":true,"properties":{"responseTime":{"description":"Time the health indicator took to respond, in ms","type":"number"},"status":{"enum":["up","degraded","down"],"type":"string"}},"required":["status"],"type":"object"},"example":{"database":{"responseTime":12,"status":"up"}},"type":"object"},"error":{"additionalProperties":{"additionalProperties":true,"properties":{"responseTime":{"description":"Time the health indicator took to respond, in ms","type":"number"},"status":{"enum":["up","degraded","down"],"type":"string"}},"required":["status"],"type":"object"},"example":{},"nullable":true,"type":"object"},"info":{"additionalProperties":{"additionalProperties":true,"properties":{"responseTime":{"description":"Time the health indicator took to respond, in ms","type":"number"},"status":{"enum":["up","degraded","down"],"type":"string"}},"required":["status"],"type":"object"},"example":{"database":{"responseTime":12,"status":"up"}},"nullable":true,"type":"object"},"status":{"enum":["ok","degraded"],"example":"ok","type":"string"}},"type":"object"}}},"description":"The Health Check is successful"},"503":{"content":{"application/json":{"schema":{"properties":{"details":{"additionalProperties":{"additionalProperties":true,"properties":{"responseTime":{"description":"Time the health indicator took to respond, in ms","type":"number"},"status":{"enum":["up","degraded","down"],"type":"string"}},"required":["status"],"type":"object"},"example":{"database":{"responseTime":12,"status":"up"},"redis":{"message":"Could not connect","responseTime":3005,"status":"down"}},"type":"object"},"error":{"additionalProperties":{"additionalProperties":true,"properties":{"responseTime":{"description":"Time the health indicator took to respond, in ms","type":"number"},"status":{"enum":["up","degraded","down"],"type":"string"}},"required":["status"],"type":"object"},"example":{"redis":{"message":"Could not connect","responseTime":3005,"status":"down"}},"nullable":true,"type":"object"},"info":{"additionalProperties":{"additionalProperties":true,"properties":{"responseTime":{"description":"Time the health indicator took to respond, in ms","type":"number"},"status":{"enum":["up","degraded","down"],"type":"string"}},"required":["status"],"type":"object"},"example":{"database":{"responseTime":12,"status":"up"}},"nullable":true,"type":"object"},"status":{"enum":["error","shutting_down"],"example":"error","type":"string"}},"type":"object"}}},"description":"The Health Check is not successful"}},"security":[],"summary":"Readiness probe (database, Redis, object storage)","tags":["System"]}},"/api/v1/admin/mail-templates":{"get":{"operationId":"mailTemplatesList","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"additionalProperties":false,"properties":{"key":{"enum":["verifyEmail","accountSetup","invitation","passwordReset","emailChangeVerify","emailChangeNotice","passwordChanged","mfaEnabled","mfaDisabled","mfaRecoveryCodes","mfaReset","newDeviceSignIn","signInLocked","batchCompleted","subscriptionStarted","paymentFailed","subscriptionEnded","webhookFailing","webhookPaused"],"type":"string"},"locale":{"enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"updatedBy":{"nullable":true,"type":"string"}},"required":["key","locale","updatedAt","updatedBy"],"type":"object"},"type":"array"}}},"description":"OK"}},"summary":"Lists the letters and languages whose wording the administrator changed","tags":["System"]}},"/api/v1/admin/mail-templates/{key}/{locale}":{"delete":{"operationId":"mailTemplatesReset","parameters":[{"in":"path","name":"key","required":true,"schema":{"type":"string"}},{"in":"path","name":"locale","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"No content"}},"summary":"Returns a letter to the product’s own wording in one language","tags":["System"]},"get":{"description":"Every part is written in ICU MessageFormat — `{name}`, `{count, plural, one {…} other {…}}`, `{word, select, … other {…}}` — except that an apostrophe is an ordinary character.","operationId":"mailTemplatesGet","parameters":[{"in":"path","name":"key","required":true,"schema":{"type":"string"}},{"in":"path","name":"locale","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"defaults":{"additionalProperties":false,"properties":{"action":{"maxLength":80,"type":"string"},"body":{"maxLength":6000,"type":"string"},"contact":{"maxLength":500,"type":"string"},"footer":{"maxLength":1000,"type":"string"},"footnote":{"maxLength":1000,"type":"string"},"greeting":{"maxLength":200,"type":"string"},"subject":{"maxLength":200,"type":"string"},"title":{"maxLength":200,"type":"string"}},"type":"object"},"fields":{"additionalProperties":false,"properties":{"action":{"maxLength":80,"type":"string"},"body":{"maxLength":6000,"type":"string"},"contact":{"maxLength":500,"type":"string"},"footer":{"maxLength":1000,"type":"string"},"footnote":{"maxLength":1000,"type":"string"},"greeting":{"maxLength":200,"type":"string"},"subject":{"maxLength":200,"type":"string"},"title":{"maxLength":200,"type":"string"}},"type":"object"},"key":{"enum":["verifyEmail","accountSetup","invitation","passwordReset","emailChangeVerify","emailChangeNotice","passwordChanged","mfaEnabled","mfaDisabled","mfaRecoveryCodes","mfaReset","newDeviceSignIn","signInLocked","batchCompleted","subscriptionStarted","paymentFailed","subscriptionEnded","webhookFailing","webhookPaused"],"type":"string"},"locale":{"enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"samples":{"additionalProperties":{"anyOf":[{"maxLength":300,"type":"string"},{"maximum":1000000,"minimum":0,"type":"integer"}]},"type":"object"},"updatedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"updatedBy":{"nullable":true,"type":"string"}},"required":["key","locale","fields","defaults","samples","updatedAt","updatedBy"],"type":"object"}}},"description":"OK"}},"summary":"One letter’s wording in one language, with the product’s own beside it","tags":["System"]},"put":{"description":"Only the parts that differ from the product’s own are kept; a part saved back to it is removed. A part that cannot be written — a brace left open, a value the letter is not given — refuses the whole save.","operationId":"mailTemplatesUpdate","parameters":[{"in":"path","name":"key","required":true,"schema":{"type":"string"}},{"in":"path","name":"locale","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"fields":{"additionalProperties":false,"properties":{"action":{"maxLength":80,"type":"string"},"body":{"maxLength":6000,"type":"string"},"contact":{"maxLength":500,"type":"string"},"footer":{"maxLength":1000,"type":"string"},"footnote":{"maxLength":1000,"type":"string"},"greeting":{"maxLength":200,"type":"string"},"subject":{"maxLength":200,"type":"string"},"title":{"maxLength":200,"type":"string"}},"type":"object"}},"required":["fields"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"defaults":{"additionalProperties":false,"properties":{"action":{"maxLength":80,"type":"string"},"body":{"maxLength":6000,"type":"string"},"contact":{"maxLength":500,"type":"string"},"footer":{"maxLength":1000,"type":"string"},"footnote":{"maxLength":1000,"type":"string"},"greeting":{"maxLength":200,"type":"string"},"subject":{"maxLength":200,"type":"string"},"title":{"maxLength":200,"type":"string"}},"type":"object"},"fields":{"additionalProperties":false,"properties":{"action":{"maxLength":80,"type":"string"},"body":{"maxLength":6000,"type":"string"},"contact":{"maxLength":500,"type":"string"},"footer":{"maxLength":1000,"type":"string"},"footnote":{"maxLength":1000,"type":"string"},"greeting":{"maxLength":200,"type":"string"},"subject":{"maxLength":200,"type":"string"},"title":{"maxLength":200,"type":"string"}},"type":"object"},"key":{"enum":["verifyEmail","accountSetup","invitation","passwordReset","emailChangeVerify","emailChangeNotice","passwordChanged","mfaEnabled","mfaDisabled","mfaRecoveryCodes","mfaReset","newDeviceSignIn","signInLocked","batchCompleted","subscriptionStarted","paymentFailed","subscriptionEnded","webhookFailing","webhookPaused"],"type":"string"},"locale":{"enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"samples":{"additionalProperties":{"anyOf":[{"maxLength":300,"type":"string"},{"maximum":1000000,"minimum":0,"type":"integer"}]},"type":"object"},"updatedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"updatedBy":{"nullable":true,"type":"string"}},"required":["key","locale","fields","defaults","samples","updatedAt","updatedBy"],"type":"object"}}},"description":"OK"}},"summary":"Saves a letter’s wording in one language","tags":["System"]}},"/api/v1/admin/mail-templates/{key}/{locale}/preview":{"post":{"operationId":"mailTemplatesPreview","parameters":[{"in":"path","name":"key","required":true,"schema":{"type":"string"}},{"in":"path","name":"locale","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"fields":{"additionalProperties":false,"properties":{"action":{"maxLength":80,"type":"string"},"body":{"maxLength":6000,"type":"string"},"contact":{"maxLength":500,"type":"string"},"footer":{"maxLength":1000,"type":"string"},"footnote":{"maxLength":1000,"type":"string"},"greeting":{"maxLength":200,"type":"string"},"subject":{"maxLength":200,"type":"string"},"title":{"maxLength":200,"type":"string"}},"type":"object"},"values":{"additionalProperties":{"anyOf":[{"maxLength":300,"type":"string"},{"maximum":1000000,"minimum":0,"type":"integer"}]},"type":"object"}},"required":["fields"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"html":{"type":"string"},"subject":{"type":"string"},"text":{"type":"string"}},"required":["subject","html","text"],"type":"object"}}},"description":"OK"}},"summary":"Writes the letter with the given wording and sample values, without saving","tags":["System"]}},"/api/v1/admin/mail-templates/{key}/{locale}/test":{"post":{"description":"Marked “[TEST]” in its subject. Twenty an hour.","operationId":"mailTemplatesSendTest","parameters":[{"in":"path","name":"key","required":true,"schema":{"type":"string"}},{"in":"path","name":"locale","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"fields":{"additionalProperties":false,"properties":{"action":{"maxLength":80,"type":"string"},"body":{"maxLength":6000,"type":"string"},"contact":{"maxLength":500,"type":"string"},"footer":{"maxLength":1000,"type":"string"},"footnote":{"maxLength":1000,"type":"string"},"greeting":{"maxLength":200,"type":"string"},"subject":{"maxLength":200,"type":"string"},"title":{"maxLength":200,"type":"string"}},"type":"object"},"values":{"additionalProperties":{"anyOf":[{"maxLength":300,"type":"string"},{"maximum":1000000,"minimum":0,"type":"integer"}]},"type":"object"}},"required":["fields"],"type":"object"}}},"required":true},"responses":{"204":{"description":"No content"}},"summary":"Sends the letter, as being edited, to the administrator’s own address","tags":["System"]}},"/api/v1/admin/organizations":{"get":{"operationId":"adminOrganizationsList","parameters":[{"in":"query","name":"page","required":false,"schema":{"default":1,"maximum":10000,"minimum":1,"type":"integer"}},{"in":"query","name":"pageSize","required":false,"schema":{"default":20,"maximum":100,"minimum":1,"type":"integer"}},{"in":"query","name":"search","required":false,"schema":{"maxLength":200,"type":"string"}},{"in":"query","name":"sortBy","required":false,"schema":{"default":"createdAt","enum":["name","createdAt","plan"],"type":"string"}},{"in":"query","name":"sortDir","required":false,"schema":{"default":"desc","enum":["asc","desc"],"type":"string"}},{"in":"query","name":"plan","required":false,"schema":{"enum":["FREE","PERSONAL","PRO","ENTERPRISE"],"type":"string"}},{"in":"query","name":"includeClosed","required":false,"schema":{"anyOf":[{"type":"boolean"},{"enum":["0","1","true","false"],"type":"string"}]}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"items":{"items":{"additionalProperties":false,"properties":{"closedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"country":{"nullable":true,"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"extraSeats":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"kind":{"enum":["EDUCATION","BUSINESS"],"type":"string"},"memberCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"name":{"type":"string"},"owner":{"additionalProperties":false,"nullable":true,"properties":{"displayName":{"type":"string"},"email":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["id","email","displayName"],"type":"object"},"plan":{"enum":["FREE","PERSONAL","PRO","ENTERPRISE"],"type":"string"},"projectCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"sheetsThisMonth":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"slug":{"type":"string"}},"required":["id","name","slug","plan","extraSeats","kind","country","createdAt","closedAt","memberCount","projectCount","sheetsThisMonth","owner"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"hasNext":{"type":"boolean"},"hasPrevious":{"type":"boolean"},"page":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"pageSize":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"totalItems":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"totalPages":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["page","pageSize","totalItems","totalPages","hasPrevious","hasNext"],"type":"object"}},"required":["items","meta"],"type":"object"}}},"description":"OK"}},"summary":"Lists every organization on the platform (system administration)","tags":["System"]},"post":{"description":"An owner address without an account gets one, without a password, and a \"set your password\" e-mail (`ownerInvited: true`); one with an account is made the owner, and is sent the same e-mail when it never had its password set. Answers `ACCOUNT_DISABLED` for a closed or suspended account.","operationId":"adminOrganizationsCreate","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"country":{"maxLength":2,"minLength":2,"type":"string"},"defaultLocale":{"default":"en","enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"kind":{"default":"EDUCATION","enum":["EDUCATION","BUSINESS"],"type":"string"},"name":{"maxLength":120,"minLength":1,"type":"string"},"owner":{"properties":{"email":{"type":"string"},"firstName":{"maxLength":80,"minLength":1,"type":"string"},"lastName":{"maxLength":80,"minLength":1,"type":"string"}},"required":["email","firstName","lastName"],"type":"object"},"plan":{"default":"FREE","enum":["FREE","PERSONAL","PRO","ENTERPRISE"],"type":"string"},"timezone":{"default":"UTC","maxLength":64,"minLength":1,"type":"string"}},"required":["name","owner"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"organization":{"additionalProperties":false,"properties":{"closedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"country":{"nullable":true,"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"extraSeats":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"kind":{"enum":["EDUCATION","BUSINESS"],"type":"string"},"memberCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"name":{"type":"string"},"owner":{"additionalProperties":false,"nullable":true,"properties":{"displayName":{"type":"string"},"email":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["id","email","displayName"],"type":"object"},"plan":{"enum":["FREE","PERSONAL","PRO","ENTERPRISE"],"type":"string"},"projectCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"sheetsThisMonth":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"slug":{"type":"string"}},"required":["id","name","slug","plan","extraSeats","kind","country","createdAt","closedAt","memberCount","projectCount","sheetsThisMonth","owner"],"type":"object"},"ownerInvited":{"type":"boolean"}},"required":["organization","ownerInvited"],"type":"object"}}},"description":"Created"}},"summary":"Adds a customer: an organization, its plan and its owner","tags":["System"]}},"/api/v1/admin/organizations/{id}":{"delete":{"operationId":"adminOrganizationsClose","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"No content"}},"summary":"Closes an organization (soft delete; purged after the retention window)","tags":["System"]}},"/api/v1/admin/organizations/{id}/extra-seats":{"put":{"description":"Fewer seats are refused with `QUOTA_EXCEEDED` while members or invitations still hold them. Answers `PLAN_EXTRA_UNAVAILABLE` for seats the plan does not take, and `SUBSCRIPTION_MANAGED_BY_PROVIDER` while the provider holds the subscription — its owner changes those on the billing screen.","operationId":"adminOrganizationsSetExtraSeats","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"extraSeats":{"maximum":1000,"minimum":0,"type":"integer"}},"required":["extraSeats"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"billingInterval":{"enum":["MONTH","YEAR"],"nullable":true,"type":"string"},"cancelAtPeriodEnd":{"type":"boolean"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"currentPeriodEnd":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"currentPeriodStart":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"externalCustomerId":{"nullable":true,"type":"string"},"extraSeats":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"managedByProvider":{"type":"boolean"},"organizationId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"paymentMethod":{"additionalProperties":false,"nullable":true,"properties":{"brand":{"type":"string"},"expMonth":{"maximum":12,"minimum":1,"type":"integer"},"expYear":{"maximum":9007199254740991,"minimum":2000,"type":"integer"},"last4":{"maxLength":4,"minLength":4,"type":"string"}},"required":["brand","last4","expMonth","expYear"],"type":"object"},"plan":{"enum":["FREE","PERSONAL","PRO","ENTERPRISE"],"type":"string"},"status":{"enum":["TRIALING","ACTIVE","PAST_DUE","CANCELED","EXPIRED"],"type":"string"},"trialEndsAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},"required":["organizationId","plan","status","trialEndsAt","currentPeriodStart","currentPeriodEnd","cancelAtPeriodEnd","extraSeats","externalCustomerId","managedByProvider","billingInterval","paymentMethod","createdAt","updatedAt"],"type":"object"}}},"description":"OK"}},"summary":"Sets the extra seats of an organization outside the payment provider","tags":["System"]}},"/api/v1/admin/organizations/{id}/extras":{"get":{"operationId":"adminOrganizationsExtras","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"packSheetsRemaining":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"seats":{"additionalProperties":false,"properties":{"extra":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"included":{"maximum":9007199254740991,"minimum":0,"nullable":true,"type":"integer"},"max":{"maximum":9007199254740991,"minimum":0,"nullable":true,"type":"integer"}},"required":["included","extra","max"],"type":"object"},"sheetPacks":{"items":{"additionalProperties":false,"properties":{"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"expiresAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"remaining":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"sheets":{"exclusiveMinimum":true,"maximum":9007199254740991,"minimum":0,"type":"integer"},"source":{"enum":["PURCHASE","GRANT"],"type":"string"}},"required":["id","sheets","remaining","source","createdAt","expiresAt"],"type":"object"},"type":"array"}},"required":["seats","sheetPacks","packSheetsRemaining"],"type":"object"}}},"description":"OK"}},"summary":"The extra seats and sheet packs an organization holds on top of its plan","tags":["System"]}},"/api/v1/admin/organizations/{id}/plan":{"put":{"description":"For a plan that is not bought from the screen: a plan agreed on a quote, enterprise, a pilot, a courtesy. `extraSeats` sets the seats agreed with it, and none when left out. Answers `SUBSCRIPTION_MANAGED_BY_PROVIDER` while the provider holds a paid subscription for the organization, `PLAN_EXTRA_UNAVAILABLE` for seats the plan does not take, and `QUOTA_EXCEEDED` when the organization does not fit.","operationId":"adminOrganizationsAssignPlan","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"extraSeats":{"default":0,"maximum":1000,"minimum":0,"type":"integer"},"plan":{"enum":["FREE","PERSONAL","PRO","ENTERPRISE"],"type":"string"}},"required":["plan"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"billingInterval":{"enum":["MONTH","YEAR"],"nullable":true,"type":"string"},"cancelAtPeriodEnd":{"type":"boolean"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"currentPeriodEnd":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"currentPeriodStart":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"externalCustomerId":{"nullable":true,"type":"string"},"extraSeats":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"managedByProvider":{"type":"boolean"},"organizationId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"paymentMethod":{"additionalProperties":false,"nullable":true,"properties":{"brand":{"type":"string"},"expMonth":{"maximum":12,"minimum":1,"type":"integer"},"expYear":{"maximum":9007199254740991,"minimum":2000,"type":"integer"},"last4":{"maxLength":4,"minLength":4,"type":"string"}},"required":["brand","last4","expMonth","expYear"],"type":"object"},"plan":{"enum":["FREE","PERSONAL","PRO","ENTERPRISE"],"type":"string"},"status":{"enum":["TRIALING","ACTIVE","PAST_DUE","CANCELED","EXPIRED"],"type":"string"},"trialEndsAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},"required":["organizationId","plan","status","trialEndsAt","currentPeriodStart","currentPeriodEnd","cancelAtPeriodEnd","extraSeats","externalCustomerId","managedByProvider","billingInterval","paymentMethod","createdAt","updatedAt"],"type":"object"}}},"description":"OK"}},"summary":"Assigns a plan outside the payment provider","tags":["System"]}},"/api/v1/admin/organizations/{id}/restore":{"post":{"operationId":"adminOrganizationsRestore","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"204":{"description":"No content"}},"summary":"Reopens a closed organization before the purge removes it","tags":["System"]}},"/api/v1/admin/organizations/{id}/sheet-packs":{"post":{"description":"Its sheets are read only after the month’s allowance is used. Answers `PLAN_EXTRA_UNAVAILABLE` for a plan with no monthly limit.","operationId":"adminOrganizationsGrantSheetPack","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"sheets":{"maximum":1000000,"minimum":1,"type":"integer"},"validDays":{"default":365,"maximum":1095,"minimum":1,"type":"integer"}},"required":["sheets"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"expiresAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"remaining":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"sheets":{"exclusiveMinimum":true,"maximum":9007199254740991,"minimum":0,"type":"integer"},"source":{"enum":["PURCHASE","GRANT"],"type":"string"}},"required":["id","sheets","remaining","source","createdAt","expiresAt"],"type":"object"}}},"description":"Created"}},"summary":"Gives an organization a pack of sheets","tags":["System"]}},"/api/v1/admin/organizations/{id}/sheet-packs/{packId}":{"delete":{"description":"For a pack given by mistake, or one whose payment was returned.","operationId":"adminOrganizationsRemoveSheetPack","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"in":"path","name":"packId","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"No content"}},"summary":"Takes a sheet pack back, with whatever it has left","tags":["System"]}},"/api/v1/admin/scheduled-jobs":{"get":{"operationId":"scheduledJobsList","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"additionalProperties":false,"properties":{"cadence":{"enum":["hourly","daily"],"type":"string"},"hour":{"maximum":23,"minimum":0,"nullable":true,"type":"integer"},"key":{"enum":["advance-subscriptions","recover-abandoned-reads","recover-lost-print-runs","cleanup-expired-tokens","cleanup-expired-objects","purge-deleted-users","purge-unverified-accounts","purge-audit-log","purge-deleted-projects","purge-deleted-templates","purge-deleted-organizations","purge-orphan-paper-pages","apply-data-retention"],"type":"string"},"runs":{"items":{"additionalProperties":false,"properties":{"affected":{"maximum":9007199254740991,"minimum":0,"nullable":true,"type":"integer"},"error":{"nullable":true,"type":"string"},"finishedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"outcome":{"enum":["QUEUED","RUNNING","SUCCEEDED","FAILED","SKIPPED"],"type":"string"},"requestedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"startedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"trigger":{"enum":["SCHEDULE","MANUAL"],"type":"string"}},"required":["id","trigger","outcome","requestedAt","startedAt","finishedAt","affected","error"],"type":"object"},"maxItems":10,"type":"array"}},"required":["key","cadence","hour","runs"],"type":"object"},"type":"array"}}},"description":"OK"}},"summary":"Lists the scheduled maintenance jobs, when each runs (UTC), and its latest runs","tags":["System"]}},"/api/v1/admin/scheduled-jobs/{job}/run":{"post":{"description":"The worker takes the run up; the list shows it queued, running, then how it ended. Refused with `SCHEDULED_JOB_BUSY` while a run of the job is queued or under way.","operationId":"scheduledJobsRun","parameters":[{"in":"path","name":"job","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"reason":{"maxLength":500,"minLength":5,"type":"string"}},"required":["reason"],"type":"object"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"affected":{"maximum":9007199254740991,"minimum":0,"nullable":true,"type":"integer"},"error":{"nullable":true,"type":"string"},"finishedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"outcome":{"enum":["QUEUED","RUNNING","SUCCEEDED","FAILED","SKIPPED"],"type":"string"},"requestedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"startedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"trigger":{"enum":["SCHEDULE","MANUAL"],"type":"string"}},"required":["id","trigger","outcome","requestedAt","startedAt","finishedAt","affected","error"],"type":"object"}}},"description":"Accepted: the work continues in the background"}},"summary":"Queues a run of one job at once, with a reason kept in the audit log","tags":["System"]}},"/api/v1/admin/system-notice":{"delete":{"operationId":"adminSystemNoticeClear","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"No content"}},"summary":"Removes the notice from every screen","tags":["System"]},"get":{"operationId":"adminSystemNoticeCurrent","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"notice":{"additionalProperties":false,"nullable":true,"properties":{"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"endsAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"messages":{"additionalProperties":{"maxLength":280,"minLength":1,"type":"string"},"type":"object"},"severity":{"enum":["INFO","WARNING"],"type":"string"},"startsAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},"required":["id","severity","messages","startsAt","endsAt","createdAt"],"type":"object"}},"required":["notice"],"type":"object"}}},"description":"OK"}},"summary":"The notice as saved, whether or not it is showing now","tags":["System"]},"put":{"description":"A new notice has a new id, so readers who closed the last one see it.","operationId":"adminSystemNoticeSet","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"endsAt":{"default":null,"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"messages":{"additionalProperties":{"maxLength":280,"minLength":1,"type":"string"},"type":"object"},"severity":{"enum":["INFO","WARNING"],"type":"string"},"startsAt":{"default":null,"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},"required":["severity","messages"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"notice":{"additionalProperties":false,"nullable":true,"properties":{"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"endsAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"messages":{"additionalProperties":{"maxLength":280,"minLength":1,"type":"string"},"type":"object"},"severity":{"enum":["INFO","WARNING"],"type":"string"},"startsAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},"required":["id","severity","messages","startsAt","endsAt","createdAt"],"type":"object"}},"required":["notice"],"type":"object"}}},"description":"OK"}},"summary":"Replaces the notice; every screen shows the new one within a few minutes","tags":["System"]}},"/api/v1/api-keys":{"get":{"operationId":"apiKeysList","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"additionalProperties":false,"properties":{"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"expiresAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"lastUsedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"name":{"type":"string"},"prefix":{"type":"string"},"revokedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"scopes":{"items":{"enum":["organization:read","organization:update","organization:delete","member:read","member:invite","member:update-role","member:remove","template:read","template:create","template:update","template:delete","template:publish","project:read","project:create","project:update","project:delete","answer-key:update","scan:read","scan:upload","scan:review","scan:discard","scan:delete","result:read","result:export","student:erase","audit:read","billing:read","billing:manage","api-key:read","api-key:manage","webhook:read","webhook:manage"],"type":"string"},"type":"array"}},"required":["id","name","prefix","scopes","lastUsedAt","expiresAt","revokedAt","createdAt"],"type":"object"},"type":"array"}}},"description":"OK"}},"summary":"Lists the API keys","tags":["Integration"]},"post":{"operationId":"apiKeysCreate","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"expiresAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"name":{"maxLength":120,"minLength":1,"type":"string"},"scopes":{"items":{"enum":["organization:read","member:read","template:read","template:create","template:update","template:delete","template:publish","project:read","project:create","project:update","project:delete","answer-key:update","scan:read","scan:upload","scan:review","scan:discard","scan:delete","result:read","result:export","audit:read","billing:read","api-key:read","webhook:read","webhook:manage"],"type":"string"},"minItems":1,"type":"array"}},"required":["name","scopes"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"expiresAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"lastUsedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"name":{"type":"string"},"prefix":{"type":"string"},"revokedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"scopes":{"items":{"enum":["organization:read","organization:update","organization:delete","member:read","member:invite","member:update-role","member:remove","template:read","template:create","template:update","template:delete","template:publish","project:read","project:create","project:update","project:delete","answer-key:update","scan:read","scan:upload","scan:review","scan:discard","scan:delete","result:read","result:export","student:erase","audit:read","billing:read","billing:manage","api-key:read","api-key:manage","webhook:read","webhook:manage"],"type":"string"},"type":"array"},"secret":{"type":"string"}},"required":["id","name","prefix","scopes","lastUsedAt","expiresAt","revokedAt","createdAt","secret"],"type":"object"}}},"description":"Created"}},"summary":"Creates a new API key (the secret is returned in this response only)","tags":["Integration"]}},"/api/v1/api-keys/{id}":{"delete":{"operationId":"apiKeysRevoke","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"No content"}},"summary":"Revokes the API key","tags":["Integration"]}},"/api/v1/auth/change-password":{"post":{"operationId":"authChangePassword","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"currentPassword":{"maxLength":128,"minLength":1,"type":"string"},"password":{"maxLength":128,"minLength":10,"type":"string"},"passwordConfirm":{"type":"string"}},"required":["currentPassword","password","passwordConfirm"],"type":"object"}}},"required":true},"responses":{"204":{"description":"No content"}},"summary":"Changes the password; other devices are signed out","tags":["Authentication"]}},"/api/v1/auth/email-change":{"delete":{"operationId":"authCancelEmailChange","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"No content"}},"summary":"Cancels a pending e-mail address change","tags":["Authentication"]},"post":{"operationId":"authRequestEmailChange","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"currentPassword":{"maxLength":128,"minLength":1,"type":"string"},"newEmail":{"type":"string"}},"required":["newEmail","currentPassword"],"type":"object"}}},"required":true},"responses":{"204":{"description":"No content"}},"summary":"Asks to move the account to another e-mail address; the link goes to that address","tags":["Authentication"]}},"/api/v1/auth/email-change/confirm":{"post":{"operationId":"authConfirmEmailChange","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"token":{"maxLength":256,"minLength":20,"type":"string"}},"required":["token"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"email":{"type":"string"}},"type":"object"}}},"description":"OK"}},"security":[],"summary":"Completes an e-mail address change from the link sent to the new address","tags":["Authentication"]}},"/api/v1/auth/forgot-password":{"post":{"description":"An account that has no password yet — opened by the platform staff and never set up — is sent a new set-up link instead, whose page asks for the terms.","operationId":"authForgotPassword","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"email":{"type":"string"}},"required":["email"],"type":"object"}}},"required":true},"responses":{"202":{"description":"Accepted: the work continues in the background"}},"security":[],"summary":"Sends a password reset link","tags":["Authentication"]}},"/api/v1/auth/login":{"post":{"operationId":"authLogin","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"email":{"type":"string"},"password":{"maxLength":128,"minLength":1,"type":"string"},"rememberMe":{"default":false,"type":"boolean"}},"required":["email","password"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"oneOf":[{"additionalProperties":false,"properties":{"activeOrganizationId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"organizations":{"items":{"additionalProperties":false,"properties":{"country":{"nullable":true,"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"dataRetentionDays":{"maximum":9007199254740991,"minimum":-9007199254740991,"nullable":true,"type":"integer"},"defaultLocale":{"enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"kind":{"enum":["EDUCATION","BUSINESS"],"type":"string"},"logoUrl":{"nullable":true,"type":"string"},"memberCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"name":{"type":"string"},"permissions":{"items":{"enum":["organization:read","organization:update","organization:delete","member:read","member:invite","member:update-role","member:remove","template:read","template:create","template:update","template:delete","template:publish","project:read","project:create","project:update","project:delete","answer-key:update","scan:read","scan:upload","scan:review","scan:discard","scan:delete","result:read","result:export","student:erase","audit:read","billing:read","billing:manage","api-key:read","api-key:manage","webhook:read","webhook:manage"],"type":"string"},"type":"array"},"plan":{"enum":["FREE","PERSONAL","PRO","ENTERPRISE"],"type":"string"},"role":{"enum":["OWNER","ADMIN","MEMBER","VIEWER"],"type":"string"},"slug":{"type":"string"},"timezone":{"type":"string"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},"required":["id","name","slug","plan","kind","logoUrl","defaultLocale","timezone","country","dataRetentionDays","createdAt","updatedAt","role","permissions","memberCount"],"type":"object"},"type":"array"},"status":{"enum":["authenticated"],"type":"string"},"tokens":{"additionalProperties":false,"properties":{"accessToken":{"type":"string"},"expiresIn":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"tokenType":{"enum":["Bearer"],"type":"string"}},"required":["accessToken","tokenType","expiresIn"],"type":"object"},"user":{"additionalProperties":false,"properties":{"avatarUrl":{"nullable":true,"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"displayName":{"type":"string"},"email":{"type":"string"},"emailVerifiedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"firstName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"lastLoginAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"lastName":{"type":"string"},"locale":{"enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"notifyBatchCompleted":{"type":"boolean"},"pendingEmail":{"nullable":true,"type":"string"},"status":{"enum":["PENDING_VERIFICATION","ACTIVE","SUSPENDED"],"type":"string"},"systemRole":{"enum":["USER","SUPPORT","SUPER_ADMIN"],"type":"string"},"theme":{"enum":["SYSTEM","LIGHT","DARK"],"type":"string"},"timezone":{"nullable":true,"type":"string"}},"required":["id","email","pendingEmail","firstName","lastName","displayName","avatarUrl","locale","theme","timezone","notifyBatchCompleted","systemRole","status","emailVerifiedAt","lastLoginAt","createdAt"],"type":"object"}},"required":["status","tokens","user","organizations","activeOrganizationId"],"type":"object"},{"additionalProperties":false,"properties":{"challengeToken":{"type":"string"},"expiresIn":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"status":{"enum":["mfa_required"],"type":"string"}},"required":["status","challengeToken","expiresIn"],"type":"object"}]}}},"description":"OK"}},"security":[],"summary":"Signs in; may return a second-factor challenge","tags":["Authentication"]}},"/api/v1/auth/logout":{"post":{"operationId":"authLogout","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"204":{"description":"No content"}},"summary":"Signs out the session on this device","tags":["Authentication"]}},"/api/v1/auth/logout-all":{"post":{"operationId":"authLogoutAll","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"revoked":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["revoked"],"type":"object"}}},"description":"How many sessions were signed out"}},"summary":"Signs out sessions on all devices","tags":["Authentication"]}},"/api/v1/auth/me":{"get":{"operationId":"authMe","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"activeOrganizationId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"organizations":{"items":{"additionalProperties":false,"properties":{"country":{"nullable":true,"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"dataRetentionDays":{"maximum":9007199254740991,"minimum":-9007199254740991,"nullable":true,"type":"integer"},"defaultLocale":{"enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"kind":{"enum":["EDUCATION","BUSINESS"],"type":"string"},"logoUrl":{"nullable":true,"type":"string"},"memberCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"name":{"type":"string"},"permissions":{"items":{"enum":["organization:read","organization:update","organization:delete","member:read","member:invite","member:update-role","member:remove","template:read","template:create","template:update","template:delete","template:publish","project:read","project:create","project:update","project:delete","answer-key:update","scan:read","scan:upload","scan:review","scan:discard","scan:delete","result:read","result:export","student:erase","audit:read","billing:read","billing:manage","api-key:read","api-key:manage","webhook:read","webhook:manage"],"type":"string"},"type":"array"},"plan":{"enum":["FREE","PERSONAL","PRO","ENTERPRISE"],"type":"string"},"role":{"enum":["OWNER","ADMIN","MEMBER","VIEWER"],"type":"string"},"slug":{"type":"string"},"timezone":{"type":"string"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},"required":["id","name","slug","plan","kind","logoUrl","defaultLocale","timezone","country","dataRetentionDays","createdAt","updatedAt","role","permissions","memberCount"],"type":"object"},"type":"array"},"tokens":{"additionalProperties":false,"properties":{"accessToken":{"type":"string"},"expiresIn":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"tokenType":{"enum":["Bearer"],"type":"string"}},"required":["accessToken","tokenType","expiresIn"],"type":"object"},"user":{"additionalProperties":false,"properties":{"avatarUrl":{"nullable":true,"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"displayName":{"type":"string"},"email":{"type":"string"},"emailVerifiedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"firstName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"lastLoginAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"lastName":{"type":"string"},"locale":{"enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"notifyBatchCompleted":{"type":"boolean"},"pendingEmail":{"nullable":true,"type":"string"},"status":{"enum":["PENDING_VERIFICATION","ACTIVE","SUSPENDED"],"type":"string"},"systemRole":{"enum":["USER","SUPPORT","SUPER_ADMIN"],"type":"string"},"theme":{"enum":["SYSTEM","LIGHT","DARK"],"type":"string"},"timezone":{"nullable":true,"type":"string"}},"required":["id","email","pendingEmail","firstName","lastName","displayName","avatarUrl","locale","theme","timezone","notifyBatchCompleted","systemRole","status","emailVerifiedAt","lastLoginAt","createdAt"],"type":"object"}},"required":["tokens","user","organizations","activeOrganizationId"],"type":"object"}}},"description":"OK"}},"summary":"The active session's user and organization context","tags":["Authentication"]}},"/api/v1/auth/mfa":{"get":{"operationId":"authMfaStatus","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"enabledAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","type":"string"},"recoveryCodesRemaining":{"maximum":9007199254740991,"minimum":0,"type":"integer"}},"required":["enabled","enabledAt","recoveryCodesRemaining"],"type":"object"}}},"description":"OK"}},"summary":"Two-factor status","tags":["Authentication"]}},"/api/v1/auth/mfa/activate":{"post":{"operationId":"authActivateMfa","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"code":{"type":"string"}},"required":["code"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"recoveryCodes":{"items":{"type":"string"},"minItems":1,"type":"array"}},"required":["recoveryCodes"],"type":"object"}}},"description":"OK"}},"summary":"Activates two-factor and returns the recovery codes","tags":["Authentication"]}},"/api/v1/auth/mfa/challenge":{"post":{"operationId":"authCompleteMfaChallenge","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"challengeToken":{"minLength":1,"type":"string"},"code":{"type":"string"},"recoveryCode":{"type":"string"}},"required":["challengeToken"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"activeOrganizationId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"organizations":{"items":{"additionalProperties":false,"properties":{"country":{"nullable":true,"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"dataRetentionDays":{"maximum":9007199254740991,"minimum":-9007199254740991,"nullable":true,"type":"integer"},"defaultLocale":{"enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"kind":{"enum":["EDUCATION","BUSINESS"],"type":"string"},"logoUrl":{"nullable":true,"type":"string"},"memberCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"name":{"type":"string"},"permissions":{"items":{"enum":["organization:read","organization:update","organization:delete","member:read","member:invite","member:update-role","member:remove","template:read","template:create","template:update","template:delete","template:publish","project:read","project:create","project:update","project:delete","answer-key:update","scan:read","scan:upload","scan:review","scan:discard","scan:delete","result:read","result:export","student:erase","audit:read","billing:read","billing:manage","api-key:read","api-key:manage","webhook:read","webhook:manage"],"type":"string"},"type":"array"},"plan":{"enum":["FREE","PERSONAL","PRO","ENTERPRISE"],"type":"string"},"role":{"enum":["OWNER","ADMIN","MEMBER","VIEWER"],"type":"string"},"slug":{"type":"string"},"timezone":{"type":"string"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},"required":["id","name","slug","plan","kind","logoUrl","defaultLocale","timezone","country","dataRetentionDays","createdAt","updatedAt","role","permissions","memberCount"],"type":"object"},"type":"array"},"tokens":{"additionalProperties":false,"properties":{"accessToken":{"type":"string"},"expiresIn":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"tokenType":{"enum":["Bearer"],"type":"string"}},"required":["accessToken","tokenType","expiresIn"],"type":"object"},"user":{"additionalProperties":false,"properties":{"avatarUrl":{"nullable":true,"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"displayName":{"type":"string"},"email":{"type":"string"},"emailVerifiedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"firstName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"lastLoginAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"lastName":{"type":"string"},"locale":{"enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"notifyBatchCompleted":{"type":"boolean"},"pendingEmail":{"nullable":true,"type":"string"},"status":{"enum":["PENDING_VERIFICATION","ACTIVE","SUSPENDED"],"type":"string"},"systemRole":{"enum":["USER","SUPPORT","SUPER_ADMIN"],"type":"string"},"theme":{"enum":["SYSTEM","LIGHT","DARK"],"type":"string"},"timezone":{"nullable":true,"type":"string"}},"required":["id","email","pendingEmail","firstName","lastName","displayName","avatarUrl","locale","theme","timezone","notifyBatchCompleted","systemRole","status","emailVerifiedAt","lastLoginAt","createdAt"],"type":"object"}},"required":["tokens","user","organizations","activeOrganizationId"],"type":"object"}}},"description":"OK"}},"security":[],"summary":"Completes a login with the second factor","tags":["Authentication"]}},"/api/v1/auth/mfa/disable":{"post":{"operationId":"authDisableMfa","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"password":{"maxLength":128,"minLength":1,"type":"string"}},"required":["password"],"type":"object"}}},"required":true},"responses":{"204":{"description":"No content"}},"summary":"Turns two-factor off","tags":["Authentication"]}},"/api/v1/auth/mfa/enroll":{"post":{"operationId":"authBeginMfaEnrollment","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"otpauthUrl":{"type":"string"},"qrCodeDataUrl":{"type":"string"},"secret":{"type":"string"}},"required":["secret","otpauthUrl","qrCodeDataUrl"],"type":"object"}}},"description":"OK"}},"summary":"Starts enrollment: produces a secret and a QR code","tags":["Authentication"]}},"/api/v1/auth/mfa/recovery-codes":{"post":{"operationId":"authRegenerateRecoveryCodes","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"password":{"maxLength":128,"minLength":1,"type":"string"}},"required":["password"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"recoveryCodes":{"items":{"type":"string"},"minItems":1,"type":"array"}},"required":["recoveryCodes"],"type":"object"}}},"description":"OK"}},"summary":"Regenerates the recovery codes","tags":["Authentication"]}},"/api/v1/auth/refresh":{"post":{"operationId":"authRefresh","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"activeOrganizationId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"organizations":{"items":{"additionalProperties":false,"properties":{"country":{"nullable":true,"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"dataRetentionDays":{"maximum":9007199254740991,"minimum":-9007199254740991,"nullable":true,"type":"integer"},"defaultLocale":{"enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"kind":{"enum":["EDUCATION","BUSINESS"],"type":"string"},"logoUrl":{"nullable":true,"type":"string"},"memberCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"name":{"type":"string"},"permissions":{"items":{"enum":["organization:read","organization:update","organization:delete","member:read","member:invite","member:update-role","member:remove","template:read","template:create","template:update","template:delete","template:publish","project:read","project:create","project:update","project:delete","answer-key:update","scan:read","scan:upload","scan:review","scan:discard","scan:delete","result:read","result:export","student:erase","audit:read","billing:read","billing:manage","api-key:read","api-key:manage","webhook:read","webhook:manage"],"type":"string"},"type":"array"},"plan":{"enum":["FREE","PERSONAL","PRO","ENTERPRISE"],"type":"string"},"role":{"enum":["OWNER","ADMIN","MEMBER","VIEWER"],"type":"string"},"slug":{"type":"string"},"timezone":{"type":"string"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},"required":["id","name","slug","plan","kind","logoUrl","defaultLocale","timezone","country","dataRetentionDays","createdAt","updatedAt","role","permissions","memberCount"],"type":"object"},"type":"array"},"tokens":{"additionalProperties":false,"properties":{"accessToken":{"type":"string"},"expiresIn":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"tokenType":{"enum":["Bearer"],"type":"string"}},"required":["accessToken","tokenType","expiresIn"],"type":"object"},"user":{"additionalProperties":false,"properties":{"avatarUrl":{"nullable":true,"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"displayName":{"type":"string"},"email":{"type":"string"},"emailVerifiedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"firstName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"lastLoginAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"lastName":{"type":"string"},"locale":{"enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"notifyBatchCompleted":{"type":"boolean"},"pendingEmail":{"nullable":true,"type":"string"},"status":{"enum":["PENDING_VERIFICATION","ACTIVE","SUSPENDED"],"type":"string"},"systemRole":{"enum":["USER","SUPPORT","SUPER_ADMIN"],"type":"string"},"theme":{"enum":["SYSTEM","LIGHT","DARK"],"type":"string"},"timezone":{"nullable":true,"type":"string"}},"required":["id","email","pendingEmail","firstName","lastName","displayName","avatarUrl","locale","theme","timezone","notifyBatchCompleted","systemRole","status","emailVerifiedAt","lastLoginAt","createdAt"],"type":"object"}},"required":["tokens","user","organizations","activeOrganizationId"],"type":"object"}}},"description":"OK"}},"security":[],"summary":"Refreshes the access token (the refresh token is read from the cookie)","tags":["Authentication"]}},"/api/v1/auth/register":{"post":{"operationId":"authRegister","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"acceptedTerms":{"type":"boolean"},"captchaToken":{"maxLength":4096,"type":"string"},"country":{"maxLength":2,"minLength":2,"type":"string"},"email":{"type":"string"},"firstName":{"maxLength":80,"minLength":1,"type":"string"},"invitationToken":{"maxLength":200,"minLength":10,"type":"string"},"lastName":{"maxLength":80,"minLength":1,"type":"string"},"locale":{"default":"en","enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"organizationKind":{"enum":["EDUCATION","BUSINESS"],"type":"string"},"organizationName":{"maxLength":120,"minLength":1,"type":"string"},"password":{"maxLength":128,"minLength":10,"type":"string"},"passwordConfirm":{"type":"string"},"timezone":{"maxLength":64,"minLength":1,"type":"string"}},"required":["email","password","passwordConfirm","firstName","lastName","acceptedTerms"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"email":{"format":"email","maxLength":254,"pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","type":"string"},"message":{"type":"string"},"session":{"additionalProperties":false,"properties":{"activeOrganizationId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"organizations":{"items":{"additionalProperties":false,"properties":{"country":{"nullable":true,"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"dataRetentionDays":{"maximum":9007199254740991,"minimum":-9007199254740991,"nullable":true,"type":"integer"},"defaultLocale":{"enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"kind":{"enum":["EDUCATION","BUSINESS"],"type":"string"},"logoUrl":{"nullable":true,"type":"string"},"memberCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"name":{"type":"string"},"permissions":{"items":{"enum":["organization:read","organization:update","organization:delete","member:read","member:invite","member:update-role","member:remove","template:read","template:create","template:update","template:delete","template:publish","project:read","project:create","project:update","project:delete","answer-key:update","scan:read","scan:upload","scan:review","scan:discard","scan:delete","result:read","result:export","student:erase","audit:read","billing:read","billing:manage","api-key:read","api-key:manage","webhook:read","webhook:manage"],"type":"string"},"type":"array"},"plan":{"enum":["FREE","PERSONAL","PRO","ENTERPRISE"],"type":"string"},"role":{"enum":["OWNER","ADMIN","MEMBER","VIEWER"],"type":"string"},"slug":{"type":"string"},"timezone":{"type":"string"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},"required":["id","name","slug","plan","kind","logoUrl","defaultLocale","timezone","country","dataRetentionDays","createdAt","updatedAt","role","permissions","memberCount"],"type":"object"},"type":"array"},"tokens":{"additionalProperties":false,"properties":{"accessToken":{"type":"string"},"expiresIn":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"tokenType":{"enum":["Bearer"],"type":"string"}},"required":["accessToken","tokenType","expiresIn"],"type":"object"},"user":{"additionalProperties":false,"properties":{"avatarUrl":{"nullable":true,"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"displayName":{"type":"string"},"email":{"type":"string"},"emailVerifiedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"firstName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"lastLoginAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"lastName":{"type":"string"},"locale":{"enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"notifyBatchCompleted":{"type":"boolean"},"pendingEmail":{"nullable":true,"type":"string"},"status":{"enum":["PENDING_VERIFICATION","ACTIVE","SUSPENDED"],"type":"string"},"systemRole":{"enum":["USER","SUPPORT","SUPER_ADMIN"],"type":"string"},"theme":{"enum":["SYSTEM","LIGHT","DARK"],"type":"string"},"timezone":{"nullable":true,"type":"string"}},"required":["id","email","pendingEmail","firstName","lastName","displayName","avatarUrl","locale","theme","timezone","notifyBatchCompleted","systemRole","status","emailVerifiedAt","lastLoginAt","createdAt"],"type":"object"}},"required":["tokens","user","organizations","activeOrganizationId"],"type":"object"}},"required":["message","email"],"type":"object"}}},"description":"Verification email sent — or, for an invited sign-up, the account is signed in"}},"security":[],"summary":"Creates a new user and organization","tags":["Authentication"]}},"/api/v1/auth/register/invited":{"post":{"operationId":"authRegisterInvited","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"acceptedTerms":{"type":"boolean"},"captchaToken":{"maxLength":4096,"type":"string"},"country":{"maxLength":2,"minLength":2,"type":"string"},"email":{"type":"string"},"firstName":{"maxLength":80,"minLength":1,"type":"string"},"invitationToken":{"maxLength":200,"minLength":10,"type":"string"},"lastName":{"maxLength":80,"minLength":1,"type":"string"},"locale":{"default":"en","enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"organizationKind":{"enum":["EDUCATION","BUSINESS"],"type":"string"},"organizationName":{"maxLength":120,"minLength":1,"type":"string"},"password":{"maxLength":128,"minLength":10,"type":"string"},"passwordConfirm":{"type":"string"},"timezone":{"maxLength":64,"minLength":1,"type":"string"}},"required":["email","password","passwordConfirm","firstName","lastName","acceptedTerms"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"email":{"format":"email","maxLength":254,"pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","type":"string"},"message":{"type":"string"},"session":{"additionalProperties":false,"properties":{"activeOrganizationId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"organizations":{"items":{"additionalProperties":false,"properties":{"country":{"nullable":true,"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"dataRetentionDays":{"maximum":9007199254740991,"minimum":-9007199254740991,"nullable":true,"type":"integer"},"defaultLocale":{"enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"kind":{"enum":["EDUCATION","BUSINESS"],"type":"string"},"logoUrl":{"nullable":true,"type":"string"},"memberCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"name":{"type":"string"},"permissions":{"items":{"enum":["organization:read","organization:update","organization:delete","member:read","member:invite","member:update-role","member:remove","template:read","template:create","template:update","template:delete","template:publish","project:read","project:create","project:update","project:delete","answer-key:update","scan:read","scan:upload","scan:review","scan:discard","scan:delete","result:read","result:export","student:erase","audit:read","billing:read","billing:manage","api-key:read","api-key:manage","webhook:read","webhook:manage"],"type":"string"},"type":"array"},"plan":{"enum":["FREE","PERSONAL","PRO","ENTERPRISE"],"type":"string"},"role":{"enum":["OWNER","ADMIN","MEMBER","VIEWER"],"type":"string"},"slug":{"type":"string"},"timezone":{"type":"string"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},"required":["id","name","slug","plan","kind","logoUrl","defaultLocale","timezone","country","dataRetentionDays","createdAt","updatedAt","role","permissions","memberCount"],"type":"object"},"type":"array"},"tokens":{"additionalProperties":false,"properties":{"accessToken":{"type":"string"},"expiresIn":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"tokenType":{"enum":["Bearer"],"type":"string"}},"required":["accessToken","tokenType","expiresIn"],"type":"object"},"user":{"additionalProperties":false,"properties":{"avatarUrl":{"nullable":true,"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"displayName":{"type":"string"},"email":{"type":"string"},"emailVerifiedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"firstName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"lastLoginAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"lastName":{"type":"string"},"locale":{"enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"notifyBatchCompleted":{"type":"boolean"},"pendingEmail":{"nullable":true,"type":"string"},"status":{"enum":["PENDING_VERIFICATION","ACTIVE","SUSPENDED"],"type":"string"},"systemRole":{"enum":["USER","SUPPORT","SUPER_ADMIN"],"type":"string"},"theme":{"enum":["SYSTEM","LIGHT","DARK"],"type":"string"},"timezone":{"nullable":true,"type":"string"}},"required":["id","email","pendingEmail","firstName","lastName","displayName","avatarUrl","locale","theme","timezone","notifyBatchCompleted","systemRole","status","emailVerifiedAt","lastLoginAt","createdAt"],"type":"object"}},"required":["tokens","user","organizations","activeOrganizationId"],"type":"object"}},"required":["message","email"],"type":"object"}}},"description":"The account is created and signed in"}},"security":[],"summary":"Creates the account of a person an organization invited, signed in","tags":["Authentication"]}},"/api/v1/auth/resend-verification":{"post":{"operationId":"authResendVerification","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"email":{"type":"string"}},"required":["email"],"type":"object"}}},"required":true},"responses":{"202":{"description":"Accepted: the work continues in the background"}},"security":[],"summary":"Resends the verification email","tags":["Authentication"]}},"/api/v1/auth/reset-password":{"post":{"operationId":"authResetPassword","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"acceptedTerms":{"type":"boolean"},"password":{"maxLength":128,"minLength":10,"type":"string"},"passwordConfirm":{"type":"string"},"token":{"maxLength":256,"minLength":20,"type":"string"}},"required":["token","password","passwordConfirm"],"type":"object"}}},"required":true},"responses":{"204":{"description":"No content"}},"security":[],"summary":"Resets the password and signs out all sessions","tags":["Authentication"]}},"/api/v1/auth/sessions":{"get":{"operationId":"authSessionsList","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"additionalProperties":false,"properties":{"createdAt":{"type":"string"},"current":{"type":"boolean"},"expiresAt":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"ipAddress":{"nullable":true,"type":"string"},"lastUsedAt":{"type":"string"},"userAgent":{"nullable":true,"type":"string"}},"required":["id","createdAt","lastUsedAt","expiresAt","ipAddress","userAgent","current"],"type":"object"},"type":"array"}}},"description":"Active sessions"}},"summary":"Lists active sessions (devices)","tags":["Authentication"]}},"/api/v1/auth/sessions/revoke":{"post":{"operationId":"authRevokeSession","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["id"],"type":"object"}}},"required":true},"responses":{"204":{"description":"No content"}},"summary":"Signs out a specific session (device)","tags":["Authentication"]}},"/api/v1/auth/switch-organization":{"post":{"operationId":"authSwitchOrganization","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"organizationId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["organizationId"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"activeOrganizationId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"organizations":{"items":{"additionalProperties":false,"properties":{"country":{"nullable":true,"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"dataRetentionDays":{"maximum":9007199254740991,"minimum":-9007199254740991,"nullable":true,"type":"integer"},"defaultLocale":{"enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"kind":{"enum":["EDUCATION","BUSINESS"],"type":"string"},"logoUrl":{"nullable":true,"type":"string"},"memberCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"name":{"type":"string"},"permissions":{"items":{"enum":["organization:read","organization:update","organization:delete","member:read","member:invite","member:update-role","member:remove","template:read","template:create","template:update","template:delete","template:publish","project:read","project:create","project:update","project:delete","answer-key:update","scan:read","scan:upload","scan:review","scan:discard","scan:delete","result:read","result:export","student:erase","audit:read","billing:read","billing:manage","api-key:read","api-key:manage","webhook:read","webhook:manage"],"type":"string"},"type":"array"},"plan":{"enum":["FREE","PERSONAL","PRO","ENTERPRISE"],"type":"string"},"role":{"enum":["OWNER","ADMIN","MEMBER","VIEWER"],"type":"string"},"slug":{"type":"string"},"timezone":{"type":"string"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},"required":["id","name","slug","plan","kind","logoUrl","defaultLocale","timezone","country","dataRetentionDays","createdAt","updatedAt","role","permissions","memberCount"],"type":"object"},"type":"array"},"tokens":{"additionalProperties":false,"properties":{"accessToken":{"type":"string"},"expiresIn":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"tokenType":{"enum":["Bearer"],"type":"string"}},"required":["accessToken","tokenType","expiresIn"],"type":"object"},"user":{"additionalProperties":false,"properties":{"avatarUrl":{"nullable":true,"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"displayName":{"type":"string"},"email":{"type":"string"},"emailVerifiedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"firstName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"lastLoginAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"lastName":{"type":"string"},"locale":{"enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"notifyBatchCompleted":{"type":"boolean"},"pendingEmail":{"nullable":true,"type":"string"},"status":{"enum":["PENDING_VERIFICATION","ACTIVE","SUSPENDED"],"type":"string"},"systemRole":{"enum":["USER","SUPPORT","SUPER_ADMIN"],"type":"string"},"theme":{"enum":["SYSTEM","LIGHT","DARK"],"type":"string"},"timezone":{"nullable":true,"type":"string"}},"required":["id","email","pendingEmail","firstName","lastName","displayName","avatarUrl","locale","theme","timezone","notifyBatchCompleted","systemRole","status","emailVerifiedAt","lastLoginAt","createdAt"],"type":"object"}},"required":["tokens","user","organizations","activeOrganizationId"],"type":"object"}}},"description":"OK"}},"summary":"Switches the active organization and issues a new access token","tags":["Authentication"]}},"/api/v1/auth/verify-email":{"post":{"operationId":"authVerifyEmail","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"token":{"maxLength":256,"minLength":20,"type":"string"}},"required":["token"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"properties":{"activeOrganizationId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"organizations":{"items":{"additionalProperties":false,"properties":{"country":{"nullable":true,"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"dataRetentionDays":{"maximum":9007199254740991,"minimum":-9007199254740991,"nullable":true,"type":"integer"},"defaultLocale":{"enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"kind":{"enum":["EDUCATION","BUSINESS"],"type":"string"},"logoUrl":{"nullable":true,"type":"string"},"memberCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"name":{"type":"string"},"permissions":{"items":{"enum":["organization:read","organization:update","organization:delete","member:read","member:invite","member:update-role","member:remove","template:read","template:create","template:update","template:delete","template:publish","project:read","project:create","project:update","project:delete","answer-key:update","scan:read","scan:upload","scan:review","scan:discard","scan:delete","result:read","result:export","student:erase","audit:read","billing:read","billing:manage","api-key:read","api-key:manage","webhook:read","webhook:manage"],"type":"string"},"type":"array"},"plan":{"enum":["FREE","PERSONAL","PRO","ENTERPRISE"],"type":"string"},"role":{"enum":["OWNER","ADMIN","MEMBER","VIEWER"],"type":"string"},"slug":{"type":"string"},"timezone":{"type":"string"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},"required":["id","name","slug","plan","kind","logoUrl","defaultLocale","timezone","country","dataRetentionDays","createdAt","updatedAt","role","permissions","memberCount"],"type":"object"},"type":"array"},"tokens":{"additionalProperties":false,"properties":{"accessToken":{"type":"string"},"expiresIn":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"tokenType":{"enum":["Bearer"],"type":"string"}},"required":["accessToken","tokenType","expiresIn"],"type":"object"},"user":{"additionalProperties":false,"properties":{"avatarUrl":{"nullable":true,"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"displayName":{"type":"string"},"email":{"type":"string"},"emailVerifiedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"firstName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"lastLoginAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"lastName":{"type":"string"},"locale":{"enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"notifyBatchCompleted":{"type":"boolean"},"pendingEmail":{"nullable":true,"type":"string"},"status":{"enum":["PENDING_VERIFICATION","ACTIVE","SUSPENDED"],"type":"string"},"systemRole":{"enum":["USER","SUPPORT","SUPER_ADMIN"],"type":"string"},"theme":{"enum":["SYSTEM","LIGHT","DARK"],"type":"string"},"timezone":{"nullable":true,"type":"string"}},"required":["id","email","pendingEmail","firstName","lastName","displayName","avatarUrl","locale","theme","timezone","notifyBatchCompleted","systemRole","status","emailVerifiedAt","lastLoginAt","createdAt"],"type":"object"}},"required":["tokens","user","organizations","activeOrganizationId"],"type":"object"},{"additionalProperties":false,"properties":{"email":{"format":"email","maxLength":254,"pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","type":"string"},"verified":{"enum":[true],"type":"boolean"}},"required":["verified","email"],"type":"object"}]}}},"description":"A session in the browser the account was signed up in; elsewhere, the address is verified"}},"security":[],"summary":"Verifies the email address, and signs in the browser the account was signed up in","tags":["Authentication"]}},"/api/v1/billing/checkout":{"post":{"description":"Returns the page the browser should go to. The plan — with the extra seats asked for with it — is applied when the provider reports the subscription, a moment after the page returns. Answers `ONLINE_SALES_DISABLED` where the installation does not sell by card, `PLAN_EXTRA_UNAVAILABLE` for seats the plan does not take, and `QUOTA_EXCEEDED` when the organization does not fit the plan.","operationId":"billingCheckout","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"extraSeats":{"default":0,"maximum":1000,"minimum":0,"type":"integer"},"interval":{"enum":["MONTH","YEAR"],"type":"string"},"plan":{"enum":["PERSONAL","PRO"],"type":"string"}},"required":["plan","interval"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"url":{"format":"uri","type":"string"}},"required":["url"],"type":"object"}}},"description":"OK"}},"summary":"Opens the payment provider's checkout for a paid plan","tags":["Billing"]}},"/api/v1/billing/extras/seats":{"post":{"description":"More seats are charged now for what is left of the period; fewer are credited at the next renewal, and are refused with `QUOTA_EXCEEDED` while members or invitations still hold them. Answers `EXTRAS_SOLD_BY_STAFF` for a plan that was not bought by card: its seats are added by the platform administrator.","operationId":"billingSetExtraSeats","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"extraSeats":{"maximum":1000,"minimum":0,"type":"integer"}},"required":["extraSeats"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"billingInterval":{"enum":["MONTH","YEAR"],"nullable":true,"type":"string"},"cancelAtPeriodEnd":{"type":"boolean"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"currentPeriodEnd":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"currentPeriodStart":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"externalCustomerId":{"nullable":true,"type":"string"},"extraSeats":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"managedByProvider":{"type":"boolean"},"organizationId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"paymentMethod":{"additionalProperties":false,"nullable":true,"properties":{"brand":{"type":"string"},"expMonth":{"maximum":12,"minimum":1,"type":"integer"},"expYear":{"maximum":9007199254740991,"minimum":2000,"type":"integer"},"last4":{"maxLength":4,"minLength":4,"type":"string"}},"required":["brand","last4","expMonth","expYear"],"type":"object"},"plan":{"enum":["FREE","PERSONAL","PRO","ENTERPRISE"],"type":"string"},"status":{"enum":["TRIALING","ACTIVE","PAST_DUE","CANCELED","EXPIRED"],"type":"string"},"trialEndsAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},"required":["organizationId","plan","status","trialEndsAt","currentPeriodStart","currentPeriodEnd","cancelAtPeriodEnd","extraSeats","externalCustomerId","managedByProvider","billingInterval","paymentMethod","createdAt","updatedAt"],"type":"object"}}},"description":"OK"}},"summary":"Sets how many extra seats the subscription carries","tags":["Billing"]}},"/api/v1/billing/invoices":{"get":{"operationId":"billingInvoices","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"items":{"items":{"additionalProperties":false,"properties":{"amountDue":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"amountPaid":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"currency":{"maxLength":3,"minLength":3,"type":"string"},"hostedUrl":{"format":"uri","nullable":true,"type":"string"},"id":{"type":"string"},"number":{"nullable":true,"type":"string"},"pdfUrl":{"format":"uri","nullable":true,"type":"string"},"status":{"enum":["DRAFT","OPEN","PAID","UNCOLLECTIBLE","VOID"],"type":"string"}},"required":["id","number","status","amountDue","amountPaid","currency","createdAt","hostedUrl","pdfUrl"],"type":"object"},"type":"array"}},"required":["items"],"type":"object"}}},"description":"OK"}},"summary":"The organization's invoices, as the payment provider issued them","tags":["Billing"]}},"/api/v1/billing/plans":{"get":{"operationId":"billingPlans","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"}},"summary":"Plan catalog and limits","tags":["Billing"]}},"/api/v1/billing/portal":{"post":{"description":"The portal is the payer's. Where the payer pays for other organizations as well it opens for the person who bought the plan alone, and answers `PORTAL_PAYER_ONLY` to anybody else.","operationId":"billingPortal","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"url":{"format":"uri","type":"string"}},"required":["url"],"type":"object"}}},"description":"OK"}},"summary":"Opens the payment provider's billing portal","tags":["Billing"]}},"/api/v1/billing/sheet-packs/checkout":{"post":{"description":"Returns the page the browser should go to. The pack is added when the provider reports the payment, a moment after the page returns: its sheets are read only after the month’s allowance is used, and are kept for a year.","operationId":"billingSheetPackCheckout","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"pack":{"enum":["SHEETS_500","SHEETS_5000"],"type":"string"}},"required":["pack"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"url":{"format":"uri","type":"string"}},"required":["url"],"type":"object"}}},"description":"OK"}},"summary":"Opens the payment provider's checkout for a sheet pack","tags":["Billing"]}},"/api/v1/billing/subscription":{"get":{"operationId":"billingOverview","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"billing":{"additionalProperties":false,"properties":{"checkoutAvailable":{"type":"boolean"},"contactEmail":{"nullable":true,"type":"string"},"portalAvailable":{"type":"boolean"},"prices":{"additionalProperties":false,"nullable":true,"properties":{"plans":{"additionalProperties":{"items":{"additionalProperties":false,"properties":{"amount":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"currency":{"maxLength":3,"minLength":3,"type":"string"},"interval":{"enum":["MONTH","YEAR"],"type":"string"}},"required":["amount","currency","interval"],"type":"object"},"type":"array"},"required":["PERSONAL","PRO"],"type":"object"},"seat":{"items":{"additionalProperties":false,"properties":{"amount":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"currency":{"maxLength":3,"minLength":3,"type":"string"},"interval":{"enum":["MONTH","YEAR"],"type":"string"}},"required":["amount","currency","interval"],"type":"object"},"type":"array"},"sheetPacks":{"items":{"additionalProperties":false,"properties":{"amount":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"currency":{"maxLength":3,"minLength":3,"type":"string"},"pack":{"enum":["SHEETS_500","SHEETS_5000"],"type":"string"}},"required":["pack","amount","currency"],"type":"object"},"type":"array"}},"required":["plans","seat","sheetPacks"],"type":"object"},"provider":{"enum":["none","stripe","paddle"],"type":"string"},"purchasablePlans":{"items":{"enum":["PERSONAL","PRO"],"type":"string"},"type":"array"}},"required":["provider","checkoutAvailable","purchasablePlans","portalAvailable","contactEmail","prices"],"type":"object"},"extras":{"additionalProperties":false,"properties":{"packSheetsRemaining":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"seats":{"additionalProperties":false,"properties":{"extra":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"included":{"maximum":9007199254740991,"minimum":0,"nullable":true,"type":"integer"},"max":{"maximum":9007199254740991,"minimum":0,"nullable":true,"type":"integer"}},"required":["included","extra","max"],"type":"object"},"sheetPacks":{"items":{"additionalProperties":false,"properties":{"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"expiresAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"remaining":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"sheets":{"exclusiveMinimum":true,"maximum":9007199254740991,"minimum":0,"type":"integer"},"source":{"enum":["PURCHASE","GRANT"],"type":"string"}},"required":["id","sheets","remaining","source","createdAt","expiresAt"],"type":"object"},"type":"array"}},"required":["seats","sheetPacks","packSheetsRemaining"],"type":"object"},"subscription":{"additionalProperties":false,"properties":{"billingInterval":{"enum":["MONTH","YEAR"],"nullable":true,"type":"string"},"cancelAtPeriodEnd":{"type":"boolean"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"currentPeriodEnd":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"currentPeriodStart":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"externalCustomerId":{"nullable":true,"type":"string"},"extraSeats":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"managedByProvider":{"type":"boolean"},"organizationId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"paymentMethod":{"additionalProperties":false,"nullable":true,"properties":{"brand":{"type":"string"},"expMonth":{"maximum":12,"minimum":1,"type":"integer"},"expYear":{"maximum":9007199254740991,"minimum":2000,"type":"integer"},"last4":{"maxLength":4,"minLength":4,"type":"string"}},"required":["brand","last4","expMonth","expYear"],"type":"object"},"plan":{"enum":["FREE","PERSONAL","PRO","ENTERPRISE"],"type":"string"},"status":{"enum":["TRIALING","ACTIVE","PAST_DUE","CANCELED","EXPIRED"],"type":"string"},"trialEndsAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},"required":["organizationId","plan","status","trialEndsAt","currentPeriodStart","currentPeriodEnd","cancelAtPeriodEnd","extraSeats","externalCustomerId","managedByProvider","billingInterval","paymentMethod","createdAt","updatedAt"],"type":"object"},"usage":{"additionalProperties":false,"properties":{"exportsPerMonth":{"additionalProperties":false,"properties":{"limit":{"maximum":9007199254740991,"minimum":0,"nullable":true,"type":"integer"},"ratio":{"maximum":100,"minimum":0,"nullable":true,"type":"number"},"resetsAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"used":{"maximum":9007199254740991,"minimum":0,"type":"integer"}},"required":["used","limit","ratio","resetsAt"],"type":"object"},"members":{"additionalProperties":false,"properties":{"limit":{"maximum":9007199254740991,"minimum":0,"nullable":true,"type":"integer"},"ratio":{"maximum":100,"minimum":0,"nullable":true,"type":"number"},"resetsAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"used":{"maximum":9007199254740991,"minimum":0,"type":"integer"}},"required":["used","limit","ratio","resetsAt"],"type":"object"},"pagesRenderedPerMonth":{"additionalProperties":false,"properties":{"limit":{"maximum":9007199254740991,"minimum":0,"nullable":true,"type":"integer"},"ratio":{"maximum":100,"minimum":0,"nullable":true,"type":"number"},"resetsAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"used":{"maximum":9007199254740991,"minimum":0,"type":"integer"}},"required":["used","limit","ratio","resetsAt"],"type":"object"},"projects":{"additionalProperties":false,"properties":{"limit":{"maximum":9007199254740991,"minimum":0,"nullable":true,"type":"integer"},"ratio":{"maximum":100,"minimum":0,"nullable":true,"type":"number"},"resetsAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"used":{"maximum":9007199254740991,"minimum":0,"type":"integer"}},"required":["used","limit","ratio","resetsAt"],"type":"object"},"sheetsPerMonth":{"additionalProperties":false,"properties":{"limit":{"maximum":9007199254740991,"minimum":0,"nullable":true,"type":"integer"},"ratio":{"maximum":100,"minimum":0,"nullable":true,"type":"number"},"resetsAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"used":{"maximum":9007199254740991,"minimum":0,"type":"integer"}},"required":["used","limit","ratio","resetsAt"],"type":"object"},"storageBytes":{"additionalProperties":false,"properties":{"limit":{"maximum":9007199254740991,"minimum":0,"nullable":true,"type":"integer"},"ratio":{"maximum":100,"minimum":0,"nullable":true,"type":"number"},"resetsAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"used":{"maximum":9007199254740991,"minimum":0,"type":"integer"}},"required":["used","limit","ratio","resetsAt"],"type":"object"},"templates":{"additionalProperties":false,"properties":{"limit":{"maximum":9007199254740991,"minimum":0,"nullable":true,"type":"integer"},"ratio":{"maximum":100,"minimum":0,"nullable":true,"type":"number"},"resetsAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"used":{"maximum":9007199254740991,"minimum":0,"type":"integer"}},"required":["used","limit","ratio","resetsAt"],"type":"object"}},"required":["templates","projects","members","sheetsPerMonth","storageBytes","pagesRenderedPerMonth","exportsPerMonth"],"type":"object"}},"required":["subscription","usage","extras","billing"],"type":"object"}}},"description":"OK"}},"summary":"Active subscription and usage summary","tags":["Billing"]}},"/api/v1/billing/subscription/cancel":{"post":{"operationId":"billingSetCancel","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"cancelAtPeriodEnd":{"type":"boolean"}},"required":["cancelAtPeriodEnd"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"billingInterval":{"enum":["MONTH","YEAR"],"nullable":true,"type":"string"},"cancelAtPeriodEnd":{"type":"boolean"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"currentPeriodEnd":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"currentPeriodStart":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"externalCustomerId":{"nullable":true,"type":"string"},"extraSeats":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"managedByProvider":{"type":"boolean"},"organizationId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"paymentMethod":{"additionalProperties":false,"nullable":true,"properties":{"brand":{"type":"string"},"expMonth":{"maximum":12,"minimum":1,"type":"integer"},"expYear":{"maximum":9007199254740991,"minimum":2000,"type":"integer"},"last4":{"maxLength":4,"minLength":4,"type":"string"}},"required":["brand","last4","expMonth","expYear"],"type":"object"},"plan":{"enum":["FREE","PERSONAL","PRO","ENTERPRISE"],"type":"string"},"status":{"enum":["TRIALING","ACTIVE","PAST_DUE","CANCELED","EXPIRED"],"type":"string"},"trialEndsAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},"required":["organizationId","plan","status","trialEndsAt","currentPeriodStart","currentPeriodEnd","cancelAtPeriodEnd","extraSeats","externalCustomerId","managedByProvider","billingInterval","paymentMethod","createdAt","updatedAt"],"type":"object"}}},"description":"OK"}},"summary":"Turns cancellation at period end on/off","tags":["Billing"]}},"/api/v1/billing/subscription/plan":{"post":{"description":"On an installation without a payment provider the owner sets the plan here. With a provider connected a paid plan is bought instead (`POST /billing/checkout`), and this answers `PLAN_CHANGE_VIA_CHECKOUT`; a subscription the provider holds answers `SUBSCRIPTION_MANAGED_BY_PROVIDER` and is changed on the billing portal.","operationId":"billingChangePlan","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"plan":{"enum":["FREE","PERSONAL","PRO","ENTERPRISE"],"type":"string"}},"required":["plan"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"billingInterval":{"enum":["MONTH","YEAR"],"nullable":true,"type":"string"},"cancelAtPeriodEnd":{"type":"boolean"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"currentPeriodEnd":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"currentPeriodStart":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"externalCustomerId":{"nullable":true,"type":"string"},"extraSeats":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"managedByProvider":{"type":"boolean"},"organizationId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"paymentMethod":{"additionalProperties":false,"nullable":true,"properties":{"brand":{"type":"string"},"expMonth":{"maximum":12,"minimum":1,"type":"integer"},"expYear":{"maximum":9007199254740991,"minimum":2000,"type":"integer"},"last4":{"maxLength":4,"minLength":4,"type":"string"}},"required":["brand","last4","expMonth","expYear"],"type":"object"},"plan":{"enum":["FREE","PERSONAL","PRO","ENTERPRISE"],"type":"string"},"status":{"enum":["TRIALING","ACTIVE","PAST_DUE","CANCELED","EXPIRED"],"type":"string"},"trialEndsAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},"required":["organizationId","plan","status","trialEndsAt","currentPeriodStart","currentPeriodEnd","cancelAtPeriodEnd","extraSeats","externalCustomerId","managedByProvider","billingInterval","paymentMethod","createdAt","updatedAt"],"type":"object"}}},"description":"OK"}},"summary":"Changes the plan by hand","tags":["Billing"]}},"/api/v1/meta":{"get":{"operationId":"meta","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"captcha":{"additionalProperties":false,"nullable":true,"properties":{"provider":{"enum":["turnstile"],"type":"string"},"siteKey":{"minLength":1,"type":"string"}},"required":["provider","siteKey"],"type":"object"},"legal":{"additionalProperties":false,"properties":{"privacyUrl":{"nullable":true,"type":"string"},"termsUrl":{"nullable":true,"type":"string"}},"required":["termsUrl","privacyUrl"],"type":"object"},"sales":{"additionalProperties":false,"properties":{"url":{"nullable":true,"type":"string"}},"required":["url"],"type":"object"},"signUp":{"additionalProperties":false,"properties":{"open":{"type":"boolean"}},"required":["open"],"type":"object"},"support":{"additionalProperties":false,"properties":{"email":{"format":"email","nullable":true,"pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","type":"string"}},"required":["email"],"type":"object"}},"required":["legal","captcha","support","sales","signUp"],"type":"object"}}},"description":"OK"}},"security":[],"summary":"Deployment facts a visitor may read: the legal texts, the sign-up challenge, the support and sales addresses, and whether sign-up is open","tags":["System"]}},"/api/v1/organizations":{"get":{"operationId":"organizationsListMine","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"additionalProperties":false,"properties":{"country":{"nullable":true,"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"dataRetentionDays":{"maximum":9007199254740991,"minimum":-9007199254740991,"nullable":true,"type":"integer"},"defaultLocale":{"enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"kind":{"enum":["EDUCATION","BUSINESS"],"type":"string"},"logoUrl":{"nullable":true,"type":"string"},"name":{"type":"string"},"plan":{"enum":["FREE","PERSONAL","PRO","ENTERPRISE"],"type":"string"},"slug":{"type":"string"},"timezone":{"type":"string"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},"required":["id","name","slug","plan","kind","logoUrl","defaultLocale","timezone","country","dataRetentionDays","createdAt","updatedAt"],"type":"object"},"type":"array"}}},"description":"OK"}},"summary":"Organizations the user is a member of","tags":["Organizations"]},"post":{"description":"The platform administrator's own: customers are added from system administration (`POST /admin/organizations`), and anyone else is answered `INSUFFICIENT_ROLE`.","operationId":"organizationsCreate","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"country":{"maxLength":2,"minLength":2,"type":"string"},"defaultLocale":{"default":"en","enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"kind":{"default":"EDUCATION","enum":["EDUCATION","BUSINESS"],"type":"string"},"name":{"maxLength":120,"minLength":1,"type":"string"},"slug":{"type":"string"},"timezone":{"default":"UTC","maxLength":64,"minLength":1,"type":"string"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"country":{"nullable":true,"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"dataRetentionDays":{"maximum":9007199254740991,"minimum":-9007199254740991,"nullable":true,"type":"integer"},"defaultLocale":{"enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"kind":{"enum":["EDUCATION","BUSINESS"],"type":"string"},"logoUrl":{"nullable":true,"type":"string"},"memberCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"name":{"type":"string"},"permissions":{"items":{"enum":["organization:read","organization:update","organization:delete","member:read","member:invite","member:update-role","member:remove","template:read","template:create","template:update","template:delete","template:publish","project:read","project:create","project:update","project:delete","answer-key:update","scan:read","scan:upload","scan:review","scan:discard","scan:delete","result:read","result:export","student:erase","audit:read","billing:read","billing:manage","api-key:read","api-key:manage","webhook:read","webhook:manage"],"type":"string"},"type":"array"},"plan":{"enum":["FREE","PERSONAL","PRO","ENTERPRISE"],"type":"string"},"role":{"enum":["OWNER","ADMIN","MEMBER","VIEWER"],"type":"string"},"slug":{"type":"string"},"timezone":{"type":"string"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},"required":["id","name","slug","plan","kind","logoUrl","defaultLocale","timezone","country","dataRetentionDays","createdAt","updatedAt","role","permissions","memberCount"],"type":"object"}}},"description":"Created"}},"summary":"Creates a new organization (the creator becomes OWNER)","tags":["Organizations"]}},"/api/v1/organizations/current":{"delete":{"operationId":"organizationsRemove","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"password":{"maxLength":128,"minLength":1,"type":"string"}},"required":["password"],"type":"object"}}},"required":true},"responses":{"204":{"description":"No content"}},"summary":"Deletes the organization (soft delete); asks for the password","tags":["Organizations"]},"get":{"operationId":"organizationsCurrent","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"country":{"nullable":true,"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"dataRetentionDays":{"maximum":9007199254740991,"minimum":-9007199254740991,"nullable":true,"type":"integer"},"defaultLocale":{"enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"kind":{"enum":["EDUCATION","BUSINESS"],"type":"string"},"logoUrl":{"nullable":true,"type":"string"},"memberCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"name":{"type":"string"},"permissions":{"items":{"enum":["organization:read","organization:update","organization:delete","member:read","member:invite","member:update-role","member:remove","template:read","template:create","template:update","template:delete","template:publish","project:read","project:create","project:update","project:delete","answer-key:update","scan:read","scan:upload","scan:review","scan:discard","scan:delete","result:read","result:export","student:erase","audit:read","billing:read","billing:manage","api-key:read","api-key:manage","webhook:read","webhook:manage"],"type":"string"},"type":"array"},"plan":{"enum":["FREE","PERSONAL","PRO","ENTERPRISE"],"type":"string"},"role":{"enum":["OWNER","ADMIN","MEMBER","VIEWER"],"type":"string"},"slug":{"type":"string"},"timezone":{"type":"string"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},"required":["id","name","slug","plan","kind","logoUrl","defaultLocale","timezone","country","dataRetentionDays","createdAt","updatedAt","role","permissions","memberCount"],"type":"object"}}},"description":"OK"}},"summary":"Details of the active organization","tags":["Organizations"]},"put":{"operationId":"organizationsUpdate","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"country":{"maxLength":2,"minLength":2,"nullable":true,"type":"string"},"dataRetentionDays":{"maximum":3650,"minimum":30,"nullable":true,"type":"integer"},"defaultLocale":{"enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"kind":{"enum":["EDUCATION","BUSINESS"],"type":"string"},"name":{"maxLength":120,"minLength":1,"type":"string"},"slug":{"type":"string"},"timezone":{"maxLength":64,"minLength":1,"type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"country":{"nullable":true,"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"dataRetentionDays":{"maximum":9007199254740991,"minimum":-9007199254740991,"nullable":true,"type":"integer"},"defaultLocale":{"enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"kind":{"enum":["EDUCATION","BUSINESS"],"type":"string"},"logoUrl":{"nullable":true,"type":"string"},"memberCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"name":{"type":"string"},"permissions":{"items":{"enum":["organization:read","organization:update","organization:delete","member:read","member:invite","member:update-role","member:remove","template:read","template:create","template:update","template:delete","template:publish","project:read","project:create","project:update","project:delete","answer-key:update","scan:read","scan:upload","scan:review","scan:discard","scan:delete","result:read","result:export","student:erase","audit:read","billing:read","billing:manage","api-key:read","api-key:manage","webhook:read","webhook:manage"],"type":"string"},"type":"array"},"plan":{"enum":["FREE","PERSONAL","PRO","ENTERPRISE"],"type":"string"},"role":{"enum":["OWNER","ADMIN","MEMBER","VIEWER"],"type":"string"},"slug":{"type":"string"},"timezone":{"type":"string"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},"required":["id","name","slug","plan","kind","logoUrl","defaultLocale","timezone","country","dataRetentionDays","createdAt","updatedAt","role","permissions","memberCount"],"type":"object"}}},"description":"OK"}},"summary":"Updates the active organization","tags":["Organizations"]}},"/api/v1/organizations/current/audit-logs":{"get":{"operationId":"organizationsListAuditLogs","parameters":[{"in":"query","name":"page","required":false,"schema":{"default":1,"maximum":10000,"minimum":1,"type":"integer"}},{"in":"query","name":"pageSize","required":false,"schema":{"default":20,"maximum":100,"minimum":1,"type":"integer"}},{"in":"query","name":"search","required":false,"schema":{"maxLength":200,"type":"string"}},{"in":"query","name":"sortBy","required":false,"schema":{"maxLength":64,"type":"string"}},{"in":"query","name":"sortDir","required":false,"schema":{"default":"desc","enum":["asc","desc"],"type":"string"}},{"in":"query","name":"action","required":false,"schema":{"maxLength":64,"type":"string"}},{"in":"query","name":"entityType","required":false,"schema":{"maxLength":64,"type":"string"}},{"in":"query","name":"actorId","required":false,"schema":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},{"in":"query","name":"from","required":false,"schema":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},{"in":"query","name":"to","required":false,"schema":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"items":{"items":{"additionalProperties":false,"properties":{"action":{"type":"string"},"actor":{"additionalProperties":false,"nullable":true,"properties":{"email":{"type":"string"},"firstName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"lastName":{"type":"string"}},"required":["id","firstName","lastName","email"],"type":"object"},"apiKey":{"additionalProperties":false,"nullable":true,"properties":{"id":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"entityId":{"nullable":true,"type":"string"},"entityType":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"ipAddress":{"nullable":true,"type":"string"},"metadata":{"additionalProperties":{},"nullable":true,"type":"object"}},"required":["id","action","entityType","entityId","actor","apiKey","metadata","ipAddress","createdAt"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"hasNext":{"type":"boolean"},"hasPrevious":{"type":"boolean"},"page":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"pageSize":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"totalItems":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"totalPages":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["page","pageSize","totalItems","totalPages","hasPrevious","hasNext"],"type":"object"}},"required":["items","meta"],"type":"object"}}},"description":"OK"}},"summary":"Lists the organization's audit log","tags":["Organizations"]}},"/api/v1/organizations/current/audit-logs/export":{"get":{"operationId":"organizationsExportAuditLogs","parameters":[{"in":"query","name":"search","required":false,"schema":{"maxLength":200,"type":"string"}},{"in":"query","name":"sortBy","required":false,"schema":{"maxLength":64,"type":"string"}},{"in":"query","name":"sortDir","required":false,"schema":{"default":"desc","enum":["asc","desc"],"type":"string"}},{"in":"query","name":"action","required":false,"schema":{"maxLength":64,"type":"string"}},{"in":"query","name":"entityType","required":false,"schema":{"maxLength":64,"type":"string"}},{"in":"query","name":"actorId","required":false,"schema":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},{"in":"query","name":"from","required":false,"schema":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},{"in":"query","name":"to","required":false,"schema":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},{"in":"query","name":"format","required":false,"schema":{"default":"CSV","enum":["CSV","JSON"],"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"format":"binary","type":"string"}},"text/csv":{"schema":{"format":"binary","type":"string"}}},"description":"The audit log"}},"summary":"Downloads the organization's audit log as CSV or JSON","tags":["Organizations"]}},"/api/v1/organizations/current/invitations":{"get":{"operationId":"organizationsListInvitations","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"additionalProperties":false,"properties":{"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"email":{"type":"string"},"expiresAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"invitedBy":{"additionalProperties":false,"nullable":true,"properties":{"displayName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["id","displayName"],"type":"object"},"organizationId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"organizationName":{"type":"string"},"role":{"enum":["OWNER","ADMIN","MEMBER","VIEWER"],"type":"string"},"status":{"enum":["PENDING","ACCEPTED","REVOKED","EXPIRED"],"type":"string"}},"required":["id","organizationId","organizationName","email","role","status","expiresAt","createdAt","invitedBy"],"type":"object"},"type":"array"}}},"description":"OK"}},"summary":"Lists the organization's invitations","tags":["Organizations"]},"post":{"operationId":"organizationsInvite","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"email":{"type":"string"},"role":{"enum":["ADMIN","MEMBER","VIEWER"],"type":"string"}},"required":["email","role"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"acceptUrl":{"nullable":true,"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"email":{"type":"string"},"expiresAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"invitedBy":{"additionalProperties":false,"nullable":true,"properties":{"displayName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["id","displayName"],"type":"object"},"organizationId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"organizationName":{"type":"string"},"role":{"enum":["OWNER","ADMIN","MEMBER","VIEWER"],"type":"string"},"status":{"enum":["PENDING","ACCEPTED","REVOKED","EXPIRED"],"type":"string"}},"required":["id","organizationId","organizationName","email","role","status","expiresAt","createdAt","invitedBy","acceptUrl"],"type":"object"}}},"description":"Created"}},"summary":"Sends a new member invitation","tags":["Organizations"]}},"/api/v1/organizations/current/invitations/{id}":{"delete":{"operationId":"organizationsRevokeInvitation","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"No content"}},"summary":"Cancels a pending invitation","tags":["Organizations"]}},"/api/v1/organizations/current/invitations/{id}/resend":{"post":{"description":"The previous link stops working. The new one is mailed and returned, for handing on by hand.","operationId":"organizationsResendInvitation","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"acceptUrl":{"nullable":true,"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"email":{"type":"string"},"expiresAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"invitedBy":{"additionalProperties":false,"nullable":true,"properties":{"displayName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["id","displayName"],"type":"object"},"organizationId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"organizationName":{"type":"string"},"role":{"enum":["OWNER","ADMIN","MEMBER","VIEWER"],"type":"string"},"status":{"enum":["PENDING","ACCEPTED","REVOKED","EXPIRED"],"type":"string"}},"required":["id","organizationId","organizationName","email","role","status","expiresAt","createdAt","invitedBy","acceptUrl"],"type":"object"}}},"description":"OK"}},"summary":"Sends a pending invitation again with a fresh link","tags":["Organizations"]}},"/api/v1/organizations/current/leave":{"post":{"operationId":"organizationsLeave","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"204":{"description":"No content"}},"summary":"Leaves the active organization (not for its owner)","tags":["Organizations"]}},"/api/v1/organizations/current/logo":{"delete":{"operationId":"organizationsRemoveLogo","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"description":"OK"}},"summary":"Removes the organization logo","tags":["Organizations"]},"post":{"operationId":"organizationsUpdateLogo","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"country":{"nullable":true,"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"dataRetentionDays":{"maximum":9007199254740991,"minimum":-9007199254740991,"nullable":true,"type":"integer"},"defaultLocale":{"enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"kind":{"enum":["EDUCATION","BUSINESS"],"type":"string"},"logoUrl":{"nullable":true,"type":"string"},"memberCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"name":{"type":"string"},"permissions":{"items":{"enum":["organization:read","organization:update","organization:delete","member:read","member:invite","member:update-role","member:remove","template:read","template:create","template:update","template:delete","template:publish","project:read","project:create","project:update","project:delete","answer-key:update","scan:read","scan:upload","scan:review","scan:discard","scan:delete","result:read","result:export","student:erase","audit:read","billing:read","billing:manage","api-key:read","api-key:manage","webhook:read","webhook:manage"],"type":"string"},"type":"array"},"plan":{"enum":["FREE","PERSONAL","PRO","ENTERPRISE"],"type":"string"},"role":{"enum":["OWNER","ADMIN","MEMBER","VIEWER"],"type":"string"},"slug":{"type":"string"},"timezone":{"type":"string"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},"required":["id","name","slug","plan","kind","logoUrl","defaultLocale","timezone","country","dataRetentionDays","createdAt","updatedAt","role","permissions","memberCount"],"type":"object"}}},"description":"The organization, with its new logo"}},"summary":"Uploads the organization logo","tags":["Organizations"]}},"/api/v1/organizations/current/members":{"get":{"operationId":"organizationsListMembers","parameters":[{"in":"query","name":"page","required":false,"schema":{"default":1,"maximum":10000,"minimum":1,"type":"integer"}},{"in":"query","name":"pageSize","required":false,"schema":{"default":20,"maximum":100,"minimum":1,"type":"integer"}},{"in":"query","name":"search","required":false,"schema":{"maxLength":200,"type":"string"}},{"in":"query","name":"sortBy","required":false,"schema":{"default":"joinedAt","enum":["joinedAt","displayName","role"],"type":"string"}},{"in":"query","name":"sortDir","required":false,"schema":{"default":"desc","enum":["asc","desc"],"type":"string"}},{"in":"query","name":"role","required":false,"schema":{"enum":["OWNER","ADMIN","MEMBER","VIEWER"],"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"items":{"items":{"additionalProperties":false,"properties":{"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"joinedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"organizationId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"role":{"enum":["OWNER","ADMIN","MEMBER","VIEWER"],"type":"string"},"user":{"additionalProperties":false,"properties":{"avatarUrl":{"nullable":true,"type":"string"},"displayName":{"type":"string"},"email":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"lastLoginAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},"required":["id","email","displayName","avatarUrl","lastLoginAt"],"type":"object"}},"required":["id","organizationId","role","joinedAt","user"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"hasNext":{"type":"boolean"},"hasPrevious":{"type":"boolean"},"page":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"pageSize":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"totalItems":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"totalPages":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["page","pageSize","totalItems","totalPages","hasPrevious","hasNext"],"type":"object"}},"required":["items","meta"],"type":"object"}}},"description":"OK"}},"summary":"Lists organization members","tags":["Organizations"]}},"/api/v1/organizations/current/members/{userId}":{"delete":{"operationId":"organizationsRemoveMember","parameters":[{"in":"path","name":"userId","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"No content"}},"summary":"Removes a member from the organization","tags":["Organizations"]}},"/api/v1/organizations/current/members/{userId}/role":{"patch":{"operationId":"organizationsUpdateMemberRole","parameters":[{"in":"path","name":"userId","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"role":{"enum":["OWNER","ADMIN","MEMBER","VIEWER"],"type":"string"}},"required":["role"],"type":"object"}}},"required":true},"responses":{"204":{"description":"No content"}},"summary":"Changes a member's role","tags":["Organizations"]}},"/api/v1/organizations/current/retention/preview":{"get":{"operationId":"organizationsRetentionPreview","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"exams":{"items":{"additionalProperties":false,"properties":{"measuredFrom":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"name":{"type":"string"},"participants":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"projectId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"sheets":{"maximum":9007199254740991,"minimum":0,"type":"integer"}},"required":["projectId","name","measuredFrom","sheets","participants"],"type":"object"},"type":"array"},"retentionDays":{"maximum":9007199254740991,"minimum":-9007199254740991,"nullable":true,"type":"integer"}},"required":["retentionDays","exams"],"type":"object"}}},"description":"OK"}},"summary":"The exams tonight's retention run would clear","tags":["Organizations"]}},"/api/v1/organizations/current/transfer-ownership":{"post":{"operationId":"organizationsTransferOwnership","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"password":{"maxLength":128,"minLength":1,"type":"string"},"targetUserId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["targetUserId","password"],"type":"object"}}},"required":true},"responses":{"204":{"description":"No content"}},"summary":"Transfers ownership to another member; asks for the password","tags":["Organizations"]}},"/api/v1/organizations/invitations/accept":{"post":{"operationId":"organizationsAcceptInvitation","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"token":{"maxLength":256,"minLength":20,"type":"string"}},"required":["token"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"country":{"nullable":true,"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"dataRetentionDays":{"maximum":9007199254740991,"minimum":-9007199254740991,"nullable":true,"type":"integer"},"defaultLocale":{"enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"kind":{"enum":["EDUCATION","BUSINESS"],"type":"string"},"logoUrl":{"nullable":true,"type":"string"},"memberCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"name":{"type":"string"},"permissions":{"items":{"enum":["organization:read","organization:update","organization:delete","member:read","member:invite","member:update-role","member:remove","template:read","template:create","template:update","template:delete","template:publish","project:read","project:create","project:update","project:delete","answer-key:update","scan:read","scan:upload","scan:review","scan:discard","scan:delete","result:read","result:export","student:erase","audit:read","billing:read","billing:manage","api-key:read","api-key:manage","webhook:read","webhook:manage"],"type":"string"},"type":"array"},"plan":{"enum":["FREE","PERSONAL","PRO","ENTERPRISE"],"type":"string"},"role":{"enum":["OWNER","ADMIN","MEMBER","VIEWER"],"type":"string"},"slug":{"type":"string"},"timezone":{"type":"string"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},"required":["id","name","slug","plan","kind","logoUrl","defaultLocale","timezone","country","dataRetentionDays","createdAt","updatedAt","role","permissions","memberCount"],"type":"object"}}},"description":"OK"}},"summary":"Accepts the invitation and creates the membership","tags":["Organizations"]}},"/api/v1/organizations/invitations/preview":{"get":{"operationId":"organizationsPreviewInvitation","parameters":[{"in":"query","name":"token","required":true,"schema":{"maxLength":256,"minLength":20,"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"}},"security":[],"summary":"Invitation preview (before acceptance, unauthenticated)","tags":["Organizations"]}},"/api/v1/privacy/account":{"delete":{"operationId":"privacyRequestDeletion","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"password":{"maxLength":128,"minLength":1,"type":"string"}},"required":["password"],"type":"object"}}},"required":true},"responses":{"200":{"description":"OK"}},"summary":"Requests account deletion (personal details are erased after 30 days); asks for the password","tags":["Privacy"]}},"/api/v1/privacy/export":{"get":{"operationId":"privacyExport","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"}},"summary":"Downloads a full copy of the personal data held","tags":["Privacy"]}},"/api/v1/projects":{"get":{"operationId":"projectsList","parameters":[{"in":"query","name":"page","required":false,"schema":{"default":1,"maximum":10000,"minimum":1,"type":"integer"}},{"in":"query","name":"pageSize","required":false,"schema":{"default":20,"maximum":100,"minimum":1,"type":"integer"}},{"in":"query","name":"search","required":false,"schema":{"maxLength":200,"type":"string"}},{"in":"query","name":"sortBy","required":false,"schema":{"default":"updatedAt","enum":["name","createdAt","updatedAt","examDate"],"type":"string"}},{"in":"query","name":"sortDir","required":false,"schema":{"default":"desc","enum":["asc","desc"],"type":"string"}},{"in":"query","name":"status","required":false,"schema":{"enum":["DRAFT","READY","COLLECTING","CLOSED","ARCHIVED"],"type":"string"}},{"in":"query","name":"templateId","required":false,"schema":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},{"in":"query","name":"deleted","required":false,"schema":{"anyOf":[{"type":"boolean"},{"enum":["0","1","true","false"],"type":"string"}]}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"items":{"items":{"additionalProperties":false,"properties":{"bookletCodes":{"items":{"type":"string"},"type":"array"},"code":{"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"createdBy":{"additionalProperties":false,"nullable":true,"properties":{"displayName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["id","displayName"],"type":"object"},"deletedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"description":{"type":"string"},"examDate":{"description":"The exam's day, as the moment it begins in the organization's time zone — 2026-04-15T00:00:00+03:00 for 15 April in Istanbul. Shown as that day in the organization's zone; midnight UTC is the day before anywhere west of Greenwich.","format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"name":{"type":"string"},"organizationId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"questionCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"stats":{"additionalProperties":false,"properties":{"averageScore":{"nullable":true,"type":"number"},"failedSheets":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"highestScore":{"nullable":true,"type":"number"},"lowestScore":{"nullable":true,"type":"number"},"needsReviewSheets":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"processedSheets":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"totalSheets":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["totalSheets","processedSheets","failedSheets","needsReviewSheets","averageScore","highestScore","lowestScore"],"type":"object"},"status":{"enum":["DRAFT","READY","COLLECTING","CLOSED","ARCHIVED"],"type":"string"},"templateId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"templateName":{"nullable":true,"type":"string"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"version":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["id","organizationId","templateId","templateName","name","description","code","status","version","bookletCodes","questionCount","examDate","stats","createdAt","updatedAt","deletedAt","createdBy"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"hasNext":{"type":"boolean"},"hasPrevious":{"type":"boolean"},"page":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"pageSize":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"totalItems":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"totalPages":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["page","pageSize","totalItems","totalPages","hasPrevious","hasNext"],"type":"object"}},"required":["items","meta"],"type":"object"}}},"description":"OK"}},"summary":"Lists projects","tags":["Projects"]},"post":{"operationId":"projectsCreate","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"bookletCodes":{"default":["A"],"items":{"type":"string"},"maxItems":8,"minItems":1,"type":"array"},"defaultScoring":{"properties":{"blankPoints":{"maximum":1000,"minimum":-1000,"type":"number"},"cancelledPolicy":{"enum":["CORRECT_FOR_ALL","EXCLUDE"],"type":"string"},"clampNegativeToZero":{"type":"boolean"},"correctPoints":{"maximum":1000,"minimum":0,"type":"number"},"multipleMarkPolicy":{"enum":["WRONG","BLANK","REVIEW"],"type":"string"},"normalizeTo100":{"type":"boolean"},"penaltyMode":{"enum":["NONE","PER_WRONG","WRONG_RATIO"],"type":"string"},"wrongPenalty":{"maximum":1000,"minimum":0,"type":"number"},"wrongRatio":{"maximum":20,"minimum":1,"type":"number"}},"required":["correctPoints","penaltyMode","wrongPenalty","wrongRatio","blankPoints","multipleMarkPolicy","cancelledPolicy","clampNegativeToZero","normalizeTo100"],"type":"object"},"description":{"default":"","maxLength":2000,"type":"string"},"examDate":{"default":null,"description":"The exam's day, as the moment it begins in the organization's time zone — 2026-04-15T00:00:00+03:00 for 15 April in Istanbul. Shown as that day in the organization's zone; midnight UTC is the day before anywhere west of Greenwich.","format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"name":{"maxLength":120,"minLength":1,"type":"string"},"questionCount":{"maximum":2000,"minimum":1,"type":"integer"},"templateId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["name","templateId"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"answerKeys":{"items":{"additionalProperties":false,"properties":{"answers":{"additionalProperties":{"anyOf":[{"maximum":25,"minimum":0,"type":"integer"},{"items":{"maximum":25,"minimum":0,"type":"integer"},"maxItems":26,"minItems":1,"type":"array"}],"nullable":true},"type":"object"},"bookletCode":{"maxLength":4,"minLength":1,"type":"string"},"cancelledQuestions":{"items":{"maximum":2000,"minimum":1,"type":"integer"},"maxItems":2000,"type":"array"},"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"questionMap":{"additionalProperties":{"maximum":2000,"minimum":1,"type":"integer"},"default":{},"type":"object"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},"required":["bookletCode","fieldKey","answers","cancelledQuestions","questionMap"],"type":"object"},"type":"array"},"bookletCodes":{"items":{"type":"string"},"type":"array"},"code":{"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"createdBy":{"additionalProperties":false,"nullable":true,"properties":{"displayName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["id","displayName"],"type":"object"},"defaultScoring":{"additionalProperties":false,"properties":{"blankPoints":{"maximum":1000,"minimum":-1000,"type":"number"},"cancelledPolicy":{"enum":["CORRECT_FOR_ALL","EXCLUDE"],"type":"string"},"clampNegativeToZero":{"type":"boolean"},"correctPoints":{"maximum":1000,"minimum":0,"type":"number"},"multipleMarkPolicy":{"enum":["WRONG","BLANK","REVIEW"],"type":"string"},"normalizeTo100":{"type":"boolean"},"penaltyMode":{"enum":["NONE","PER_WRONG","WRONG_RATIO"],"type":"string"},"wrongPenalty":{"maximum":1000,"minimum":0,"type":"number"},"wrongRatio":{"maximum":20,"minimum":1,"type":"number"}},"required":["correctPoints","penaltyMode","wrongPenalty","wrongRatio","blankPoints","multipleMarkPolicy","cancelledPolicy","clampNegativeToZero","normalizeTo100"],"type":"object"},"deletedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"description":{"type":"string"},"document":{"additionalProperties":false,"properties":{"editorGrid":{"additionalProperties":false,"properties":{"color":{"type":"string"},"size":{"maximum":50,"minimum":0.5,"type":"number"},"snap":{"maximum":50,"minimum":0,"type":"number"},"style":{"enum":["NONE","DOTS","LINES"],"type":"string"}},"required":["style","size","snap","color"],"type":"object"},"elements":{"items":{"oneOf":[{"additionalProperties":false,"properties":{"autoShrink":{"type":"boolean"},"background":{"nullable":true,"type":"string"},"border":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"padding":{"additionalProperties":false,"properties":{"bottom":{"maximum":200,"minimum":0,"type":"number"},"left":{"maximum":200,"minimum":0,"type":"number"},"right":{"maximum":200,"minimum":0,"type":"number"},"top":{"maximum":200,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"text":{"maxLength":4000,"type":"string"},"type":{"enum":["TEXT"],"type":"string"},"typography":{"additionalProperties":false,"properties":{"align":{"enum":["LEFT","CENTER","RIGHT","JUSTIFY"],"type":"string"},"color":{"type":"string"},"family":{"enum":["SANS","SANS_CONDENSED","SERIF","MONO"],"type":"string"},"italic":{"type":"boolean"},"letterSpacing":{"maximum":20,"minimum":-5,"type":"number"},"lineHeight":{"maximum":4,"minimum":0.7,"type":"number"},"size":{"maximum":400,"minimum":1,"type":"number"},"underline":{"type":"boolean"},"verticalAlign":{"enum":["TOP","MIDDLE","BOTTOM"],"type":"string"},"weight":{"anyOf":[{"enum":[400],"type":"number"},{"enum":[700],"type":"number"}]}},"required":["family","size","weight","italic","underline","align","verticalAlign","lineHeight","letterSpacing","color"],"type":"object"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","text","typography","padding","background","border","autoShrink"],"type":"object"},{"additionalProperties":false,"properties":{"assetId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"border":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"fit":{"enum":["CONTAIN","COVER","FILL"],"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"reference":{"default":false,"type":"boolean"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"type":{"enum":["IMAGE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","assetId","fit","border","reference"],"type":"object"},{"additionalProperties":false,"properties":{"fill":{"nullable":true,"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"radius":{"maximum":100,"minimum":0,"type":"number"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"type":{"enum":["RECT"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","fill","stroke","radius"],"type":"object"},{"additionalProperties":false,"properties":{"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"type":{"enum":["LINE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","stroke"],"type":"object"},{"additionalProperties":false,"properties":{"background":{"type":"string"},"customValue":{"maxLength":512,"nullable":true,"type":"string"},"errorCorrection":{"enum":["L","M","Q","H"],"type":"string"},"foreground":{"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"quietZone":{"maximum":8,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"source":{"enum":["SHEET_TOKEN","PROJECT_CODE","CUSTOM"],"type":"string"},"type":{"enum":["QR"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","source","customValue","errorCorrection","quietZone","foreground","background"],"type":"object"},{"additionalProperties":false,"properties":{"background":{"type":"string"},"customValue":{"maxLength":128,"nullable":true,"type":"string"},"foreground":{"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"quietZone":{"maximum":20,"minimum":0,"type":"number"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"showText":{"type":"boolean"},"source":{"enum":["SHEET_TOKEN","PROJECT_CODE","CUSTOM"],"type":"string"},"symbology":{"enum":["CODE128","CODE39","EAN13","ITF14"],"type":"string"},"type":{"enum":["BARCODE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","symbology","source","customValue","showText","quietZone","foreground","background"],"type":"object"},{"additionalProperties":false,"properties":{"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"itemCount":{"maximum":500,"minimum":1,"type":"integer"},"labels":{"additionalProperties":false,"properties":{"color":{"type":"string"},"custom":{"items":{"maxLength":40,"type":"string"},"maxItems":40,"type":"array"},"itemGutter":{"maximum":150,"minimum":0,"type":"number"},"itemTexts":{"default":[],"items":{"maxLength":160,"type":"string"},"maxItems":500,"type":"array"},"kind":{"enum":["LETTERS","TR_LETTERS","DIGITS","CUSTOM","NONE"],"type":"string"},"numberWidth":{"default":0,"maximum":4,"minimum":0,"type":"integer"},"optionGutter":{"maximum":60,"minimum":0,"type":"number"},"showItemNumbers":{"type":"boolean"},"showOptionLabels":{"type":"boolean"},"size":{"maximum":48,"minimum":1,"type":"number"}},"required":["kind","custom","showItemNumbers","numberWidth","itemGutter","itemTexts","showOptionLabels","optionGutter","size","color"],"type":"object"},"layout":{"additionalProperties":false,"properties":{"blockGap":{"maximum":100,"minimum":0,"type":"number"},"blocks":{"maximum":20,"minimum":1,"type":"integer"},"bubble":{"additionalProperties":false,"properties":{"shape":{"enum":["CIRCLE","SQUARE","ROUNDED","ELLIPSE"],"type":"string"},"size":{"maximum":15,"minimum":2,"type":"number"}},"required":["shape","size"],"type":"object"},"direction":{"enum":["VERTICAL","HORIZONTAL"],"type":"string"},"flow":{"enum":["COLUMN_MAJOR","ROW_MAJOR"],"type":"string"},"itemGap":{"maximum":50,"minimum":0,"type":"number"},"optionGap":{"maximum":50,"minimum":0,"type":"number"},"padding":{"additionalProperties":false,"properties":{"bottom":{"maximum":200,"minimum":0,"type":"number"},"left":{"maximum":200,"minimum":0,"type":"number"},"right":{"maximum":200,"minimum":0,"type":"number"},"top":{"maximum":200,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"}},"required":["direction","flow","blocks","blockGap","bubble","itemGap","optionGap","padding"],"type":"object"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"optionCount":{"maximum":40,"minimum":2,"type":"integer"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"placement":{"additionalProperties":false,"default":null,"nullable":true,"properties":{"items":{"items":{"additionalProperties":false,"properties":{"options":{"items":{"additionalProperties":false,"properties":{"height":{"maximum":200,"minimum":1,"type":"number"},"width":{"maximum":200,"minimum":1,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"maxItems":40,"minItems":2,"type":"array"},"pageIndex":{"maximum":15,"minimum":0,"type":"integer"}},"required":["pageIndex","options"],"type":"object"},"maxItems":500,"minItems":1,"type":"array"}},"required":["items"],"type":"object"},"role":{"enum":["ANSWERS","STUDENT_ID","BOOKLET","TEXT_FIELD","CUSTOM"],"type":"string"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"startIndex":{"maximum":9999,"minimum":0,"type":"integer"},"style":{"additionalProperties":false,"properties":{"background":{"nullable":true,"type":"string"},"border":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"bubbleFill":{"nullable":true,"type":"string"},"bubbleStroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"insideLabelColor":{"default":"#5C6879","type":"string"},"labelInsideBubble":{"type":"boolean"},"rowStripe":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"primary":{"type":"string"},"secondary":{"type":"string"}},"required":["enabled","primary","secondary"],"type":"object"},"separators":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke"],"type":"object"}},"required":["bubbleStroke","bubbleFill","labelInsideBubble","insideLabelColor","border","background","rowStripe","separators"],"type":"object"},"type":{"enum":["BUBBLE_GRID"],"type":"string"},"writeBoxes":{"additionalProperties":false,"default":{"enabled":false,"gap":1.6,"height":7,"stroke":{"color":"#111827","style":"SOLID","width":0.3}},"properties":{"enabled":{"type":"boolean"},"gap":{"default":0,"maximum":20,"minimum":0,"type":"number"},"height":{"maximum":40,"minimum":3,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","height","gap","stroke"],"type":"object"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","role","fieldKey","itemCount","optionCount","startIndex","labels","writeBoxes","layout","style","placement"],"type":"object"}]},"maxItems":500,"type":"array"},"page":{"additionalProperties":false,"properties":{"background":{"type":"string"},"format":{"enum":["A3","A4","A5","LETTER","LEGAL","CUSTOM"],"type":"string"},"height":{"maximum":2000,"minimum":50,"type":"number"},"margins":{"additionalProperties":false,"properties":{"bottom":{"maximum":2000,"minimum":0,"type":"number"},"left":{"maximum":2000,"minimum":0,"type":"number"},"right":{"maximum":2000,"minimum":0,"type":"number"},"top":{"maximum":2000,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"},"orientation":{"enum":["PORTRAIT","LANDSCAPE"],"type":"string"},"width":{"maximum":2000,"minimum":50,"type":"number"}},"required":["format","orientation","width","height","margins","background"],"type":"object"},"pageCount":{"default":1,"maximum":16,"minimum":1,"type":"integer"},"registration":{"additionalProperties":false,"properties":{"corners":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"inset":{"maximum":40,"minimum":2,"type":"number"},"shape":{"enum":["SQUARE","CIRCLE"],"type":"string"},"size":{"maximum":20,"minimum":3,"type":"number"}},"required":["enabled","size","inset","shape"],"type":"object"},"timing":{"additionalProperties":false,"properties":{"edge":{"enum":["LEFT","RIGHT","BOTH"],"type":"string"},"enabled":{"type":"boolean"},"gap":{"maximum":20,"minimum":1,"type":"number"},"height":{"maximum":10,"minimum":1,"type":"number"},"inset":{"maximum":40,"minimum":0,"type":"number"},"offsetBottom":{"maximum":200,"minimum":0,"type":"number"},"offsetTop":{"maximum":200,"minimum":0,"type":"number"},"width":{"maximum":20,"minimum":2,"type":"number"}},"required":["enabled","edge","width","height","gap","inset","offsetTop","offsetBottom"],"type":"object"}},"required":["corners","timing"],"type":"object"},"schemaVersion":{"enum":[1],"type":"number"},"source":{"default":"DESIGNED","enum":["DESIGNED","EXTERNAL"],"type":"string"}},"required":["schemaVersion","source","page","registration","editorGrid","pageCount","elements"],"type":"object"},"documentFrozenAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"examDate":{"description":"The exam's day, as the moment it begins in the organization's time zone — 2026-04-15T00:00:00+03:00 for 15 April in Istanbul. Shown as that day in the organization's zone; midnight UTC is the day before anywhere west of Greenwich.","format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"name":{"type":"string"},"organizationId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"passMark":{"exclusiveMinimum":true,"maximum":100,"minimum":0,"nullable":true,"type":"number"},"questionCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"recognitionSettings":{"additionalProperties":false,"properties":{"autoAcceptConfidence":{"maximum":1,"minimum":0,"type":"number"},"blankThreshold":{"maximum":1,"minimum":0,"type":"number"},"denoise":{"type":"boolean"},"fillThreshold":{"maximum":1,"minimum":0,"type":"number"},"minimumAlignmentConfidence":{"maximum":1,"minimum":0,"type":"number"},"minimumMargin":{"maximum":1,"minimum":0,"type":"number"},"sampleRadiusRatio":{"maximum":1,"minimum":0,"type":"number"},"workingDpi":{"maximum":600,"minimum":120,"type":"integer"}},"required":["workingDpi","fillThreshold","blankThreshold","minimumMargin","sampleRadiusRatio","minimumAlignmentConfidence","autoAcceptConfidence","denoise"],"type":"object"},"rescorePending":{"type":"boolean"},"rescoreRequestedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"sections":{"items":{"additionalProperties":false,"properties":{"color":{"maxLength":9,"nullable":true,"type":"string"},"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"firstQuestion":{"maximum":2000,"minimum":1,"type":"integer"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"lastQuestion":{"maximum":2000,"minimum":1,"type":"integer"},"name":{"maxLength":80,"minLength":1,"type":"string"},"scoring":{"additionalProperties":false,"nullable":true,"properties":{"blankPoints":{"maximum":1000,"minimum":-1000,"type":"number"},"cancelledPolicy":{"enum":["CORRECT_FOR_ALL","EXCLUDE"],"type":"string"},"clampNegativeToZero":{"type":"boolean"},"correctPoints":{"maximum":1000,"minimum":0,"type":"number"},"multipleMarkPolicy":{"enum":["WRONG","BLANK","REVIEW"],"type":"string"},"normalizeTo100":{"type":"boolean"},"penaltyMode":{"enum":["NONE","PER_WRONG","WRONG_RATIO"],"type":"string"},"wrongPenalty":{"maximum":1000,"minimum":0,"type":"number"},"wrongRatio":{"maximum":20,"minimum":1,"type":"number"}},"required":["correctPoints","penaltyMode","wrongPenalty","wrongRatio","blankPoints","multipleMarkPolicy","cancelledPolicy","clampNegativeToZero","normalizeTo100"],"type":"object"},"weight":{"maximum":100,"minimum":0,"type":"number"}},"required":["id","name","fieldKey","firstQuestion","lastQuestion","weight","scoring","color"],"type":"object"},"type":"array"},"stats":{"additionalProperties":false,"properties":{"averageScore":{"nullable":true,"type":"number"},"failedSheets":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"highestScore":{"nullable":true,"type":"number"},"lowestScore":{"nullable":true,"type":"number"},"needsReviewSheets":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"processedSheets":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"totalSheets":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["totalSheets","processedSheets","failedSheets","needsReviewSheets","averageScore","highestScore","lowestScore"],"type":"object"},"status":{"enum":["DRAFT","READY","COLLECTING","CLOSED","ARCHIVED"],"type":"string"},"templateId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"templateName":{"nullable":true,"type":"string"},"topics":{"items":{"additionalProperties":false,"properties":{"color":{"maxLength":9,"nullable":true,"type":"string"},"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"name":{"maxLength":120,"minLength":1,"type":"string"},"questions":{"items":{"maximum":2000,"minimum":1,"type":"integer"},"maxItems":2000,"minItems":1,"type":"array"}},"required":["id","name","fieldKey","questions","color"],"type":"object"},"type":"array"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"version":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["id","organizationId","templateId","templateName","name","description","code","status","version","bookletCodes","questionCount","examDate","stats","createdAt","updatedAt","deletedAt","createdBy","document","documentFrozenAt","rescorePending","rescoreRequestedAt","defaultScoring","passMark","recognitionSettings","sections","topics","answerKeys"],"type":"object"}}},"description":"Created"}},"summary":"Creates a new project from a template (returns the document)","tags":["Projects"]}},"/api/v1/projects/overview":{"get":{"operationId":"projectsOverview","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"needsReviewSheets":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"processedSheets":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"reviewQueue":{"items":{"additionalProperties":false,"properties":{"code":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"name":{"type":"string"},"needsReviewSheets":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["id","code","name","needsReviewSheets"],"type":"object"},"type":"array"},"totalSheets":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["totalSheets","processedSheets","needsReviewSheets","reviewQueue"],"type":"object"}}},"description":"OK"}},"summary":"Sheet totals over the organization's projects and the exams awaiting review","tags":["Projects"]}},"/api/v1/projects/{id}":{"delete":{"operationId":"projectsRemove","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"No content"}},"summary":"Deletes the project (soft delete)","tags":["Projects"]},"get":{"operationId":"projectsDetail","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"answerKeys":{"items":{"additionalProperties":false,"properties":{"answers":{"additionalProperties":{"anyOf":[{"maximum":25,"minimum":0,"type":"integer"},{"items":{"maximum":25,"minimum":0,"type":"integer"},"maxItems":26,"minItems":1,"type":"array"}],"nullable":true},"type":"object"},"bookletCode":{"maxLength":4,"minLength":1,"type":"string"},"cancelledQuestions":{"items":{"maximum":2000,"minimum":1,"type":"integer"},"maxItems":2000,"type":"array"},"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"questionMap":{"additionalProperties":{"maximum":2000,"minimum":1,"type":"integer"},"default":{},"type":"object"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},"required":["bookletCode","fieldKey","answers","cancelledQuestions","questionMap"],"type":"object"},"type":"array"},"bookletCodes":{"items":{"type":"string"},"type":"array"},"code":{"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"createdBy":{"additionalProperties":false,"nullable":true,"properties":{"displayName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["id","displayName"],"type":"object"},"defaultScoring":{"additionalProperties":false,"properties":{"blankPoints":{"maximum":1000,"minimum":-1000,"type":"number"},"cancelledPolicy":{"enum":["CORRECT_FOR_ALL","EXCLUDE"],"type":"string"},"clampNegativeToZero":{"type":"boolean"},"correctPoints":{"maximum":1000,"minimum":0,"type":"number"},"multipleMarkPolicy":{"enum":["WRONG","BLANK","REVIEW"],"type":"string"},"normalizeTo100":{"type":"boolean"},"penaltyMode":{"enum":["NONE","PER_WRONG","WRONG_RATIO"],"type":"string"},"wrongPenalty":{"maximum":1000,"minimum":0,"type":"number"},"wrongRatio":{"maximum":20,"minimum":1,"type":"number"}},"required":["correctPoints","penaltyMode","wrongPenalty","wrongRatio","blankPoints","multipleMarkPolicy","cancelledPolicy","clampNegativeToZero","normalizeTo100"],"type":"object"},"deletedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"description":{"type":"string"},"document":{"additionalProperties":false,"properties":{"editorGrid":{"additionalProperties":false,"properties":{"color":{"type":"string"},"size":{"maximum":50,"minimum":0.5,"type":"number"},"snap":{"maximum":50,"minimum":0,"type":"number"},"style":{"enum":["NONE","DOTS","LINES"],"type":"string"}},"required":["style","size","snap","color"],"type":"object"},"elements":{"items":{"oneOf":[{"additionalProperties":false,"properties":{"autoShrink":{"type":"boolean"},"background":{"nullable":true,"type":"string"},"border":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"padding":{"additionalProperties":false,"properties":{"bottom":{"maximum":200,"minimum":0,"type":"number"},"left":{"maximum":200,"minimum":0,"type":"number"},"right":{"maximum":200,"minimum":0,"type":"number"},"top":{"maximum":200,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"text":{"maxLength":4000,"type":"string"},"type":{"enum":["TEXT"],"type":"string"},"typography":{"additionalProperties":false,"properties":{"align":{"enum":["LEFT","CENTER","RIGHT","JUSTIFY"],"type":"string"},"color":{"type":"string"},"family":{"enum":["SANS","SANS_CONDENSED","SERIF","MONO"],"type":"string"},"italic":{"type":"boolean"},"letterSpacing":{"maximum":20,"minimum":-5,"type":"number"},"lineHeight":{"maximum":4,"minimum":0.7,"type":"number"},"size":{"maximum":400,"minimum":1,"type":"number"},"underline":{"type":"boolean"},"verticalAlign":{"enum":["TOP","MIDDLE","BOTTOM"],"type":"string"},"weight":{"anyOf":[{"enum":[400],"type":"number"},{"enum":[700],"type":"number"}]}},"required":["family","size","weight","italic","underline","align","verticalAlign","lineHeight","letterSpacing","color"],"type":"object"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","text","typography","padding","background","border","autoShrink"],"type":"object"},{"additionalProperties":false,"properties":{"assetId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"border":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"fit":{"enum":["CONTAIN","COVER","FILL"],"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"reference":{"default":false,"type":"boolean"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"type":{"enum":["IMAGE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","assetId","fit","border","reference"],"type":"object"},{"additionalProperties":false,"properties":{"fill":{"nullable":true,"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"radius":{"maximum":100,"minimum":0,"type":"number"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"type":{"enum":["RECT"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","fill","stroke","radius"],"type":"object"},{"additionalProperties":false,"properties":{"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"type":{"enum":["LINE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","stroke"],"type":"object"},{"additionalProperties":false,"properties":{"background":{"type":"string"},"customValue":{"maxLength":512,"nullable":true,"type":"string"},"errorCorrection":{"enum":["L","M","Q","H"],"type":"string"},"foreground":{"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"quietZone":{"maximum":8,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"source":{"enum":["SHEET_TOKEN","PROJECT_CODE","CUSTOM"],"type":"string"},"type":{"enum":["QR"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","source","customValue","errorCorrection","quietZone","foreground","background"],"type":"object"},{"additionalProperties":false,"properties":{"background":{"type":"string"},"customValue":{"maxLength":128,"nullable":true,"type":"string"},"foreground":{"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"quietZone":{"maximum":20,"minimum":0,"type":"number"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"showText":{"type":"boolean"},"source":{"enum":["SHEET_TOKEN","PROJECT_CODE","CUSTOM"],"type":"string"},"symbology":{"enum":["CODE128","CODE39","EAN13","ITF14"],"type":"string"},"type":{"enum":["BARCODE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","symbology","source","customValue","showText","quietZone","foreground","background"],"type":"object"},{"additionalProperties":false,"properties":{"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"itemCount":{"maximum":500,"minimum":1,"type":"integer"},"labels":{"additionalProperties":false,"properties":{"color":{"type":"string"},"custom":{"items":{"maxLength":40,"type":"string"},"maxItems":40,"type":"array"},"itemGutter":{"maximum":150,"minimum":0,"type":"number"},"itemTexts":{"default":[],"items":{"maxLength":160,"type":"string"},"maxItems":500,"type":"array"},"kind":{"enum":["LETTERS","TR_LETTERS","DIGITS","CUSTOM","NONE"],"type":"string"},"numberWidth":{"default":0,"maximum":4,"minimum":0,"type":"integer"},"optionGutter":{"maximum":60,"minimum":0,"type":"number"},"showItemNumbers":{"type":"boolean"},"showOptionLabels":{"type":"boolean"},"size":{"maximum":48,"minimum":1,"type":"number"}},"required":["kind","custom","showItemNumbers","numberWidth","itemGutter","itemTexts","showOptionLabels","optionGutter","size","color"],"type":"object"},"layout":{"additionalProperties":false,"properties":{"blockGap":{"maximum":100,"minimum":0,"type":"number"},"blocks":{"maximum":20,"minimum":1,"type":"integer"},"bubble":{"additionalProperties":false,"properties":{"shape":{"enum":["CIRCLE","SQUARE","ROUNDED","ELLIPSE"],"type":"string"},"size":{"maximum":15,"minimum":2,"type":"number"}},"required":["shape","size"],"type":"object"},"direction":{"enum":["VERTICAL","HORIZONTAL"],"type":"string"},"flow":{"enum":["COLUMN_MAJOR","ROW_MAJOR"],"type":"string"},"itemGap":{"maximum":50,"minimum":0,"type":"number"},"optionGap":{"maximum":50,"minimum":0,"type":"number"},"padding":{"additionalProperties":false,"properties":{"bottom":{"maximum":200,"minimum":0,"type":"number"},"left":{"maximum":200,"minimum":0,"type":"number"},"right":{"maximum":200,"minimum":0,"type":"number"},"top":{"maximum":200,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"}},"required":["direction","flow","blocks","blockGap","bubble","itemGap","optionGap","padding"],"type":"object"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"optionCount":{"maximum":40,"minimum":2,"type":"integer"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"placement":{"additionalProperties":false,"default":null,"nullable":true,"properties":{"items":{"items":{"additionalProperties":false,"properties":{"options":{"items":{"additionalProperties":false,"properties":{"height":{"maximum":200,"minimum":1,"type":"number"},"width":{"maximum":200,"minimum":1,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"maxItems":40,"minItems":2,"type":"array"},"pageIndex":{"maximum":15,"minimum":0,"type":"integer"}},"required":["pageIndex","options"],"type":"object"},"maxItems":500,"minItems":1,"type":"array"}},"required":["items"],"type":"object"},"role":{"enum":["ANSWERS","STUDENT_ID","BOOKLET","TEXT_FIELD","CUSTOM"],"type":"string"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"startIndex":{"maximum":9999,"minimum":0,"type":"integer"},"style":{"additionalProperties":false,"properties":{"background":{"nullable":true,"type":"string"},"border":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"bubbleFill":{"nullable":true,"type":"string"},"bubbleStroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"insideLabelColor":{"default":"#5C6879","type":"string"},"labelInsideBubble":{"type":"boolean"},"rowStripe":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"primary":{"type":"string"},"secondary":{"type":"string"}},"required":["enabled","primary","secondary"],"type":"object"},"separators":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke"],"type":"object"}},"required":["bubbleStroke","bubbleFill","labelInsideBubble","insideLabelColor","border","background","rowStripe","separators"],"type":"object"},"type":{"enum":["BUBBLE_GRID"],"type":"string"},"writeBoxes":{"additionalProperties":false,"default":{"enabled":false,"gap":1.6,"height":7,"stroke":{"color":"#111827","style":"SOLID","width":0.3}},"properties":{"enabled":{"type":"boolean"},"gap":{"default":0,"maximum":20,"minimum":0,"type":"number"},"height":{"maximum":40,"minimum":3,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","height","gap","stroke"],"type":"object"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","role","fieldKey","itemCount","optionCount","startIndex","labels","writeBoxes","layout","style","placement"],"type":"object"}]},"maxItems":500,"type":"array"},"page":{"additionalProperties":false,"properties":{"background":{"type":"string"},"format":{"enum":["A3","A4","A5","LETTER","LEGAL","CUSTOM"],"type":"string"},"height":{"maximum":2000,"minimum":50,"type":"number"},"margins":{"additionalProperties":false,"properties":{"bottom":{"maximum":2000,"minimum":0,"type":"number"},"left":{"maximum":2000,"minimum":0,"type":"number"},"right":{"maximum":2000,"minimum":0,"type":"number"},"top":{"maximum":2000,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"},"orientation":{"enum":["PORTRAIT","LANDSCAPE"],"type":"string"},"width":{"maximum":2000,"minimum":50,"type":"number"}},"required":["format","orientation","width","height","margins","background"],"type":"object"},"pageCount":{"default":1,"maximum":16,"minimum":1,"type":"integer"},"registration":{"additionalProperties":false,"properties":{"corners":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"inset":{"maximum":40,"minimum":2,"type":"number"},"shape":{"enum":["SQUARE","CIRCLE"],"type":"string"},"size":{"maximum":20,"minimum":3,"type":"number"}},"required":["enabled","size","inset","shape"],"type":"object"},"timing":{"additionalProperties":false,"properties":{"edge":{"enum":["LEFT","RIGHT","BOTH"],"type":"string"},"enabled":{"type":"boolean"},"gap":{"maximum":20,"minimum":1,"type":"number"},"height":{"maximum":10,"minimum":1,"type":"number"},"inset":{"maximum":40,"minimum":0,"type":"number"},"offsetBottom":{"maximum":200,"minimum":0,"type":"number"},"offsetTop":{"maximum":200,"minimum":0,"type":"number"},"width":{"maximum":20,"minimum":2,"type":"number"}},"required":["enabled","edge","width","height","gap","inset","offsetTop","offsetBottom"],"type":"object"}},"required":["corners","timing"],"type":"object"},"schemaVersion":{"enum":[1],"type":"number"},"source":{"default":"DESIGNED","enum":["DESIGNED","EXTERNAL"],"type":"string"}},"required":["schemaVersion","source","page","registration","editorGrid","pageCount","elements"],"type":"object"},"documentFrozenAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"examDate":{"description":"The exam's day, as the moment it begins in the organization's time zone — 2026-04-15T00:00:00+03:00 for 15 April in Istanbul. Shown as that day in the organization's zone; midnight UTC is the day before anywhere west of Greenwich.","format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"name":{"type":"string"},"organizationId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"passMark":{"exclusiveMinimum":true,"maximum":100,"minimum":0,"nullable":true,"type":"number"},"questionCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"recognitionSettings":{"additionalProperties":false,"properties":{"autoAcceptConfidence":{"maximum":1,"minimum":0,"type":"number"},"blankThreshold":{"maximum":1,"minimum":0,"type":"number"},"denoise":{"type":"boolean"},"fillThreshold":{"maximum":1,"minimum":0,"type":"number"},"minimumAlignmentConfidence":{"maximum":1,"minimum":0,"type":"number"},"minimumMargin":{"maximum":1,"minimum":0,"type":"number"},"sampleRadiusRatio":{"maximum":1,"minimum":0,"type":"number"},"workingDpi":{"maximum":600,"minimum":120,"type":"integer"}},"required":["workingDpi","fillThreshold","blankThreshold","minimumMargin","sampleRadiusRatio","minimumAlignmentConfidence","autoAcceptConfidence","denoise"],"type":"object"},"rescorePending":{"type":"boolean"},"rescoreRequestedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"sections":{"items":{"additionalProperties":false,"properties":{"color":{"maxLength":9,"nullable":true,"type":"string"},"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"firstQuestion":{"maximum":2000,"minimum":1,"type":"integer"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"lastQuestion":{"maximum":2000,"minimum":1,"type":"integer"},"name":{"maxLength":80,"minLength":1,"type":"string"},"scoring":{"additionalProperties":false,"nullable":true,"properties":{"blankPoints":{"maximum":1000,"minimum":-1000,"type":"number"},"cancelledPolicy":{"enum":["CORRECT_FOR_ALL","EXCLUDE"],"type":"string"},"clampNegativeToZero":{"type":"boolean"},"correctPoints":{"maximum":1000,"minimum":0,"type":"number"},"multipleMarkPolicy":{"enum":["WRONG","BLANK","REVIEW"],"type":"string"},"normalizeTo100":{"type":"boolean"},"penaltyMode":{"enum":["NONE","PER_WRONG","WRONG_RATIO"],"type":"string"},"wrongPenalty":{"maximum":1000,"minimum":0,"type":"number"},"wrongRatio":{"maximum":20,"minimum":1,"type":"number"}},"required":["correctPoints","penaltyMode","wrongPenalty","wrongRatio","blankPoints","multipleMarkPolicy","cancelledPolicy","clampNegativeToZero","normalizeTo100"],"type":"object"},"weight":{"maximum":100,"minimum":0,"type":"number"}},"required":["id","name","fieldKey","firstQuestion","lastQuestion","weight","scoring","color"],"type":"object"},"type":"array"},"stats":{"additionalProperties":false,"properties":{"averageScore":{"nullable":true,"type":"number"},"failedSheets":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"highestScore":{"nullable":true,"type":"number"},"lowestScore":{"nullable":true,"type":"number"},"needsReviewSheets":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"processedSheets":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"totalSheets":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["totalSheets","processedSheets","failedSheets","needsReviewSheets","averageScore","highestScore","lowestScore"],"type":"object"},"status":{"enum":["DRAFT","READY","COLLECTING","CLOSED","ARCHIVED"],"type":"string"},"templateId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"templateName":{"nullable":true,"type":"string"},"topics":{"items":{"additionalProperties":false,"properties":{"color":{"maxLength":9,"nullable":true,"type":"string"},"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"name":{"maxLength":120,"minLength":1,"type":"string"},"questions":{"items":{"maximum":2000,"minimum":1,"type":"integer"},"maxItems":2000,"minItems":1,"type":"array"}},"required":["id","name","fieldKey","questions","color"],"type":"object"},"type":"array"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"version":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["id","organizationId","templateId","templateName","name","description","code","status","version","bookletCodes","questionCount","examDate","stats","createdAt","updatedAt","deletedAt","createdBy","document","documentFrozenAt","rescorePending","rescoreRequestedAt","defaultScoring","passMark","recognitionSettings","sections","topics","answerKeys"],"type":"object"}}},"description":"OK"}},"summary":"Project details","tags":["Projects"]},"put":{"operationId":"projectsUpdate","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"bookletCodes":{"items":{"type":"string"},"maxItems":8,"minItems":1,"type":"array"},"defaultScoring":{"properties":{"blankPoints":{"maximum":1000,"minimum":-1000,"type":"number"},"cancelledPolicy":{"enum":["CORRECT_FOR_ALL","EXCLUDE"],"type":"string"},"clampNegativeToZero":{"type":"boolean"},"correctPoints":{"maximum":1000,"minimum":0,"type":"number"},"multipleMarkPolicy":{"enum":["WRONG","BLANK","REVIEW"],"type":"string"},"normalizeTo100":{"type":"boolean"},"penaltyMode":{"enum":["NONE","PER_WRONG","WRONG_RATIO"],"type":"string"},"wrongPenalty":{"maximum":1000,"minimum":0,"type":"number"},"wrongRatio":{"maximum":20,"minimum":1,"type":"number"}},"required":["correctPoints","penaltyMode","wrongPenalty","wrongRatio","blankPoints","multipleMarkPolicy","cancelledPolicy","clampNegativeToZero","normalizeTo100"],"type":"object"},"description":{"maxLength":2000,"type":"string"},"document":{"properties":{"editorGrid":{"properties":{"color":{"type":"string"},"size":{"maximum":50,"minimum":0.5,"type":"number"},"snap":{"maximum":50,"minimum":0,"type":"number"},"style":{"enum":["NONE","DOTS","LINES"],"type":"string"}},"required":["style","size","snap","color"],"type":"object"},"elements":{"items":{"oneOf":[{"properties":{"autoShrink":{"type":"boolean"},"background":{"nullable":true,"type":"string"},"border":{"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"frame":{"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"padding":{"properties":{"bottom":{"maximum":200,"minimum":0,"type":"number"},"left":{"maximum":200,"minimum":0,"type":"number"},"right":{"maximum":200,"minimum":0,"type":"number"},"top":{"maximum":200,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"text":{"maxLength":4000,"type":"string"},"type":{"enum":["TEXT"],"type":"string"},"typography":{"properties":{"align":{"enum":["LEFT","CENTER","RIGHT","JUSTIFY"],"type":"string"},"color":{"type":"string"},"family":{"enum":["SANS","SANS_CONDENSED","SERIF","MONO"],"type":"string"},"italic":{"type":"boolean"},"letterSpacing":{"maximum":20,"minimum":-5,"type":"number"},"lineHeight":{"maximum":4,"minimum":0.7,"type":"number"},"size":{"maximum":400,"minimum":1,"type":"number"},"underline":{"type":"boolean"},"verticalAlign":{"enum":["TOP","MIDDLE","BOTTOM"],"type":"string"},"weight":{"anyOf":[{"enum":[400],"type":"number"},{"enum":[700],"type":"number"}]}},"required":["family","size","weight","italic","underline","align","verticalAlign","lineHeight","letterSpacing","color"],"type":"object"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","frame","rotation","z","locked","hidden","opacity","type","text","typography","padding","background","border","autoShrink"],"type":"object"},{"properties":{"assetId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"border":{"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"fit":{"enum":["CONTAIN","COVER","FILL"],"type":"string"},"frame":{"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"reference":{"default":false,"type":"boolean"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"type":{"enum":["IMAGE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","frame","rotation","z","locked","hidden","opacity","type","assetId","fit","border"],"type":"object"},{"properties":{"fill":{"nullable":true,"type":"string"},"frame":{"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"radius":{"maximum":100,"minimum":0,"type":"number"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"stroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"type":{"enum":["RECT"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","frame","rotation","z","locked","hidden","opacity","type","fill","stroke","radius"],"type":"object"},{"properties":{"frame":{"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"stroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"type":{"enum":["LINE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","frame","rotation","z","locked","hidden","opacity","type","stroke"],"type":"object"},{"properties":{"background":{"type":"string"},"customValue":{"maxLength":512,"nullable":true,"type":"string"},"errorCorrection":{"enum":["L","M","Q","H"],"type":"string"},"foreground":{"type":"string"},"frame":{"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"quietZone":{"maximum":8,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"source":{"enum":["SHEET_TOKEN","PROJECT_CODE","CUSTOM"],"type":"string"},"type":{"enum":["QR"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","frame","rotation","z","locked","hidden","opacity","type","source","customValue","errorCorrection","quietZone","foreground","background"],"type":"object"},{"properties":{"background":{"type":"string"},"customValue":{"maxLength":128,"nullable":true,"type":"string"},"foreground":{"type":"string"},"frame":{"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"quietZone":{"maximum":20,"minimum":0,"type":"number"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"showText":{"type":"boolean"},"source":{"enum":["SHEET_TOKEN","PROJECT_CODE","CUSTOM"],"type":"string"},"symbology":{"enum":["CODE128","CODE39","EAN13","ITF14"],"type":"string"},"type":{"enum":["BARCODE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","frame","rotation","z","locked","hidden","opacity","type","symbology","source","customValue","showText","quietZone","foreground","background"],"type":"object"},{"properties":{"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"frame":{"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"itemCount":{"maximum":500,"minimum":1,"type":"integer"},"labels":{"properties":{"color":{"type":"string"},"custom":{"items":{"maxLength":40,"type":"string"},"maxItems":40,"type":"array"},"itemGutter":{"maximum":150,"minimum":0,"type":"number"},"itemTexts":{"default":[],"items":{"maxLength":160,"type":"string"},"maxItems":500,"type":"array"},"kind":{"enum":["LETTERS","TR_LETTERS","DIGITS","CUSTOM","NONE"],"type":"string"},"numberWidth":{"default":0,"maximum":4,"minimum":0,"type":"integer"},"optionGutter":{"maximum":60,"minimum":0,"type":"number"},"showItemNumbers":{"type":"boolean"},"showOptionLabels":{"type":"boolean"},"size":{"maximum":48,"minimum":1,"type":"number"}},"required":["kind","custom","showItemNumbers","itemGutter","showOptionLabels","optionGutter","size","color"],"type":"object"},"layout":{"properties":{"blockGap":{"maximum":100,"minimum":0,"type":"number"},"blocks":{"maximum":20,"minimum":1,"type":"integer"},"bubble":{"properties":{"shape":{"enum":["CIRCLE","SQUARE","ROUNDED","ELLIPSE"],"type":"string"},"size":{"maximum":15,"minimum":2,"type":"number"}},"required":["shape","size"],"type":"object"},"direction":{"enum":["VERTICAL","HORIZONTAL"],"type":"string"},"flow":{"enum":["COLUMN_MAJOR","ROW_MAJOR"],"type":"string"},"itemGap":{"maximum":50,"minimum":0,"type":"number"},"optionGap":{"maximum":50,"minimum":0,"type":"number"},"padding":{"properties":{"bottom":{"maximum":200,"minimum":0,"type":"number"},"left":{"maximum":200,"minimum":0,"type":"number"},"right":{"maximum":200,"minimum":0,"type":"number"},"top":{"maximum":200,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"}},"required":["direction","flow","blocks","blockGap","bubble","itemGap","optionGap","padding"],"type":"object"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"optionCount":{"maximum":40,"minimum":2,"type":"integer"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"placement":{"default":null,"nullable":true,"properties":{"items":{"items":{"properties":{"options":{"items":{"properties":{"height":{"maximum":200,"minimum":1,"type":"number"},"width":{"maximum":200,"minimum":1,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"maxItems":40,"minItems":2,"type":"array"},"pageIndex":{"maximum":15,"minimum":0,"type":"integer"}},"required":["pageIndex","options"],"type":"object"},"maxItems":500,"minItems":1,"type":"array"}},"required":["items"],"type":"object"},"role":{"enum":["ANSWERS","STUDENT_ID","BOOKLET","TEXT_FIELD","CUSTOM"],"type":"string"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"startIndex":{"maximum":9999,"minimum":0,"type":"integer"},"style":{"properties":{"background":{"nullable":true,"type":"string"},"border":{"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"bubbleFill":{"nullable":true,"type":"string"},"bubbleStroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"insideLabelColor":{"default":"#5C6879","type":"string"},"labelInsideBubble":{"type":"boolean"},"rowStripe":{"properties":{"enabled":{"type":"boolean"},"primary":{"type":"string"},"secondary":{"type":"string"}},"required":["enabled","primary","secondary"],"type":"object"},"separators":{"properties":{"enabled":{"type":"boolean"},"stroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke"],"type":"object"}},"required":["bubbleStroke","bubbleFill","labelInsideBubble","border","background","rowStripe","separators"],"type":"object"},"type":{"enum":["BUBBLE_GRID"],"type":"string"},"writeBoxes":{"default":{"enabled":false,"gap":1.6,"height":7,"stroke":{"color":"#111827","style":"SOLID","width":0.3}},"properties":{"enabled":{"type":"boolean"},"gap":{"default":0,"maximum":20,"minimum":0,"type":"number"},"height":{"maximum":40,"minimum":3,"type":"number"},"stroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","height","stroke"],"type":"object"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","frame","rotation","z","locked","hidden","opacity","type","role","fieldKey","itemCount","optionCount","startIndex","labels","layout","style"],"type":"object"}]},"maxItems":500,"type":"array"},"page":{"properties":{"background":{"type":"string"},"format":{"enum":["A3","A4","A5","LETTER","LEGAL","CUSTOM"],"type":"string"},"height":{"maximum":2000,"minimum":50,"type":"number"},"margins":{"properties":{"bottom":{"maximum":2000,"minimum":0,"type":"number"},"left":{"maximum":2000,"minimum":0,"type":"number"},"right":{"maximum":2000,"minimum":0,"type":"number"},"top":{"maximum":2000,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"},"orientation":{"enum":["PORTRAIT","LANDSCAPE"],"type":"string"},"width":{"maximum":2000,"minimum":50,"type":"number"}},"required":["format","orientation","width","height","margins","background"],"type":"object"},"pageCount":{"default":1,"maximum":16,"minimum":1,"type":"integer"},"registration":{"properties":{"corners":{"properties":{"enabled":{"type":"boolean"},"inset":{"maximum":40,"minimum":2,"type":"number"},"shape":{"enum":["SQUARE","CIRCLE"],"type":"string"},"size":{"maximum":20,"minimum":3,"type":"number"}},"required":["enabled","size","inset","shape"],"type":"object"},"timing":{"properties":{"edge":{"enum":["LEFT","RIGHT","BOTH"],"type":"string"},"enabled":{"type":"boolean"},"gap":{"maximum":20,"minimum":1,"type":"number"},"height":{"maximum":10,"minimum":1,"type":"number"},"inset":{"maximum":40,"minimum":0,"type":"number"},"offsetBottom":{"maximum":200,"minimum":0,"type":"number"},"offsetTop":{"maximum":200,"minimum":0,"type":"number"},"width":{"maximum":20,"minimum":2,"type":"number"}},"required":["enabled","edge","width","height","gap","inset","offsetTop","offsetBottom"],"type":"object"}},"required":["corners","timing"],"type":"object"},"schemaVersion":{"enum":[1],"type":"number"},"source":{"default":"DESIGNED","enum":["DESIGNED","EXTERNAL"],"type":"string"}},"required":["schemaVersion","page","registration","editorGrid","elements"],"type":"object"},"examDate":{"description":"The exam's day, as the moment it begins in the organization's time zone — 2026-04-15T00:00:00+03:00 for 15 April in Istanbul. Shown as that day in the organization's zone; midnight UTC is the day before anywhere west of Greenwich.","format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"expectedVersion":{"maximum":9007199254740991,"minimum":1,"type":"integer"},"name":{"maxLength":120,"minLength":1,"type":"string"},"passMark":{"exclusiveMinimum":true,"maximum":100,"minimum":0,"nullable":true,"type":"number"},"questionCount":{"maximum":2000,"minimum":1,"type":"integer"},"recognitionSettings":{"properties":{"autoAcceptConfidence":{"maximum":1,"minimum":0,"type":"number"},"blankThreshold":{"maximum":1,"minimum":0,"type":"number"},"denoise":{"type":"boolean"},"fillThreshold":{"maximum":1,"minimum":0,"type":"number"},"minimumAlignmentConfidence":{"maximum":1,"minimum":0,"type":"number"},"minimumMargin":{"maximum":1,"minimum":0,"type":"number"},"sampleRadiusRatio":{"maximum":1,"minimum":0,"type":"number"},"workingDpi":{"maximum":600,"minimum":120,"type":"integer"}},"type":"object"},"sections":{"items":{"properties":{"color":{"maxLength":9,"nullable":true,"type":"string"},"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"firstQuestion":{"maximum":2000,"minimum":1,"type":"integer"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"lastQuestion":{"maximum":2000,"minimum":1,"type":"integer"},"name":{"maxLength":80,"minLength":1,"type":"string"},"scoring":{"nullable":true,"properties":{"blankPoints":{"maximum":1000,"minimum":-1000,"type":"number"},"cancelledPolicy":{"enum":["CORRECT_FOR_ALL","EXCLUDE"],"type":"string"},"clampNegativeToZero":{"type":"boolean"},"correctPoints":{"maximum":1000,"minimum":0,"type":"number"},"multipleMarkPolicy":{"enum":["WRONG","BLANK","REVIEW"],"type":"string"},"normalizeTo100":{"type":"boolean"},"penaltyMode":{"enum":["NONE","PER_WRONG","WRONG_RATIO"],"type":"string"},"wrongPenalty":{"maximum":1000,"minimum":0,"type":"number"},"wrongRatio":{"maximum":20,"minimum":1,"type":"number"}},"required":["correctPoints","penaltyMode","wrongPenalty","wrongRatio","blankPoints","multipleMarkPolicy","cancelledPolicy","clampNegativeToZero","normalizeTo100"],"type":"object"},"weight":{"maximum":100,"minimum":0,"type":"number"}},"required":["id","name","fieldKey","firstQuestion","lastQuestion","weight","scoring","color"],"type":"object"},"maxItems":30,"type":"array"},"topics":{"items":{"properties":{"color":{"maxLength":9,"nullable":true,"type":"string"},"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"name":{"maxLength":120,"minLength":1,"type":"string"},"questions":{"items":{"maximum":2000,"minimum":1,"type":"integer"},"maxItems":2000,"minItems":1,"type":"array"}},"required":["id","name","fieldKey","questions","color"],"type":"object"},"maxItems":200,"type":"array"}},"required":["expectedVersion"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"answerKeys":{"items":{"additionalProperties":false,"properties":{"answers":{"additionalProperties":{"anyOf":[{"maximum":25,"minimum":0,"type":"integer"},{"items":{"maximum":25,"minimum":0,"type":"integer"},"maxItems":26,"minItems":1,"type":"array"}],"nullable":true},"type":"object"},"bookletCode":{"maxLength":4,"minLength":1,"type":"string"},"cancelledQuestions":{"items":{"maximum":2000,"minimum":1,"type":"integer"},"maxItems":2000,"type":"array"},"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"questionMap":{"additionalProperties":{"maximum":2000,"minimum":1,"type":"integer"},"default":{},"type":"object"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},"required":["bookletCode","fieldKey","answers","cancelledQuestions","questionMap"],"type":"object"},"type":"array"},"bookletCodes":{"items":{"type":"string"},"type":"array"},"code":{"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"createdBy":{"additionalProperties":false,"nullable":true,"properties":{"displayName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["id","displayName"],"type":"object"},"defaultScoring":{"additionalProperties":false,"properties":{"blankPoints":{"maximum":1000,"minimum":-1000,"type":"number"},"cancelledPolicy":{"enum":["CORRECT_FOR_ALL","EXCLUDE"],"type":"string"},"clampNegativeToZero":{"type":"boolean"},"correctPoints":{"maximum":1000,"minimum":0,"type":"number"},"multipleMarkPolicy":{"enum":["WRONG","BLANK","REVIEW"],"type":"string"},"normalizeTo100":{"type":"boolean"},"penaltyMode":{"enum":["NONE","PER_WRONG","WRONG_RATIO"],"type":"string"},"wrongPenalty":{"maximum":1000,"minimum":0,"type":"number"},"wrongRatio":{"maximum":20,"minimum":1,"type":"number"}},"required":["correctPoints","penaltyMode","wrongPenalty","wrongRatio","blankPoints","multipleMarkPolicy","cancelledPolicy","clampNegativeToZero","normalizeTo100"],"type":"object"},"deletedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"description":{"type":"string"},"document":{"additionalProperties":false,"properties":{"editorGrid":{"additionalProperties":false,"properties":{"color":{"type":"string"},"size":{"maximum":50,"minimum":0.5,"type":"number"},"snap":{"maximum":50,"minimum":0,"type":"number"},"style":{"enum":["NONE","DOTS","LINES"],"type":"string"}},"required":["style","size","snap","color"],"type":"object"},"elements":{"items":{"oneOf":[{"additionalProperties":false,"properties":{"autoShrink":{"type":"boolean"},"background":{"nullable":true,"type":"string"},"border":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"padding":{"additionalProperties":false,"properties":{"bottom":{"maximum":200,"minimum":0,"type":"number"},"left":{"maximum":200,"minimum":0,"type":"number"},"right":{"maximum":200,"minimum":0,"type":"number"},"top":{"maximum":200,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"text":{"maxLength":4000,"type":"string"},"type":{"enum":["TEXT"],"type":"string"},"typography":{"additionalProperties":false,"properties":{"align":{"enum":["LEFT","CENTER","RIGHT","JUSTIFY"],"type":"string"},"color":{"type":"string"},"family":{"enum":["SANS","SANS_CONDENSED","SERIF","MONO"],"type":"string"},"italic":{"type":"boolean"},"letterSpacing":{"maximum":20,"minimum":-5,"type":"number"},"lineHeight":{"maximum":4,"minimum":0.7,"type":"number"},"size":{"maximum":400,"minimum":1,"type":"number"},"underline":{"type":"boolean"},"verticalAlign":{"enum":["TOP","MIDDLE","BOTTOM"],"type":"string"},"weight":{"anyOf":[{"enum":[400],"type":"number"},{"enum":[700],"type":"number"}]}},"required":["family","size","weight","italic","underline","align","verticalAlign","lineHeight","letterSpacing","color"],"type":"object"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","text","typography","padding","background","border","autoShrink"],"type":"object"},{"additionalProperties":false,"properties":{"assetId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"border":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"fit":{"enum":["CONTAIN","COVER","FILL"],"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"reference":{"default":false,"type":"boolean"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"type":{"enum":["IMAGE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","assetId","fit","border","reference"],"type":"object"},{"additionalProperties":false,"properties":{"fill":{"nullable":true,"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"radius":{"maximum":100,"minimum":0,"type":"number"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"type":{"enum":["RECT"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","fill","stroke","radius"],"type":"object"},{"additionalProperties":false,"properties":{"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"type":{"enum":["LINE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","stroke"],"type":"object"},{"additionalProperties":false,"properties":{"background":{"type":"string"},"customValue":{"maxLength":512,"nullable":true,"type":"string"},"errorCorrection":{"enum":["L","M","Q","H"],"type":"string"},"foreground":{"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"quietZone":{"maximum":8,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"source":{"enum":["SHEET_TOKEN","PROJECT_CODE","CUSTOM"],"type":"string"},"type":{"enum":["QR"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","source","customValue","errorCorrection","quietZone","foreground","background"],"type":"object"},{"additionalProperties":false,"properties":{"background":{"type":"string"},"customValue":{"maxLength":128,"nullable":true,"type":"string"},"foreground":{"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"quietZone":{"maximum":20,"minimum":0,"type":"number"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"showText":{"type":"boolean"},"source":{"enum":["SHEET_TOKEN","PROJECT_CODE","CUSTOM"],"type":"string"},"symbology":{"enum":["CODE128","CODE39","EAN13","ITF14"],"type":"string"},"type":{"enum":["BARCODE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","symbology","source","customValue","showText","quietZone","foreground","background"],"type":"object"},{"additionalProperties":false,"properties":{"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"itemCount":{"maximum":500,"minimum":1,"type":"integer"},"labels":{"additionalProperties":false,"properties":{"color":{"type":"string"},"custom":{"items":{"maxLength":40,"type":"string"},"maxItems":40,"type":"array"},"itemGutter":{"maximum":150,"minimum":0,"type":"number"},"itemTexts":{"default":[],"items":{"maxLength":160,"type":"string"},"maxItems":500,"type":"array"},"kind":{"enum":["LETTERS","TR_LETTERS","DIGITS","CUSTOM","NONE"],"type":"string"},"numberWidth":{"default":0,"maximum":4,"minimum":0,"type":"integer"},"optionGutter":{"maximum":60,"minimum":0,"type":"number"},"showItemNumbers":{"type":"boolean"},"showOptionLabels":{"type":"boolean"},"size":{"maximum":48,"minimum":1,"type":"number"}},"required":["kind","custom","showItemNumbers","numberWidth","itemGutter","itemTexts","showOptionLabels","optionGutter","size","color"],"type":"object"},"layout":{"additionalProperties":false,"properties":{"blockGap":{"maximum":100,"minimum":0,"type":"number"},"blocks":{"maximum":20,"minimum":1,"type":"integer"},"bubble":{"additionalProperties":false,"properties":{"shape":{"enum":["CIRCLE","SQUARE","ROUNDED","ELLIPSE"],"type":"string"},"size":{"maximum":15,"minimum":2,"type":"number"}},"required":["shape","size"],"type":"object"},"direction":{"enum":["VERTICAL","HORIZONTAL"],"type":"string"},"flow":{"enum":["COLUMN_MAJOR","ROW_MAJOR"],"type":"string"},"itemGap":{"maximum":50,"minimum":0,"type":"number"},"optionGap":{"maximum":50,"minimum":0,"type":"number"},"padding":{"additionalProperties":false,"properties":{"bottom":{"maximum":200,"minimum":0,"type":"number"},"left":{"maximum":200,"minimum":0,"type":"number"},"right":{"maximum":200,"minimum":0,"type":"number"},"top":{"maximum":200,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"}},"required":["direction","flow","blocks","blockGap","bubble","itemGap","optionGap","padding"],"type":"object"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"optionCount":{"maximum":40,"minimum":2,"type":"integer"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"placement":{"additionalProperties":false,"default":null,"nullable":true,"properties":{"items":{"items":{"additionalProperties":false,"properties":{"options":{"items":{"additionalProperties":false,"properties":{"height":{"maximum":200,"minimum":1,"type":"number"},"width":{"maximum":200,"minimum":1,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"maxItems":40,"minItems":2,"type":"array"},"pageIndex":{"maximum":15,"minimum":0,"type":"integer"}},"required":["pageIndex","options"],"type":"object"},"maxItems":500,"minItems":1,"type":"array"}},"required":["items"],"type":"object"},"role":{"enum":["ANSWERS","STUDENT_ID","BOOKLET","TEXT_FIELD","CUSTOM"],"type":"string"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"startIndex":{"maximum":9999,"minimum":0,"type":"integer"},"style":{"additionalProperties":false,"properties":{"background":{"nullable":true,"type":"string"},"border":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"bubbleFill":{"nullable":true,"type":"string"},"bubbleStroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"insideLabelColor":{"default":"#5C6879","type":"string"},"labelInsideBubble":{"type":"boolean"},"rowStripe":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"primary":{"type":"string"},"secondary":{"type":"string"}},"required":["enabled","primary","secondary"],"type":"object"},"separators":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke"],"type":"object"}},"required":["bubbleStroke","bubbleFill","labelInsideBubble","insideLabelColor","border","background","rowStripe","separators"],"type":"object"},"type":{"enum":["BUBBLE_GRID"],"type":"string"},"writeBoxes":{"additionalProperties":false,"default":{"enabled":false,"gap":1.6,"height":7,"stroke":{"color":"#111827","style":"SOLID","width":0.3}},"properties":{"enabled":{"type":"boolean"},"gap":{"default":0,"maximum":20,"minimum":0,"type":"number"},"height":{"maximum":40,"minimum":3,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","height","gap","stroke"],"type":"object"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","role","fieldKey","itemCount","optionCount","startIndex","labels","writeBoxes","layout","style","placement"],"type":"object"}]},"maxItems":500,"type":"array"},"page":{"additionalProperties":false,"properties":{"background":{"type":"string"},"format":{"enum":["A3","A4","A5","LETTER","LEGAL","CUSTOM"],"type":"string"},"height":{"maximum":2000,"minimum":50,"type":"number"},"margins":{"additionalProperties":false,"properties":{"bottom":{"maximum":2000,"minimum":0,"type":"number"},"left":{"maximum":2000,"minimum":0,"type":"number"},"right":{"maximum":2000,"minimum":0,"type":"number"},"top":{"maximum":2000,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"},"orientation":{"enum":["PORTRAIT","LANDSCAPE"],"type":"string"},"width":{"maximum":2000,"minimum":50,"type":"number"}},"required":["format","orientation","width","height","margins","background"],"type":"object"},"pageCount":{"default":1,"maximum":16,"minimum":1,"type":"integer"},"registration":{"additionalProperties":false,"properties":{"corners":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"inset":{"maximum":40,"minimum":2,"type":"number"},"shape":{"enum":["SQUARE","CIRCLE"],"type":"string"},"size":{"maximum":20,"minimum":3,"type":"number"}},"required":["enabled","size","inset","shape"],"type":"object"},"timing":{"additionalProperties":false,"properties":{"edge":{"enum":["LEFT","RIGHT","BOTH"],"type":"string"},"enabled":{"type":"boolean"},"gap":{"maximum":20,"minimum":1,"type":"number"},"height":{"maximum":10,"minimum":1,"type":"number"},"inset":{"maximum":40,"minimum":0,"type":"number"},"offsetBottom":{"maximum":200,"minimum":0,"type":"number"},"offsetTop":{"maximum":200,"minimum":0,"type":"number"},"width":{"maximum":20,"minimum":2,"type":"number"}},"required":["enabled","edge","width","height","gap","inset","offsetTop","offsetBottom"],"type":"object"}},"required":["corners","timing"],"type":"object"},"schemaVersion":{"enum":[1],"type":"number"},"source":{"default":"DESIGNED","enum":["DESIGNED","EXTERNAL"],"type":"string"}},"required":["schemaVersion","source","page","registration","editorGrid","pageCount","elements"],"type":"object"},"documentFrozenAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"examDate":{"description":"The exam's day, as the moment it begins in the organization's time zone — 2026-04-15T00:00:00+03:00 for 15 April in Istanbul. Shown as that day in the organization's zone; midnight UTC is the day before anywhere west of Greenwich.","format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"name":{"type":"string"},"organizationId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"passMark":{"exclusiveMinimum":true,"maximum":100,"minimum":0,"nullable":true,"type":"number"},"questionCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"recognitionSettings":{"additionalProperties":false,"properties":{"autoAcceptConfidence":{"maximum":1,"minimum":0,"type":"number"},"blankThreshold":{"maximum":1,"minimum":0,"type":"number"},"denoise":{"type":"boolean"},"fillThreshold":{"maximum":1,"minimum":0,"type":"number"},"minimumAlignmentConfidence":{"maximum":1,"minimum":0,"type":"number"},"minimumMargin":{"maximum":1,"minimum":0,"type":"number"},"sampleRadiusRatio":{"maximum":1,"minimum":0,"type":"number"},"workingDpi":{"maximum":600,"minimum":120,"type":"integer"}},"required":["workingDpi","fillThreshold","blankThreshold","minimumMargin","sampleRadiusRatio","minimumAlignmentConfidence","autoAcceptConfidence","denoise"],"type":"object"},"rescorePending":{"type":"boolean"},"rescoreRequestedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"sections":{"items":{"additionalProperties":false,"properties":{"color":{"maxLength":9,"nullable":true,"type":"string"},"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"firstQuestion":{"maximum":2000,"minimum":1,"type":"integer"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"lastQuestion":{"maximum":2000,"minimum":1,"type":"integer"},"name":{"maxLength":80,"minLength":1,"type":"string"},"scoring":{"additionalProperties":false,"nullable":true,"properties":{"blankPoints":{"maximum":1000,"minimum":-1000,"type":"number"},"cancelledPolicy":{"enum":["CORRECT_FOR_ALL","EXCLUDE"],"type":"string"},"clampNegativeToZero":{"type":"boolean"},"correctPoints":{"maximum":1000,"minimum":0,"type":"number"},"multipleMarkPolicy":{"enum":["WRONG","BLANK","REVIEW"],"type":"string"},"normalizeTo100":{"type":"boolean"},"penaltyMode":{"enum":["NONE","PER_WRONG","WRONG_RATIO"],"type":"string"},"wrongPenalty":{"maximum":1000,"minimum":0,"type":"number"},"wrongRatio":{"maximum":20,"minimum":1,"type":"number"}},"required":["correctPoints","penaltyMode","wrongPenalty","wrongRatio","blankPoints","multipleMarkPolicy","cancelledPolicy","clampNegativeToZero","normalizeTo100"],"type":"object"},"weight":{"maximum":100,"minimum":0,"type":"number"}},"required":["id","name","fieldKey","firstQuestion","lastQuestion","weight","scoring","color"],"type":"object"},"type":"array"},"stats":{"additionalProperties":false,"properties":{"averageScore":{"nullable":true,"type":"number"},"failedSheets":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"highestScore":{"nullable":true,"type":"number"},"lowestScore":{"nullable":true,"type":"number"},"needsReviewSheets":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"processedSheets":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"totalSheets":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["totalSheets","processedSheets","failedSheets","needsReviewSheets","averageScore","highestScore","lowestScore"],"type":"object"},"status":{"enum":["DRAFT","READY","COLLECTING","CLOSED","ARCHIVED"],"type":"string"},"templateId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"templateName":{"nullable":true,"type":"string"},"topics":{"items":{"additionalProperties":false,"properties":{"color":{"maxLength":9,"nullable":true,"type":"string"},"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"name":{"maxLength":120,"minLength":1,"type":"string"},"questions":{"items":{"maximum":2000,"minimum":1,"type":"integer"},"maxItems":2000,"minItems":1,"type":"array"}},"required":["id","name","fieldKey","questions","color"],"type":"object"},"type":"array"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"version":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["id","organizationId","templateId","templateName","name","description","code","status","version","bookletCodes","questionCount","examDate","stats","createdAt","updatedAt","deletedAt","createdBy","document","documentFrozenAt","rescorePending","rescoreRequestedAt","defaultScoring","passMark","recognitionSettings","sections","topics","answerKeys"],"type":"object"}}},"description":"OK"}},"summary":"Updates the project (optimistic locking)","tags":["Projects"]}},"/api/v1/projects/{id}/answer-keys":{"put":{"operationId":"projectsUpsertAnswerKey","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"answers":{"additionalProperties":{"anyOf":[{"maximum":25,"minimum":0,"type":"integer"},{"items":{"maximum":25,"minimum":0,"type":"integer"},"maxItems":26,"minItems":1,"type":"array"}],"nullable":true},"type":"object"},"bookletCode":{"type":"string"},"cancelledQuestions":{"default":[],"items":{"maximum":2000,"minimum":1,"type":"integer"},"maxItems":2000,"type":"array"},"expectedUpdatedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"questionMap":{"additionalProperties":{"maximum":2000,"minimum":1,"type":"integer"},"default":{},"type":"object"}},"required":["bookletCode","fieldKey","answers"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"answers":{"additionalProperties":{"anyOf":[{"maximum":25,"minimum":0,"type":"integer"},{"items":{"maximum":25,"minimum":0,"type":"integer"},"maxItems":26,"minItems":1,"type":"array"}],"nullable":true},"type":"object"},"bookletCode":{"maxLength":4,"minLength":1,"type":"string"},"cancelledQuestions":{"items":{"maximum":2000,"minimum":1,"type":"integer"},"maxItems":2000,"type":"array"},"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"questionMap":{"additionalProperties":{"maximum":2000,"minimum":1,"type":"integer"},"default":{},"type":"object"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},"required":["bookletCode","fieldKey","answers","cancelledQuestions","questionMap"],"type":"object"}}},"description":"OK"}},"summary":"Saves the answer key for a booklet","tags":["Projects"]}},"/api/v1/projects/{id}/answer-keys/from-pattern":{"post":{"operationId":"projectsUpsertAnswerKeyFromPattern","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"bookletCode":{"type":"string"},"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"pattern":{"maxLength":4000,"minLength":1,"type":"string"},"startQuestion":{"default":1,"maximum":9007199254740991,"minimum":1,"type":"integer"}},"required":["bookletCode","fieldKey","pattern"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"answerKey":{"additionalProperties":false,"properties":{"answers":{"additionalProperties":{"anyOf":[{"maximum":25,"minimum":0,"type":"integer"},{"items":{"maximum":25,"minimum":0,"type":"integer"},"maxItems":26,"minItems":1,"type":"array"}],"nullable":true},"type":"object"},"bookletCode":{"maxLength":4,"minLength":1,"type":"string"},"cancelledQuestions":{"items":{"maximum":2000,"minimum":1,"type":"integer"},"maxItems":2000,"type":"array"},"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"questionMap":{"additionalProperties":{"maximum":2000,"minimum":1,"type":"integer"},"default":{},"type":"object"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},"required":["bookletCode","fieldKey","answers","cancelledQuestions","questionMap"],"type":"object"},"invalid":{"items":{"additionalProperties":false,"properties":{"question":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"token":{"type":"string"}},"required":["question","token"],"type":"object"},"type":"array"}},"required":["answerKey","invalid"],"type":"object"}}},"description":"The key, and the parts of the pattern that were not an answer"}},"summary":"Generates an answer key from a text pattern (e.g. \"ABCDE ABCDE\")","tags":["Projects"]}},"/api/v1/projects/{id}/answer-keys/from-sheet":{"post":{"operationId":"projectsUpsertAnswerKeyFromSheet","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"bookletCode":{"type":"string"},"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"overwrite":{"default":false,"type":"boolean"},"sheetId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["sheetId"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"answerKeys":{"items":{"additionalProperties":false,"properties":{"answers":{"additionalProperties":{"anyOf":[{"maximum":25,"minimum":0,"type":"integer"},{"items":{"maximum":25,"minimum":0,"type":"integer"},"maxItems":26,"minItems":1,"type":"array"}],"nullable":true},"type":"object"},"bookletCode":{"maxLength":4,"minLength":1,"type":"string"},"cancelledQuestions":{"items":{"maximum":2000,"minimum":1,"type":"integer"},"maxItems":2000,"type":"array"},"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"questionMap":{"additionalProperties":{"maximum":2000,"minimum":1,"type":"integer"},"default":{},"type":"object"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},"required":["bookletCode","fieldKey","answers","cancelledQuestions","questionMap"],"type":"object"},"type":"array"},"unreadable":{"items":{"additionalProperties":false,"properties":{"fieldKey":{"type":"string"},"question":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"reason":{"enum":["BLANK","MULTIPLE"],"type":"string"}},"required":["fieldKey","question","reason"],"type":"object"},"type":"array"}},"required":["answerKeys","unreadable"],"type":"object"}}},"description":"The keys read from the sheet, and the items left blank or marked twice — those are not written"}},"summary":"Generates an answer key from a scanned sheet","tags":["Projects"]}},"/api/v1/projects/{id}/answer-keys/{bookletCode}/{fieldKey}":{"delete":{"operationId":"projectsDeleteAnswerKey","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"in":"path","name":"bookletCode","required":true,"schema":{"type":"string"}},{"in":"path","name":"fieldKey","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"No content"}},"summary":"Deletes the answer key","tags":["Projects"]}},"/api/v1/projects/{id}/attendance":{"get":{"operationId":"projectsAttendance","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"absent":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"duplicates":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"expected":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"matched":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"rows":{"items":{"additionalProperties":false,"properties":{"participant":{"additionalProperties":false,"properties":{"className":{"nullable":true,"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"externalId":{"nullable":true,"type":"string"},"firstName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"lastName":{"type":"string"},"projectId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"studentNumber":{"type":"string"}},"required":["id","projectId","studentNumber","firstName","lastName","className","externalId","createdAt"],"type":"object"},"score":{"nullable":true,"type":"number"},"sheetIds":{"items":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"type":"array"},"state":{"enum":["MATCHED","ABSENT","DUPLICATE"],"type":"string"}},"required":["participant","state","sheetIds","score"],"type":"object"},"type":"array"},"unmatchedSheets":{"items":{"additionalProperties":false,"properties":{"score":{"nullable":true,"type":"number"},"sheetId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"studentId":{"nullable":true,"type":"string"}},"required":["sheetId","studentId","score"],"type":"object"},"type":"array"}},"required":["expected","matched","absent","duplicates","unmatchedSheets","rows"],"type":"object"}}},"description":"OK"}},"summary":"Attendance: who came, who did not, which sheet went unmatched","tags":["Projects"]}},"/api/v1/projects/{id}/duplicate":{"post":{"operationId":"projectsDuplicate","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"copyAnswerKeys":{"default":true,"type":"boolean"},"copyParticipants":{"default":false,"type":"boolean"},"examDate":{"default":null,"description":"The exam's day, as the moment it begins in the organization's time zone — 2026-04-15T00:00:00+03:00 for 15 April in Istanbul. Shown as that day in the organization's zone; midnight UTC is the day before anywhere west of Greenwich.","format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"name":{"maxLength":120,"minLength":1,"type":"string"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"answerKeys":{"items":{"additionalProperties":false,"properties":{"answers":{"additionalProperties":{"anyOf":[{"maximum":25,"minimum":0,"type":"integer"},{"items":{"maximum":25,"minimum":0,"type":"integer"},"maxItems":26,"minItems":1,"type":"array"}],"nullable":true},"type":"object"},"bookletCode":{"maxLength":4,"minLength":1,"type":"string"},"cancelledQuestions":{"items":{"maximum":2000,"minimum":1,"type":"integer"},"maxItems":2000,"type":"array"},"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"questionMap":{"additionalProperties":{"maximum":2000,"minimum":1,"type":"integer"},"default":{},"type":"object"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},"required":["bookletCode","fieldKey","answers","cancelledQuestions","questionMap"],"type":"object"},"type":"array"},"bookletCodes":{"items":{"type":"string"},"type":"array"},"code":{"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"createdBy":{"additionalProperties":false,"nullable":true,"properties":{"displayName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["id","displayName"],"type":"object"},"defaultScoring":{"additionalProperties":false,"properties":{"blankPoints":{"maximum":1000,"minimum":-1000,"type":"number"},"cancelledPolicy":{"enum":["CORRECT_FOR_ALL","EXCLUDE"],"type":"string"},"clampNegativeToZero":{"type":"boolean"},"correctPoints":{"maximum":1000,"minimum":0,"type":"number"},"multipleMarkPolicy":{"enum":["WRONG","BLANK","REVIEW"],"type":"string"},"normalizeTo100":{"type":"boolean"},"penaltyMode":{"enum":["NONE","PER_WRONG","WRONG_RATIO"],"type":"string"},"wrongPenalty":{"maximum":1000,"minimum":0,"type":"number"},"wrongRatio":{"maximum":20,"minimum":1,"type":"number"}},"required":["correctPoints","penaltyMode","wrongPenalty","wrongRatio","blankPoints","multipleMarkPolicy","cancelledPolicy","clampNegativeToZero","normalizeTo100"],"type":"object"},"deletedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"description":{"type":"string"},"document":{"additionalProperties":false,"properties":{"editorGrid":{"additionalProperties":false,"properties":{"color":{"type":"string"},"size":{"maximum":50,"minimum":0.5,"type":"number"},"snap":{"maximum":50,"minimum":0,"type":"number"},"style":{"enum":["NONE","DOTS","LINES"],"type":"string"}},"required":["style","size","snap","color"],"type":"object"},"elements":{"items":{"oneOf":[{"additionalProperties":false,"properties":{"autoShrink":{"type":"boolean"},"background":{"nullable":true,"type":"string"},"border":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"padding":{"additionalProperties":false,"properties":{"bottom":{"maximum":200,"minimum":0,"type":"number"},"left":{"maximum":200,"minimum":0,"type":"number"},"right":{"maximum":200,"minimum":0,"type":"number"},"top":{"maximum":200,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"text":{"maxLength":4000,"type":"string"},"type":{"enum":["TEXT"],"type":"string"},"typography":{"additionalProperties":false,"properties":{"align":{"enum":["LEFT","CENTER","RIGHT","JUSTIFY"],"type":"string"},"color":{"type":"string"},"family":{"enum":["SANS","SANS_CONDENSED","SERIF","MONO"],"type":"string"},"italic":{"type":"boolean"},"letterSpacing":{"maximum":20,"minimum":-5,"type":"number"},"lineHeight":{"maximum":4,"minimum":0.7,"type":"number"},"size":{"maximum":400,"minimum":1,"type":"number"},"underline":{"type":"boolean"},"verticalAlign":{"enum":["TOP","MIDDLE","BOTTOM"],"type":"string"},"weight":{"anyOf":[{"enum":[400],"type":"number"},{"enum":[700],"type":"number"}]}},"required":["family","size","weight","italic","underline","align","verticalAlign","lineHeight","letterSpacing","color"],"type":"object"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","text","typography","padding","background","border","autoShrink"],"type":"object"},{"additionalProperties":false,"properties":{"assetId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"border":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"fit":{"enum":["CONTAIN","COVER","FILL"],"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"reference":{"default":false,"type":"boolean"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"type":{"enum":["IMAGE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","assetId","fit","border","reference"],"type":"object"},{"additionalProperties":false,"properties":{"fill":{"nullable":true,"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"radius":{"maximum":100,"minimum":0,"type":"number"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"type":{"enum":["RECT"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","fill","stroke","radius"],"type":"object"},{"additionalProperties":false,"properties":{"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"type":{"enum":["LINE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","stroke"],"type":"object"},{"additionalProperties":false,"properties":{"background":{"type":"string"},"customValue":{"maxLength":512,"nullable":true,"type":"string"},"errorCorrection":{"enum":["L","M","Q","H"],"type":"string"},"foreground":{"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"quietZone":{"maximum":8,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"source":{"enum":["SHEET_TOKEN","PROJECT_CODE","CUSTOM"],"type":"string"},"type":{"enum":["QR"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","source","customValue","errorCorrection","quietZone","foreground","background"],"type":"object"},{"additionalProperties":false,"properties":{"background":{"type":"string"},"customValue":{"maxLength":128,"nullable":true,"type":"string"},"foreground":{"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"quietZone":{"maximum":20,"minimum":0,"type":"number"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"showText":{"type":"boolean"},"source":{"enum":["SHEET_TOKEN","PROJECT_CODE","CUSTOM"],"type":"string"},"symbology":{"enum":["CODE128","CODE39","EAN13","ITF14"],"type":"string"},"type":{"enum":["BARCODE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","symbology","source","customValue","showText","quietZone","foreground","background"],"type":"object"},{"additionalProperties":false,"properties":{"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"itemCount":{"maximum":500,"minimum":1,"type":"integer"},"labels":{"additionalProperties":false,"properties":{"color":{"type":"string"},"custom":{"items":{"maxLength":40,"type":"string"},"maxItems":40,"type":"array"},"itemGutter":{"maximum":150,"minimum":0,"type":"number"},"itemTexts":{"default":[],"items":{"maxLength":160,"type":"string"},"maxItems":500,"type":"array"},"kind":{"enum":["LETTERS","TR_LETTERS","DIGITS","CUSTOM","NONE"],"type":"string"},"numberWidth":{"default":0,"maximum":4,"minimum":0,"type":"integer"},"optionGutter":{"maximum":60,"minimum":0,"type":"number"},"showItemNumbers":{"type":"boolean"},"showOptionLabels":{"type":"boolean"},"size":{"maximum":48,"minimum":1,"type":"number"}},"required":["kind","custom","showItemNumbers","numberWidth","itemGutter","itemTexts","showOptionLabels","optionGutter","size","color"],"type":"object"},"layout":{"additionalProperties":false,"properties":{"blockGap":{"maximum":100,"minimum":0,"type":"number"},"blocks":{"maximum":20,"minimum":1,"type":"integer"},"bubble":{"additionalProperties":false,"properties":{"shape":{"enum":["CIRCLE","SQUARE","ROUNDED","ELLIPSE"],"type":"string"},"size":{"maximum":15,"minimum":2,"type":"number"}},"required":["shape","size"],"type":"object"},"direction":{"enum":["VERTICAL","HORIZONTAL"],"type":"string"},"flow":{"enum":["COLUMN_MAJOR","ROW_MAJOR"],"type":"string"},"itemGap":{"maximum":50,"minimum":0,"type":"number"},"optionGap":{"maximum":50,"minimum":0,"type":"number"},"padding":{"additionalProperties":false,"properties":{"bottom":{"maximum":200,"minimum":0,"type":"number"},"left":{"maximum":200,"minimum":0,"type":"number"},"right":{"maximum":200,"minimum":0,"type":"number"},"top":{"maximum":200,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"}},"required":["direction","flow","blocks","blockGap","bubble","itemGap","optionGap","padding"],"type":"object"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"optionCount":{"maximum":40,"minimum":2,"type":"integer"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"placement":{"additionalProperties":false,"default":null,"nullable":true,"properties":{"items":{"items":{"additionalProperties":false,"properties":{"options":{"items":{"additionalProperties":false,"properties":{"height":{"maximum":200,"minimum":1,"type":"number"},"width":{"maximum":200,"minimum":1,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"maxItems":40,"minItems":2,"type":"array"},"pageIndex":{"maximum":15,"minimum":0,"type":"integer"}},"required":["pageIndex","options"],"type":"object"},"maxItems":500,"minItems":1,"type":"array"}},"required":["items"],"type":"object"},"role":{"enum":["ANSWERS","STUDENT_ID","BOOKLET","TEXT_FIELD","CUSTOM"],"type":"string"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"startIndex":{"maximum":9999,"minimum":0,"type":"integer"},"style":{"additionalProperties":false,"properties":{"background":{"nullable":true,"type":"string"},"border":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"bubbleFill":{"nullable":true,"type":"string"},"bubbleStroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"insideLabelColor":{"default":"#5C6879","type":"string"},"labelInsideBubble":{"type":"boolean"},"rowStripe":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"primary":{"type":"string"},"secondary":{"type":"string"}},"required":["enabled","primary","secondary"],"type":"object"},"separators":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke"],"type":"object"}},"required":["bubbleStroke","bubbleFill","labelInsideBubble","insideLabelColor","border","background","rowStripe","separators"],"type":"object"},"type":{"enum":["BUBBLE_GRID"],"type":"string"},"writeBoxes":{"additionalProperties":false,"default":{"enabled":false,"gap":1.6,"height":7,"stroke":{"color":"#111827","style":"SOLID","width":0.3}},"properties":{"enabled":{"type":"boolean"},"gap":{"default":0,"maximum":20,"minimum":0,"type":"number"},"height":{"maximum":40,"minimum":3,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","height","gap","stroke"],"type":"object"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","role","fieldKey","itemCount","optionCount","startIndex","labels","writeBoxes","layout","style","placement"],"type":"object"}]},"maxItems":500,"type":"array"},"page":{"additionalProperties":false,"properties":{"background":{"type":"string"},"format":{"enum":["A3","A4","A5","LETTER","LEGAL","CUSTOM"],"type":"string"},"height":{"maximum":2000,"minimum":50,"type":"number"},"margins":{"additionalProperties":false,"properties":{"bottom":{"maximum":2000,"minimum":0,"type":"number"},"left":{"maximum":2000,"minimum":0,"type":"number"},"right":{"maximum":2000,"minimum":0,"type":"number"},"top":{"maximum":2000,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"},"orientation":{"enum":["PORTRAIT","LANDSCAPE"],"type":"string"},"width":{"maximum":2000,"minimum":50,"type":"number"}},"required":["format","orientation","width","height","margins","background"],"type":"object"},"pageCount":{"default":1,"maximum":16,"minimum":1,"type":"integer"},"registration":{"additionalProperties":false,"properties":{"corners":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"inset":{"maximum":40,"minimum":2,"type":"number"},"shape":{"enum":["SQUARE","CIRCLE"],"type":"string"},"size":{"maximum":20,"minimum":3,"type":"number"}},"required":["enabled","size","inset","shape"],"type":"object"},"timing":{"additionalProperties":false,"properties":{"edge":{"enum":["LEFT","RIGHT","BOTH"],"type":"string"},"enabled":{"type":"boolean"},"gap":{"maximum":20,"minimum":1,"type":"number"},"height":{"maximum":10,"minimum":1,"type":"number"},"inset":{"maximum":40,"minimum":0,"type":"number"},"offsetBottom":{"maximum":200,"minimum":0,"type":"number"},"offsetTop":{"maximum":200,"minimum":0,"type":"number"},"width":{"maximum":20,"minimum":2,"type":"number"}},"required":["enabled","edge","width","height","gap","inset","offsetTop","offsetBottom"],"type":"object"}},"required":["corners","timing"],"type":"object"},"schemaVersion":{"enum":[1],"type":"number"},"source":{"default":"DESIGNED","enum":["DESIGNED","EXTERNAL"],"type":"string"}},"required":["schemaVersion","source","page","registration","editorGrid","pageCount","elements"],"type":"object"},"documentFrozenAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"examDate":{"description":"The exam's day, as the moment it begins in the organization's time zone — 2026-04-15T00:00:00+03:00 for 15 April in Istanbul. Shown as that day in the organization's zone; midnight UTC is the day before anywhere west of Greenwich.","format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"name":{"type":"string"},"organizationId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"passMark":{"exclusiveMinimum":true,"maximum":100,"minimum":0,"nullable":true,"type":"number"},"questionCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"recognitionSettings":{"additionalProperties":false,"properties":{"autoAcceptConfidence":{"maximum":1,"minimum":0,"type":"number"},"blankThreshold":{"maximum":1,"minimum":0,"type":"number"},"denoise":{"type":"boolean"},"fillThreshold":{"maximum":1,"minimum":0,"type":"number"},"minimumAlignmentConfidence":{"maximum":1,"minimum":0,"type":"number"},"minimumMargin":{"maximum":1,"minimum":0,"type":"number"},"sampleRadiusRatio":{"maximum":1,"minimum":0,"type":"number"},"workingDpi":{"maximum":600,"minimum":120,"type":"integer"}},"required":["workingDpi","fillThreshold","blankThreshold","minimumMargin","sampleRadiusRatio","minimumAlignmentConfidence","autoAcceptConfidence","denoise"],"type":"object"},"rescorePending":{"type":"boolean"},"rescoreRequestedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"sections":{"items":{"additionalProperties":false,"properties":{"color":{"maxLength":9,"nullable":true,"type":"string"},"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"firstQuestion":{"maximum":2000,"minimum":1,"type":"integer"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"lastQuestion":{"maximum":2000,"minimum":1,"type":"integer"},"name":{"maxLength":80,"minLength":1,"type":"string"},"scoring":{"additionalProperties":false,"nullable":true,"properties":{"blankPoints":{"maximum":1000,"minimum":-1000,"type":"number"},"cancelledPolicy":{"enum":["CORRECT_FOR_ALL","EXCLUDE"],"type":"string"},"clampNegativeToZero":{"type":"boolean"},"correctPoints":{"maximum":1000,"minimum":0,"type":"number"},"multipleMarkPolicy":{"enum":["WRONG","BLANK","REVIEW"],"type":"string"},"normalizeTo100":{"type":"boolean"},"penaltyMode":{"enum":["NONE","PER_WRONG","WRONG_RATIO"],"type":"string"},"wrongPenalty":{"maximum":1000,"minimum":0,"type":"number"},"wrongRatio":{"maximum":20,"minimum":1,"type":"number"}},"required":["correctPoints","penaltyMode","wrongPenalty","wrongRatio","blankPoints","multipleMarkPolicy","cancelledPolicy","clampNegativeToZero","normalizeTo100"],"type":"object"},"weight":{"maximum":100,"minimum":0,"type":"number"}},"required":["id","name","fieldKey","firstQuestion","lastQuestion","weight","scoring","color"],"type":"object"},"type":"array"},"stats":{"additionalProperties":false,"properties":{"averageScore":{"nullable":true,"type":"number"},"failedSheets":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"highestScore":{"nullable":true,"type":"number"},"lowestScore":{"nullable":true,"type":"number"},"needsReviewSheets":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"processedSheets":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"totalSheets":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["totalSheets","processedSheets","failedSheets","needsReviewSheets","averageScore","highestScore","lowestScore"],"type":"object"},"status":{"enum":["DRAFT","READY","COLLECTING","CLOSED","ARCHIVED"],"type":"string"},"templateId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"templateName":{"nullable":true,"type":"string"},"topics":{"items":{"additionalProperties":false,"properties":{"color":{"maxLength":9,"nullable":true,"type":"string"},"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"name":{"maxLength":120,"minLength":1,"type":"string"},"questions":{"items":{"maximum":2000,"minimum":1,"type":"integer"},"maxItems":2000,"minItems":1,"type":"array"}},"required":["id","name","fieldKey","questions","color"],"type":"object"},"type":"array"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"version":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["id","organizationId","templateId","templateName","name","description","code","status","version","bookletCodes","questionCount","examDate","stats","createdAt","updatedAt","deletedAt","createdBy","document","documentFrozenAt","rescorePending","rescoreRequestedAt","defaultScoring","passMark","recognitionSettings","sections","topics","answerKeys"],"type":"object"}}},"description":"Created"}},"summary":"Creates a new draft exam set up like this one","tags":["Projects"]}},"/api/v1/projects/{id}/geometry":{"get":{"description":"For integrators reading the papers themselves: every mark on the sheet, in millimeters from the top-left corner, as the OMR engine sees it. The screen has no use for it.","operationId":"projectsGeometry","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"}},"summary":"The project's frozen OMR coordinate map","tags":["Projects"]}},"/api/v1/projects/{id}/paper-pages":{"get":{"description":"Empty for an exam on a form FastOMR prints. The links are short-lived.","operationId":"projectsPaperPages","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"pages":{"items":{"additionalProperties":false,"properties":{"assetId":{"type":"string"},"height":{"exclusiveMinimum":true,"maximum":9007199254740991,"minimum":0,"nullable":true,"type":"integer"},"pageIndex":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"url":{"type":"string"},"width":{"exclusiveMinimum":true,"maximum":9007199254740991,"minimum":0,"nullable":true,"type":"integer"}},"required":["pageIndex","assetId","url","width","height"],"type":"object"},"type":"array"}},"required":["pages"],"type":"object"}}},"description":"OK"}},"summary":"Lists the blank pages of the exam's paper made elsewhere, with links to their images","tags":["Projects"]}},"/api/v1/projects/{id}/participants":{"get":{"operationId":"projectsListParticipants","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"additionalProperties":false,"properties":{"className":{"nullable":true,"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"externalId":{"nullable":true,"type":"string"},"firstName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"lastName":{"type":"string"},"projectId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"studentNumber":{"type":"string"}},"required":["id","projectId","studentNumber","firstName","lastName","className","externalId","createdAt"],"type":"object"},"type":"array"}}},"description":"OK"}},"summary":"Roster of candidates expected to sit the exam","tags":["Projects"]},"post":{"operationId":"projectsImportParticipants","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"participants":{"items":{"properties":{"className":{"maxLength":64,"nullable":true,"type":"string"},"externalId":{"maxLength":64,"nullable":true,"type":"string"},"firstName":{"maxLength":80,"minLength":1,"type":"string"},"lastName":{"maxLength":80,"type":"string"},"studentNumber":{"maxLength":32,"minLength":1,"type":"string"}},"required":["studentNumber","firstName","lastName"],"type":"object"},"maxItems":5000,"minItems":1,"type":"array"},"replace":{"default":false,"type":"boolean"}},"required":["participants"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"created":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"skipped":{"items":{"additionalProperties":false,"properties":{"reason":{"type":"string"},"studentNumber":{"type":"string"}},"required":["studentNumber","reason"],"type":"object"},"type":"array"},"updated":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["created","updated","skipped"],"type":"object"}}},"description":"OK"}},"summary":"Ingests the participant roster in bulk","tags":["Projects"]}},"/api/v1/projects/{id}/participants/from-students":{"post":{"operationId":"projectsParticipantsFromStudents","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"classNames":{"default":[],"items":{"maxLength":64,"minLength":1,"type":"string"},"maxItems":50,"type":"array"},"replace":{"default":false,"type":"boolean"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"created":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"skipped":{"items":{"additionalProperties":false,"properties":{"reason":{"type":"string"},"studentNumber":{"type":"string"}},"required":["studentNumber","reason"],"type":"object"},"type":"array"},"updated":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["created","updated","skipped"],"type":"object"}}},"description":"OK"}},"summary":"Builds the roster from the organization's student records, by class","tags":["Projects"]}},"/api/v1/projects/{id}/participants/parse-file":{"post":{"description":"An .xlsx workbook (first worksheet) or a CSV/TSV text file. Nothing is imported: the response is the parsed list with its issues and column mapping, to be confirmed and sent to the import endpoint.","operationId":"projectsParseRosterFile","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Created"}},"summary":"Reads a roster file into the same preview a pasted list gets","tags":["Projects"]}},"/api/v1/projects/{id}/participants/{participantId}":{"delete":{"operationId":"projectsRemoveParticipant","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"in":"path","name":"participantId","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"No content"}},"summary":"Removes a participant from the roster","tags":["Projects"]}},"/api/v1/projects/{id}/rescore":{"post":{"operationId":"projectsRescore","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"202":{"description":"Accepted: the work continues in the background"}},"summary":"Queues recomputation of the results","tags":["Projects"]}},"/api/v1/projects/{id}/restore":{"post":{"operationId":"projectsRestore","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"answerKeys":{"items":{"additionalProperties":false,"properties":{"answers":{"additionalProperties":{"anyOf":[{"maximum":25,"minimum":0,"type":"integer"},{"items":{"maximum":25,"minimum":0,"type":"integer"},"maxItems":26,"minItems":1,"type":"array"}],"nullable":true},"type":"object"},"bookletCode":{"maxLength":4,"minLength":1,"type":"string"},"cancelledQuestions":{"items":{"maximum":2000,"minimum":1,"type":"integer"},"maxItems":2000,"type":"array"},"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"questionMap":{"additionalProperties":{"maximum":2000,"minimum":1,"type":"integer"},"default":{},"type":"object"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},"required":["bookletCode","fieldKey","answers","cancelledQuestions","questionMap"],"type":"object"},"type":"array"},"bookletCodes":{"items":{"type":"string"},"type":"array"},"code":{"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"createdBy":{"additionalProperties":false,"nullable":true,"properties":{"displayName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["id","displayName"],"type":"object"},"defaultScoring":{"additionalProperties":false,"properties":{"blankPoints":{"maximum":1000,"minimum":-1000,"type":"number"},"cancelledPolicy":{"enum":["CORRECT_FOR_ALL","EXCLUDE"],"type":"string"},"clampNegativeToZero":{"type":"boolean"},"correctPoints":{"maximum":1000,"minimum":0,"type":"number"},"multipleMarkPolicy":{"enum":["WRONG","BLANK","REVIEW"],"type":"string"},"normalizeTo100":{"type":"boolean"},"penaltyMode":{"enum":["NONE","PER_WRONG","WRONG_RATIO"],"type":"string"},"wrongPenalty":{"maximum":1000,"minimum":0,"type":"number"},"wrongRatio":{"maximum":20,"minimum":1,"type":"number"}},"required":["correctPoints","penaltyMode","wrongPenalty","wrongRatio","blankPoints","multipleMarkPolicy","cancelledPolicy","clampNegativeToZero","normalizeTo100"],"type":"object"},"deletedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"description":{"type":"string"},"document":{"additionalProperties":false,"properties":{"editorGrid":{"additionalProperties":false,"properties":{"color":{"type":"string"},"size":{"maximum":50,"minimum":0.5,"type":"number"},"snap":{"maximum":50,"minimum":0,"type":"number"},"style":{"enum":["NONE","DOTS","LINES"],"type":"string"}},"required":["style","size","snap","color"],"type":"object"},"elements":{"items":{"oneOf":[{"additionalProperties":false,"properties":{"autoShrink":{"type":"boolean"},"background":{"nullable":true,"type":"string"},"border":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"padding":{"additionalProperties":false,"properties":{"bottom":{"maximum":200,"minimum":0,"type":"number"},"left":{"maximum":200,"minimum":0,"type":"number"},"right":{"maximum":200,"minimum":0,"type":"number"},"top":{"maximum":200,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"text":{"maxLength":4000,"type":"string"},"type":{"enum":["TEXT"],"type":"string"},"typography":{"additionalProperties":false,"properties":{"align":{"enum":["LEFT","CENTER","RIGHT","JUSTIFY"],"type":"string"},"color":{"type":"string"},"family":{"enum":["SANS","SANS_CONDENSED","SERIF","MONO"],"type":"string"},"italic":{"type":"boolean"},"letterSpacing":{"maximum":20,"minimum":-5,"type":"number"},"lineHeight":{"maximum":4,"minimum":0.7,"type":"number"},"size":{"maximum":400,"minimum":1,"type":"number"},"underline":{"type":"boolean"},"verticalAlign":{"enum":["TOP","MIDDLE","BOTTOM"],"type":"string"},"weight":{"anyOf":[{"enum":[400],"type":"number"},{"enum":[700],"type":"number"}]}},"required":["family","size","weight","italic","underline","align","verticalAlign","lineHeight","letterSpacing","color"],"type":"object"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","text","typography","padding","background","border","autoShrink"],"type":"object"},{"additionalProperties":false,"properties":{"assetId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"border":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"fit":{"enum":["CONTAIN","COVER","FILL"],"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"reference":{"default":false,"type":"boolean"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"type":{"enum":["IMAGE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","assetId","fit","border","reference"],"type":"object"},{"additionalProperties":false,"properties":{"fill":{"nullable":true,"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"radius":{"maximum":100,"minimum":0,"type":"number"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"type":{"enum":["RECT"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","fill","stroke","radius"],"type":"object"},{"additionalProperties":false,"properties":{"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"type":{"enum":["LINE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","stroke"],"type":"object"},{"additionalProperties":false,"properties":{"background":{"type":"string"},"customValue":{"maxLength":512,"nullable":true,"type":"string"},"errorCorrection":{"enum":["L","M","Q","H"],"type":"string"},"foreground":{"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"quietZone":{"maximum":8,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"source":{"enum":["SHEET_TOKEN","PROJECT_CODE","CUSTOM"],"type":"string"},"type":{"enum":["QR"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","source","customValue","errorCorrection","quietZone","foreground","background"],"type":"object"},{"additionalProperties":false,"properties":{"background":{"type":"string"},"customValue":{"maxLength":128,"nullable":true,"type":"string"},"foreground":{"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"quietZone":{"maximum":20,"minimum":0,"type":"number"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"showText":{"type":"boolean"},"source":{"enum":["SHEET_TOKEN","PROJECT_CODE","CUSTOM"],"type":"string"},"symbology":{"enum":["CODE128","CODE39","EAN13","ITF14"],"type":"string"},"type":{"enum":["BARCODE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","symbology","source","customValue","showText","quietZone","foreground","background"],"type":"object"},{"additionalProperties":false,"properties":{"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"itemCount":{"maximum":500,"minimum":1,"type":"integer"},"labels":{"additionalProperties":false,"properties":{"color":{"type":"string"},"custom":{"items":{"maxLength":40,"type":"string"},"maxItems":40,"type":"array"},"itemGutter":{"maximum":150,"minimum":0,"type":"number"},"itemTexts":{"default":[],"items":{"maxLength":160,"type":"string"},"maxItems":500,"type":"array"},"kind":{"enum":["LETTERS","TR_LETTERS","DIGITS","CUSTOM","NONE"],"type":"string"},"numberWidth":{"default":0,"maximum":4,"minimum":0,"type":"integer"},"optionGutter":{"maximum":60,"minimum":0,"type":"number"},"showItemNumbers":{"type":"boolean"},"showOptionLabels":{"type":"boolean"},"size":{"maximum":48,"minimum":1,"type":"number"}},"required":["kind","custom","showItemNumbers","numberWidth","itemGutter","itemTexts","showOptionLabels","optionGutter","size","color"],"type":"object"},"layout":{"additionalProperties":false,"properties":{"blockGap":{"maximum":100,"minimum":0,"type":"number"},"blocks":{"maximum":20,"minimum":1,"type":"integer"},"bubble":{"additionalProperties":false,"properties":{"shape":{"enum":["CIRCLE","SQUARE","ROUNDED","ELLIPSE"],"type":"string"},"size":{"maximum":15,"minimum":2,"type":"number"}},"required":["shape","size"],"type":"object"},"direction":{"enum":["VERTICAL","HORIZONTAL"],"type":"string"},"flow":{"enum":["COLUMN_MAJOR","ROW_MAJOR"],"type":"string"},"itemGap":{"maximum":50,"minimum":0,"type":"number"},"optionGap":{"maximum":50,"minimum":0,"type":"number"},"padding":{"additionalProperties":false,"properties":{"bottom":{"maximum":200,"minimum":0,"type":"number"},"left":{"maximum":200,"minimum":0,"type":"number"},"right":{"maximum":200,"minimum":0,"type":"number"},"top":{"maximum":200,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"}},"required":["direction","flow","blocks","blockGap","bubble","itemGap","optionGap","padding"],"type":"object"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"optionCount":{"maximum":40,"minimum":2,"type":"integer"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"placement":{"additionalProperties":false,"default":null,"nullable":true,"properties":{"items":{"items":{"additionalProperties":false,"properties":{"options":{"items":{"additionalProperties":false,"properties":{"height":{"maximum":200,"minimum":1,"type":"number"},"width":{"maximum":200,"minimum":1,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"maxItems":40,"minItems":2,"type":"array"},"pageIndex":{"maximum":15,"minimum":0,"type":"integer"}},"required":["pageIndex","options"],"type":"object"},"maxItems":500,"minItems":1,"type":"array"}},"required":["items"],"type":"object"},"role":{"enum":["ANSWERS","STUDENT_ID","BOOKLET","TEXT_FIELD","CUSTOM"],"type":"string"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"startIndex":{"maximum":9999,"minimum":0,"type":"integer"},"style":{"additionalProperties":false,"properties":{"background":{"nullable":true,"type":"string"},"border":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"bubbleFill":{"nullable":true,"type":"string"},"bubbleStroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"insideLabelColor":{"default":"#5C6879","type":"string"},"labelInsideBubble":{"type":"boolean"},"rowStripe":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"primary":{"type":"string"},"secondary":{"type":"string"}},"required":["enabled","primary","secondary"],"type":"object"},"separators":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke"],"type":"object"}},"required":["bubbleStroke","bubbleFill","labelInsideBubble","insideLabelColor","border","background","rowStripe","separators"],"type":"object"},"type":{"enum":["BUBBLE_GRID"],"type":"string"},"writeBoxes":{"additionalProperties":false,"default":{"enabled":false,"gap":1.6,"height":7,"stroke":{"color":"#111827","style":"SOLID","width":0.3}},"properties":{"enabled":{"type":"boolean"},"gap":{"default":0,"maximum":20,"minimum":0,"type":"number"},"height":{"maximum":40,"minimum":3,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","height","gap","stroke"],"type":"object"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","role","fieldKey","itemCount","optionCount","startIndex","labels","writeBoxes","layout","style","placement"],"type":"object"}]},"maxItems":500,"type":"array"},"page":{"additionalProperties":false,"properties":{"background":{"type":"string"},"format":{"enum":["A3","A4","A5","LETTER","LEGAL","CUSTOM"],"type":"string"},"height":{"maximum":2000,"minimum":50,"type":"number"},"margins":{"additionalProperties":false,"properties":{"bottom":{"maximum":2000,"minimum":0,"type":"number"},"left":{"maximum":2000,"minimum":0,"type":"number"},"right":{"maximum":2000,"minimum":0,"type":"number"},"top":{"maximum":2000,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"},"orientation":{"enum":["PORTRAIT","LANDSCAPE"],"type":"string"},"width":{"maximum":2000,"minimum":50,"type":"number"}},"required":["format","orientation","width","height","margins","background"],"type":"object"},"pageCount":{"default":1,"maximum":16,"minimum":1,"type":"integer"},"registration":{"additionalProperties":false,"properties":{"corners":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"inset":{"maximum":40,"minimum":2,"type":"number"},"shape":{"enum":["SQUARE","CIRCLE"],"type":"string"},"size":{"maximum":20,"minimum":3,"type":"number"}},"required":["enabled","size","inset","shape"],"type":"object"},"timing":{"additionalProperties":false,"properties":{"edge":{"enum":["LEFT","RIGHT","BOTH"],"type":"string"},"enabled":{"type":"boolean"},"gap":{"maximum":20,"minimum":1,"type":"number"},"height":{"maximum":10,"minimum":1,"type":"number"},"inset":{"maximum":40,"minimum":0,"type":"number"},"offsetBottom":{"maximum":200,"minimum":0,"type":"number"},"offsetTop":{"maximum":200,"minimum":0,"type":"number"},"width":{"maximum":20,"minimum":2,"type":"number"}},"required":["enabled","edge","width","height","gap","inset","offsetTop","offsetBottom"],"type":"object"}},"required":["corners","timing"],"type":"object"},"schemaVersion":{"enum":[1],"type":"number"},"source":{"default":"DESIGNED","enum":["DESIGNED","EXTERNAL"],"type":"string"}},"required":["schemaVersion","source","page","registration","editorGrid","pageCount","elements"],"type":"object"},"documentFrozenAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"examDate":{"description":"The exam's day, as the moment it begins in the organization's time zone — 2026-04-15T00:00:00+03:00 for 15 April in Istanbul. Shown as that day in the organization's zone; midnight UTC is the day before anywhere west of Greenwich.","format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"name":{"type":"string"},"organizationId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"passMark":{"exclusiveMinimum":true,"maximum":100,"minimum":0,"nullable":true,"type":"number"},"questionCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"recognitionSettings":{"additionalProperties":false,"properties":{"autoAcceptConfidence":{"maximum":1,"minimum":0,"type":"number"},"blankThreshold":{"maximum":1,"minimum":0,"type":"number"},"denoise":{"type":"boolean"},"fillThreshold":{"maximum":1,"minimum":0,"type":"number"},"minimumAlignmentConfidence":{"maximum":1,"minimum":0,"type":"number"},"minimumMargin":{"maximum":1,"minimum":0,"type":"number"},"sampleRadiusRatio":{"maximum":1,"minimum":0,"type":"number"},"workingDpi":{"maximum":600,"minimum":120,"type":"integer"}},"required":["workingDpi","fillThreshold","blankThreshold","minimumMargin","sampleRadiusRatio","minimumAlignmentConfidence","autoAcceptConfidence","denoise"],"type":"object"},"rescorePending":{"type":"boolean"},"rescoreRequestedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"sections":{"items":{"additionalProperties":false,"properties":{"color":{"maxLength":9,"nullable":true,"type":"string"},"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"firstQuestion":{"maximum":2000,"minimum":1,"type":"integer"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"lastQuestion":{"maximum":2000,"minimum":1,"type":"integer"},"name":{"maxLength":80,"minLength":1,"type":"string"},"scoring":{"additionalProperties":false,"nullable":true,"properties":{"blankPoints":{"maximum":1000,"minimum":-1000,"type":"number"},"cancelledPolicy":{"enum":["CORRECT_FOR_ALL","EXCLUDE"],"type":"string"},"clampNegativeToZero":{"type":"boolean"},"correctPoints":{"maximum":1000,"minimum":0,"type":"number"},"multipleMarkPolicy":{"enum":["WRONG","BLANK","REVIEW"],"type":"string"},"normalizeTo100":{"type":"boolean"},"penaltyMode":{"enum":["NONE","PER_WRONG","WRONG_RATIO"],"type":"string"},"wrongPenalty":{"maximum":1000,"minimum":0,"type":"number"},"wrongRatio":{"maximum":20,"minimum":1,"type":"number"}},"required":["correctPoints","penaltyMode","wrongPenalty","wrongRatio","blankPoints","multipleMarkPolicy","cancelledPolicy","clampNegativeToZero","normalizeTo100"],"type":"object"},"weight":{"maximum":100,"minimum":0,"type":"number"}},"required":["id","name","fieldKey","firstQuestion","lastQuestion","weight","scoring","color"],"type":"object"},"type":"array"},"stats":{"additionalProperties":false,"properties":{"averageScore":{"nullable":true,"type":"number"},"failedSheets":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"highestScore":{"nullable":true,"type":"number"},"lowestScore":{"nullable":true,"type":"number"},"needsReviewSheets":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"processedSheets":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"totalSheets":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["totalSheets","processedSheets","failedSheets","needsReviewSheets","averageScore","highestScore","lowestScore"],"type":"object"},"status":{"enum":["DRAFT","READY","COLLECTING","CLOSED","ARCHIVED"],"type":"string"},"templateId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"templateName":{"nullable":true,"type":"string"},"topics":{"items":{"additionalProperties":false,"properties":{"color":{"maxLength":9,"nullable":true,"type":"string"},"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"name":{"maxLength":120,"minLength":1,"type":"string"},"questions":{"items":{"maximum":2000,"minimum":1,"type":"integer"},"maxItems":2000,"minItems":1,"type":"array"}},"required":["id","name","fieldKey","questions","color"],"type":"object"},"type":"array"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"version":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["id","organizationId","templateId","templateName","name","description","code","status","version","bookletCodes","questionCount","examDate","stats","createdAt","updatedAt","deletedAt","createdBy","document","documentFrozenAt","rescorePending","rescoreRequestedAt","defaultScoring","passMark","recognitionSettings","sections","topics","answerKeys"],"type":"object"}}},"description":"OK"}},"summary":"Takes a deleted project back before the purge removes it","tags":["Projects"]}},"/api/v1/projects/{id}/status":{"post":{"operationId":"projectsTransition","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"status":{"enum":["DRAFT","READY","COLLECTING","CLOSED","ARCHIVED"],"type":"string"}},"required":["status"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"answerKeys":{"items":{"additionalProperties":false,"properties":{"answers":{"additionalProperties":{"anyOf":[{"maximum":25,"minimum":0,"type":"integer"},{"items":{"maximum":25,"minimum":0,"type":"integer"},"maxItems":26,"minItems":1,"type":"array"}],"nullable":true},"type":"object"},"bookletCode":{"maxLength":4,"minLength":1,"type":"string"},"cancelledQuestions":{"items":{"maximum":2000,"minimum":1,"type":"integer"},"maxItems":2000,"type":"array"},"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"questionMap":{"additionalProperties":{"maximum":2000,"minimum":1,"type":"integer"},"default":{},"type":"object"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},"required":["bookletCode","fieldKey","answers","cancelledQuestions","questionMap"],"type":"object"},"type":"array"},"bookletCodes":{"items":{"type":"string"},"type":"array"},"code":{"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"createdBy":{"additionalProperties":false,"nullable":true,"properties":{"displayName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["id","displayName"],"type":"object"},"defaultScoring":{"additionalProperties":false,"properties":{"blankPoints":{"maximum":1000,"minimum":-1000,"type":"number"},"cancelledPolicy":{"enum":["CORRECT_FOR_ALL","EXCLUDE"],"type":"string"},"clampNegativeToZero":{"type":"boolean"},"correctPoints":{"maximum":1000,"minimum":0,"type":"number"},"multipleMarkPolicy":{"enum":["WRONG","BLANK","REVIEW"],"type":"string"},"normalizeTo100":{"type":"boolean"},"penaltyMode":{"enum":["NONE","PER_WRONG","WRONG_RATIO"],"type":"string"},"wrongPenalty":{"maximum":1000,"minimum":0,"type":"number"},"wrongRatio":{"maximum":20,"minimum":1,"type":"number"}},"required":["correctPoints","penaltyMode","wrongPenalty","wrongRatio","blankPoints","multipleMarkPolicy","cancelledPolicy","clampNegativeToZero","normalizeTo100"],"type":"object"},"deletedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"description":{"type":"string"},"document":{"additionalProperties":false,"properties":{"editorGrid":{"additionalProperties":false,"properties":{"color":{"type":"string"},"size":{"maximum":50,"minimum":0.5,"type":"number"},"snap":{"maximum":50,"minimum":0,"type":"number"},"style":{"enum":["NONE","DOTS","LINES"],"type":"string"}},"required":["style","size","snap","color"],"type":"object"},"elements":{"items":{"oneOf":[{"additionalProperties":false,"properties":{"autoShrink":{"type":"boolean"},"background":{"nullable":true,"type":"string"},"border":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"padding":{"additionalProperties":false,"properties":{"bottom":{"maximum":200,"minimum":0,"type":"number"},"left":{"maximum":200,"minimum":0,"type":"number"},"right":{"maximum":200,"minimum":0,"type":"number"},"top":{"maximum":200,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"text":{"maxLength":4000,"type":"string"},"type":{"enum":["TEXT"],"type":"string"},"typography":{"additionalProperties":false,"properties":{"align":{"enum":["LEFT","CENTER","RIGHT","JUSTIFY"],"type":"string"},"color":{"type":"string"},"family":{"enum":["SANS","SANS_CONDENSED","SERIF","MONO"],"type":"string"},"italic":{"type":"boolean"},"letterSpacing":{"maximum":20,"minimum":-5,"type":"number"},"lineHeight":{"maximum":4,"minimum":0.7,"type":"number"},"size":{"maximum":400,"minimum":1,"type":"number"},"underline":{"type":"boolean"},"verticalAlign":{"enum":["TOP","MIDDLE","BOTTOM"],"type":"string"},"weight":{"anyOf":[{"enum":[400],"type":"number"},{"enum":[700],"type":"number"}]}},"required":["family","size","weight","italic","underline","align","verticalAlign","lineHeight","letterSpacing","color"],"type":"object"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","text","typography","padding","background","border","autoShrink"],"type":"object"},{"additionalProperties":false,"properties":{"assetId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"border":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"fit":{"enum":["CONTAIN","COVER","FILL"],"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"reference":{"default":false,"type":"boolean"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"type":{"enum":["IMAGE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","assetId","fit","border","reference"],"type":"object"},{"additionalProperties":false,"properties":{"fill":{"nullable":true,"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"radius":{"maximum":100,"minimum":0,"type":"number"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"type":{"enum":["RECT"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","fill","stroke","radius"],"type":"object"},{"additionalProperties":false,"properties":{"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"type":{"enum":["LINE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","stroke"],"type":"object"},{"additionalProperties":false,"properties":{"background":{"type":"string"},"customValue":{"maxLength":512,"nullable":true,"type":"string"},"errorCorrection":{"enum":["L","M","Q","H"],"type":"string"},"foreground":{"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"quietZone":{"maximum":8,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"source":{"enum":["SHEET_TOKEN","PROJECT_CODE","CUSTOM"],"type":"string"},"type":{"enum":["QR"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","source","customValue","errorCorrection","quietZone","foreground","background"],"type":"object"},{"additionalProperties":false,"properties":{"background":{"type":"string"},"customValue":{"maxLength":128,"nullable":true,"type":"string"},"foreground":{"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"quietZone":{"maximum":20,"minimum":0,"type":"number"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"showText":{"type":"boolean"},"source":{"enum":["SHEET_TOKEN","PROJECT_CODE","CUSTOM"],"type":"string"},"symbology":{"enum":["CODE128","CODE39","EAN13","ITF14"],"type":"string"},"type":{"enum":["BARCODE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","symbology","source","customValue","showText","quietZone","foreground","background"],"type":"object"},{"additionalProperties":false,"properties":{"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"itemCount":{"maximum":500,"minimum":1,"type":"integer"},"labels":{"additionalProperties":false,"properties":{"color":{"type":"string"},"custom":{"items":{"maxLength":40,"type":"string"},"maxItems":40,"type":"array"},"itemGutter":{"maximum":150,"minimum":0,"type":"number"},"itemTexts":{"default":[],"items":{"maxLength":160,"type":"string"},"maxItems":500,"type":"array"},"kind":{"enum":["LETTERS","TR_LETTERS","DIGITS","CUSTOM","NONE"],"type":"string"},"numberWidth":{"default":0,"maximum":4,"minimum":0,"type":"integer"},"optionGutter":{"maximum":60,"minimum":0,"type":"number"},"showItemNumbers":{"type":"boolean"},"showOptionLabels":{"type":"boolean"},"size":{"maximum":48,"minimum":1,"type":"number"}},"required":["kind","custom","showItemNumbers","numberWidth","itemGutter","itemTexts","showOptionLabels","optionGutter","size","color"],"type":"object"},"layout":{"additionalProperties":false,"properties":{"blockGap":{"maximum":100,"minimum":0,"type":"number"},"blocks":{"maximum":20,"minimum":1,"type":"integer"},"bubble":{"additionalProperties":false,"properties":{"shape":{"enum":["CIRCLE","SQUARE","ROUNDED","ELLIPSE"],"type":"string"},"size":{"maximum":15,"minimum":2,"type":"number"}},"required":["shape","size"],"type":"object"},"direction":{"enum":["VERTICAL","HORIZONTAL"],"type":"string"},"flow":{"enum":["COLUMN_MAJOR","ROW_MAJOR"],"type":"string"},"itemGap":{"maximum":50,"minimum":0,"type":"number"},"optionGap":{"maximum":50,"minimum":0,"type":"number"},"padding":{"additionalProperties":false,"properties":{"bottom":{"maximum":200,"minimum":0,"type":"number"},"left":{"maximum":200,"minimum":0,"type":"number"},"right":{"maximum":200,"minimum":0,"type":"number"},"top":{"maximum":200,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"}},"required":["direction","flow","blocks","blockGap","bubble","itemGap","optionGap","padding"],"type":"object"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"optionCount":{"maximum":40,"minimum":2,"type":"integer"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"placement":{"additionalProperties":false,"default":null,"nullable":true,"properties":{"items":{"items":{"additionalProperties":false,"properties":{"options":{"items":{"additionalProperties":false,"properties":{"height":{"maximum":200,"minimum":1,"type":"number"},"width":{"maximum":200,"minimum":1,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"maxItems":40,"minItems":2,"type":"array"},"pageIndex":{"maximum":15,"minimum":0,"type":"integer"}},"required":["pageIndex","options"],"type":"object"},"maxItems":500,"minItems":1,"type":"array"}},"required":["items"],"type":"object"},"role":{"enum":["ANSWERS","STUDENT_ID","BOOKLET","TEXT_FIELD","CUSTOM"],"type":"string"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"startIndex":{"maximum":9999,"minimum":0,"type":"integer"},"style":{"additionalProperties":false,"properties":{"background":{"nullable":true,"type":"string"},"border":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"bubbleFill":{"nullable":true,"type":"string"},"bubbleStroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"insideLabelColor":{"default":"#5C6879","type":"string"},"labelInsideBubble":{"type":"boolean"},"rowStripe":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"primary":{"type":"string"},"secondary":{"type":"string"}},"required":["enabled","primary","secondary"],"type":"object"},"separators":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke"],"type":"object"}},"required":["bubbleStroke","bubbleFill","labelInsideBubble","insideLabelColor","border","background","rowStripe","separators"],"type":"object"},"type":{"enum":["BUBBLE_GRID"],"type":"string"},"writeBoxes":{"additionalProperties":false,"default":{"enabled":false,"gap":1.6,"height":7,"stroke":{"color":"#111827","style":"SOLID","width":0.3}},"properties":{"enabled":{"type":"boolean"},"gap":{"default":0,"maximum":20,"minimum":0,"type":"number"},"height":{"maximum":40,"minimum":3,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","height","gap","stroke"],"type":"object"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","role","fieldKey","itemCount","optionCount","startIndex","labels","writeBoxes","layout","style","placement"],"type":"object"}]},"maxItems":500,"type":"array"},"page":{"additionalProperties":false,"properties":{"background":{"type":"string"},"format":{"enum":["A3","A4","A5","LETTER","LEGAL","CUSTOM"],"type":"string"},"height":{"maximum":2000,"minimum":50,"type":"number"},"margins":{"additionalProperties":false,"properties":{"bottom":{"maximum":2000,"minimum":0,"type":"number"},"left":{"maximum":2000,"minimum":0,"type":"number"},"right":{"maximum":2000,"minimum":0,"type":"number"},"top":{"maximum":2000,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"},"orientation":{"enum":["PORTRAIT","LANDSCAPE"],"type":"string"},"width":{"maximum":2000,"minimum":50,"type":"number"}},"required":["format","orientation","width","height","margins","background"],"type":"object"},"pageCount":{"default":1,"maximum":16,"minimum":1,"type":"integer"},"registration":{"additionalProperties":false,"properties":{"corners":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"inset":{"maximum":40,"minimum":2,"type":"number"},"shape":{"enum":["SQUARE","CIRCLE"],"type":"string"},"size":{"maximum":20,"minimum":3,"type":"number"}},"required":["enabled","size","inset","shape"],"type":"object"},"timing":{"additionalProperties":false,"properties":{"edge":{"enum":["LEFT","RIGHT","BOTH"],"type":"string"},"enabled":{"type":"boolean"},"gap":{"maximum":20,"minimum":1,"type":"number"},"height":{"maximum":10,"minimum":1,"type":"number"},"inset":{"maximum":40,"minimum":0,"type":"number"},"offsetBottom":{"maximum":200,"minimum":0,"type":"number"},"offsetTop":{"maximum":200,"minimum":0,"type":"number"},"width":{"maximum":20,"minimum":2,"type":"number"}},"required":["enabled","edge","width","height","gap","inset","offsetTop","offsetBottom"],"type":"object"}},"required":["corners","timing"],"type":"object"},"schemaVersion":{"enum":[1],"type":"number"},"source":{"default":"DESIGNED","enum":["DESIGNED","EXTERNAL"],"type":"string"}},"required":["schemaVersion","source","page","registration","editorGrid","pageCount","elements"],"type":"object"},"documentFrozenAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"examDate":{"description":"The exam's day, as the moment it begins in the organization's time zone — 2026-04-15T00:00:00+03:00 for 15 April in Istanbul. Shown as that day in the organization's zone; midnight UTC is the day before anywhere west of Greenwich.","format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"name":{"type":"string"},"organizationId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"passMark":{"exclusiveMinimum":true,"maximum":100,"minimum":0,"nullable":true,"type":"number"},"questionCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"recognitionSettings":{"additionalProperties":false,"properties":{"autoAcceptConfidence":{"maximum":1,"minimum":0,"type":"number"},"blankThreshold":{"maximum":1,"minimum":0,"type":"number"},"denoise":{"type":"boolean"},"fillThreshold":{"maximum":1,"minimum":0,"type":"number"},"minimumAlignmentConfidence":{"maximum":1,"minimum":0,"type":"number"},"minimumMargin":{"maximum":1,"minimum":0,"type":"number"},"sampleRadiusRatio":{"maximum":1,"minimum":0,"type":"number"},"workingDpi":{"maximum":600,"minimum":120,"type":"integer"}},"required":["workingDpi","fillThreshold","blankThreshold","minimumMargin","sampleRadiusRatio","minimumAlignmentConfidence","autoAcceptConfidence","denoise"],"type":"object"},"rescorePending":{"type":"boolean"},"rescoreRequestedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"sections":{"items":{"additionalProperties":false,"properties":{"color":{"maxLength":9,"nullable":true,"type":"string"},"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"firstQuestion":{"maximum":2000,"minimum":1,"type":"integer"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"lastQuestion":{"maximum":2000,"minimum":1,"type":"integer"},"name":{"maxLength":80,"minLength":1,"type":"string"},"scoring":{"additionalProperties":false,"nullable":true,"properties":{"blankPoints":{"maximum":1000,"minimum":-1000,"type":"number"},"cancelledPolicy":{"enum":["CORRECT_FOR_ALL","EXCLUDE"],"type":"string"},"clampNegativeToZero":{"type":"boolean"},"correctPoints":{"maximum":1000,"minimum":0,"type":"number"},"multipleMarkPolicy":{"enum":["WRONG","BLANK","REVIEW"],"type":"string"},"normalizeTo100":{"type":"boolean"},"penaltyMode":{"enum":["NONE","PER_WRONG","WRONG_RATIO"],"type":"string"},"wrongPenalty":{"maximum":1000,"minimum":0,"type":"number"},"wrongRatio":{"maximum":20,"minimum":1,"type":"number"}},"required":["correctPoints","penaltyMode","wrongPenalty","wrongRatio","blankPoints","multipleMarkPolicy","cancelledPolicy","clampNegativeToZero","normalizeTo100"],"type":"object"},"weight":{"maximum":100,"minimum":0,"type":"number"}},"required":["id","name","fieldKey","firstQuestion","lastQuestion","weight","scoring","color"],"type":"object"},"type":"array"},"stats":{"additionalProperties":false,"properties":{"averageScore":{"nullable":true,"type":"number"},"failedSheets":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"highestScore":{"nullable":true,"type":"number"},"lowestScore":{"nullable":true,"type":"number"},"needsReviewSheets":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"processedSheets":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"totalSheets":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["totalSheets","processedSheets","failedSheets","needsReviewSheets","averageScore","highestScore","lowestScore"],"type":"object"},"status":{"enum":["DRAFT","READY","COLLECTING","CLOSED","ARCHIVED"],"type":"string"},"templateId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"templateName":{"nullable":true,"type":"string"},"topics":{"items":{"additionalProperties":false,"properties":{"color":{"maxLength":9,"nullable":true,"type":"string"},"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"name":{"maxLength":120,"minLength":1,"type":"string"},"questions":{"items":{"maximum":2000,"minimum":1,"type":"integer"},"maxItems":2000,"minItems":1,"type":"array"}},"required":["id","name","fieldKey","questions","color"],"type":"object"},"type":"array"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"version":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["id","organizationId","templateId","templateName","name","description","code","status","version","bookletCodes","questionCount","examDate","stats","createdAt","updatedAt","deletedAt","createdBy","document","documentFrozenAt","rescorePending","rescoreRequestedAt","defaultScoring","passMark","recognitionSettings","sections","topics","answerKeys"],"type":"object"}}},"description":"OK"}},"summary":"Changes the project status","tags":["Projects"]}},"/api/v1/projects/{projectId}/analytics":{"get":{"description":"Score distribution, section averages, class and outcome breakdowns, and per-question item analysis (difficulty and discrimination indices).","operationId":"analyticsForProject","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"averageScore":{"nullable":true,"type":"number"},"classBreakdown":{"items":{"additionalProperties":false,"properties":{"average":{"nullable":true,"type":"number"},"className":{"type":"string"},"expected":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"highest":{"nullable":true,"type":"number"},"lowest":{"nullable":true,"type":"number"},"median":{"nullable":true,"type":"number"},"passed":{"maximum":9007199254740991,"minimum":0,"nullable":true,"type":"integer"},"scored":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"sections":{"items":{"additionalProperties":false,"properties":{"average":{"nullable":true,"type":"number"},"sectionId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["sectionId","average"],"type":"object"},"type":"array"}},"required":["className","expected","scored","average","median","highest","lowest","passed","sections"],"type":"object"},"type":"array"},"computedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"highestScore":{"nullable":true,"type":"number"},"histogram":{"items":{"additionalProperties":false,"properties":{"bucket":{"type":"string"},"count":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"from":{"type":"number"},"to":{"type":"number"}},"required":["bucket","from","to","count"],"type":"object"},"type":"array"},"lowestScore":{"nullable":true,"type":"number"},"medianScore":{"nullable":true,"type":"number"},"passMark":{"nullable":true,"type":"number"},"passedCount":{"maximum":9007199254740991,"minimum":0,"nullable":true,"type":"integer"},"projectId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"questions":{"items":{"additionalProperties":false,"properties":{"acceptedOptions":{"items":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"type":"array"},"blankCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"booklets":{"items":{"additionalProperties":false,"properties":{"acceptedOptions":{"items":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"type":"array"},"bookletCode":{"type":"string"},"optionDistribution":{"items":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"type":"array"}},"required":["bookletCode","optionDistribution","acceptedOptions"],"type":"object"},"type":"array"},"correctCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"difficultyIndex":{"maximum":1,"minimum":0,"type":"number"},"discriminationIndex":{"maximum":1,"minimum":-1,"type":"number"},"fieldKey":{"type":"string"},"optionDistribution":{"items":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"type":"array"},"optionLabels":{"items":{"type":"string"},"type":"array"},"question":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"sectionId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"wrongCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["fieldKey","question","sectionId","correctCount","wrongCount","blankCount","difficultyIndex","discriminationIndex","optionDistribution","acceptedOptions","optionLabels"],"type":"object"},"type":"array"},"reliability":{"additionalProperties":false,"properties":{"itemCount":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"kr20":{"maximum":1,"minimum":0,"nullable":true,"type":"number"},"sheetCount":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"standardError":{"minimum":0,"nullable":true,"type":"number"}},"required":["kr20","standardError","itemCount","sheetCount"],"type":"object"},"scoredSheets":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"sectionAverages":{"items":{"additionalProperties":false,"properties":{"average":{"type":"number"},"maxScore":{"minimum":0,"type":"number"},"questionCount":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"sectionId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"sectionName":{"type":"string"}},"required":["sectionId","sectionName","average","questionCount","maxScore"],"type":"object"},"type":"array"},"standardDeviation":{"nullable":true,"type":"number"},"topicBreakdown":{"default":[],"items":{"additionalProperties":false,"properties":{"blankCount":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"correctCount":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"fieldKey":{"type":"string"},"mastery":{"maximum":1,"minimum":0,"nullable":true,"type":"number"},"name":{"type":"string"},"questionCount":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"topicId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"wrongCount":{"maximum":9007199254740991,"minimum":0,"type":"integer"}},"required":["topicId","name","fieldKey","questionCount","correctCount","wrongCount","blankCount","mastery"],"type":"object"},"type":"array"},"totalSheets":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["projectId","totalSheets","scoredSheets","averageScore","medianScore","standardDeviation","highestScore","lowestScore","passMark","passedCount","histogram","sectionAverages","questions","classBreakdown","topicBreakdown","reliability","computedAt"],"type":"object"}}},"description":"OK"}},"summary":"The exam analysis","tags":["Analytics"]}},"/api/v1/projects/{projectId}/exports/attendance":{"get":{"operationId":"exportsAttendance","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}},{"in":"query","name":"format","required":false,"schema":{"default":"XLSX","enum":["CSV","XLSX"],"type":"string"}},{"in":"query","name":"state","required":false,"schema":{"enum":["MATCHED","ABSENT","DUPLICATE"],"type":"string"}},{"in":"query","name":"className","required":false,"schema":{"maxLength":64,"minLength":1,"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"schema":{"format":"binary","type":"string"}},"text/csv":{"schema":{"format":"binary","type":"string"}}},"description":"The attendance list"}},"summary":"Downloads the attendance list as XLSX or CSV","tags":["Exports"]}},"/api/v1/projects/{projectId}/exports/report-cards":{"get":{"operationId":"exportsReportCardsPdf","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}},{"in":"query","name":"sheetId","required":false,"schema":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},{"in":"query","name":"bookletCode","required":false,"schema":{"maxLength":4,"type":"string"}},{"in":"query","name":"className","required":false,"schema":{"maxLength":64,"type":"string"}},{"in":"query","name":"passed","required":false,"schema":{"anyOf":[{"type":"boolean"},{"enum":["0","1","true","false"],"type":"string"}]}},{"in":"query","name":"includeAnswers","required":false,"schema":{"anyOf":[{"type":"boolean"},{"enum":["0","1","true","false"],"type":"string"}]}},{"in":"query","name":"includeRanks","required":false,"schema":{"anyOf":[{"type":"boolean"},{"enum":["0","1","true","false"],"type":"string"}]}},{"in":"query","name":"onlyReviewed","required":false,"schema":{"anyOf":[{"type":"boolean"},{"enum":["0","1","true","false"],"type":"string"}]}},{"in":"query","name":"offset","required":false,"schema":{"maximum":9007199254740991,"minimum":0,"type":"integer"}},{"in":"query","name":"limit","required":false,"schema":{"maximum":500,"minimum":1,"type":"integer"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/pdf":{"schema":{"format":"binary","type":"string"}}},"description":"The report cards: the whole run, or the part asked for with `offset` and `limit`","headers":{"X-Run-Version":{"description":"The state of the results the cards were drawn from. Parts with different values come from different states — a sheet read or a key saved between the requests — and do not make one run: ask for every part again.","schema":{"type":"string"}},"X-Total-Count":{"description":"How many cards the whole run holds","schema":{"type":"integer"}}}}},"summary":"Downloads student report cards as PDF","tags":["Exports"]}},"/api/v1/projects/{projectId}/exports/results":{"get":{"operationId":"exportsResults","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}},{"in":"query","name":"format","required":false,"schema":{"default":"XLSX","enum":["CSV","XLSX","JSON"],"type":"string"}},{"in":"query","name":"includeAnswers","required":false,"schema":{"anyOf":[{"type":"boolean"},{"enum":["0","1","true","false"],"type":"string"}]}},{"in":"query","name":"includeSections","required":false,"schema":{"anyOf":[{"type":"boolean"},{"enum":["0","1","true","false"],"type":"string"}]}},{"in":"query","name":"onlyReviewed","required":false,"schema":{"anyOf":[{"type":"boolean"},{"enum":["0","1","true","false"],"type":"string"}]}},{"in":"query","name":"bookletCode","required":false,"schema":{"type":"string"}},{"in":"query","name":"className","required":false,"schema":{"maxLength":64,"type":"string"}},{"in":"query","name":"passed","required":false,"schema":{"anyOf":[{"type":"boolean"},{"enum":["0","1","true","false"],"type":"string"}]}},{"in":"query","name":"orderBy","required":false,"schema":{"default":"rank","enum":["rank","class"],"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"format":"binary","type":"string"}},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"schema":{"format":"binary","type":"string"}},"text/csv":{"schema":{"format":"binary","type":"string"}}},"description":"The results file"}},"summary":"Downloads the results as XLSX, CSV or JSON","tags":["Exports"]}},"/api/v1/projects/{projectId}/exports/summary":{"get":{"operationId":"exportsSummary","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/pdf":{"schema":{"format":"binary","type":"string"}}},"description":"The exam summary"}},"summary":"Downloads the exam summary as a PDF","tags":["Exports"]}},"/api/v1/projects/{projectId}/print-runs":{"get":{"operationId":"printRunsList","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"additionalProperties":false,"properties":{"bookletCodes":{"items":{"type":"string"},"type":"array"},"classNames":{"items":{"type":"string"},"type":"array"},"completedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"copies":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"downloadUrl":{"nullable":true,"type":"string"},"failureReason":{"nullable":true,"type":"string"},"format":{"enum":["PDF","PNG"],"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"includeAnswerKeyOverlay":{"type":"boolean"},"numbersNotPrinted":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"outputRemoved":{"enum":["RETENTION","ERASURE"],"nullable":true,"type":"string"},"pageCount":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"personalized":{"type":"boolean"},"projectId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"sheetCount":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"status":{"enum":["QUEUED","RENDERING","COMPLETED","FAILED"],"type":"string"}},"required":["id","projectId","status","format","copies","bookletCodes","personalized","classNames","includeAnswerKeyOverlay","sheetCount","pageCount","downloadUrl","outputRemoved","failureReason","createdAt","completedAt"],"type":"object"},"type":"array"}}},"description":"OK"}},"summary":"Lists the project's print jobs","tags":["Printing"]},"post":{"description":"Every page carries a unique sheet token. Generation happens on a queue; poll with the returned id for status and the download link.","operationId":"printRunsCreate","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"bookletCodes":{"items":{"type":"string"},"maxItems":8,"type":"array"},"classNames":{"items":{"maxLength":64,"minLength":1,"type":"string"},"maxItems":50,"type":"array"},"copies":{"default":1,"maximum":5000,"minimum":1,"type":"integer"},"dpi":{"default":300,"maximum":600,"minimum":72,"type":"integer"},"format":{"default":"PDF","enum":["PDF","PNG"],"type":"string"},"includeAnswerKeyOverlay":{"default":false,"type":"boolean"},"personalized":{"default":false,"type":"boolean"},"studentNumbers":{"items":{"maxLength":32,"minLength":1,"type":"string"},"maxItems":500,"minItems":1,"type":"array"}},"type":"object"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"bookletCodes":{"items":{"type":"string"},"type":"array"},"classNames":{"items":{"type":"string"},"type":"array"},"completedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"copies":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"downloadUrl":{"nullable":true,"type":"string"},"failureReason":{"nullable":true,"type":"string"},"format":{"enum":["PDF","PNG"],"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"includeAnswerKeyOverlay":{"type":"boolean"},"numbersNotPrinted":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"outputRemoved":{"enum":["RETENTION","ERASURE"],"nullable":true,"type":"string"},"pageCount":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"personalized":{"type":"boolean"},"projectId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"sheetCount":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"status":{"enum":["QUEUED","RENDERING","COMPLETED","FAILED"],"type":"string"}},"required":["id","projectId","status","format","copies","bookletCodes","personalized","classNames","includeAnswerKeyOverlay","sheetCount","pageCount","downloadUrl","outputRemoved","failureReason","createdAt","completedAt"],"type":"object"}}},"description":"The print job, queued"}},"summary":"Generates the answer sheet as a vector PDF","tags":["Printing"]}},"/api/v1/projects/{projectId}/print-runs/{printRunId}":{"delete":{"description":"Refused while the run is rendering, and for a run whose papers have been scanned: those sheets know their booklet and student through it.","operationId":"printRunsRemove","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}},{"in":"path","name":"printRunId","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"No content"}},"summary":"Removes a print run and its PDF","tags":["Printing"]},"get":{"operationId":"printRunsGet","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}},{"in":"path","name":"printRunId","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"bookletCodes":{"items":{"type":"string"},"type":"array"},"classNames":{"items":{"type":"string"},"type":"array"},"completedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"copies":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"downloadUrl":{"nullable":true,"type":"string"},"failureReason":{"nullable":true,"type":"string"},"format":{"enum":["PDF","PNG"],"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"includeAnswerKeyOverlay":{"type":"boolean"},"numbersNotPrinted":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"outputRemoved":{"enum":["RETENTION","ERASURE"],"nullable":true,"type":"string"},"pageCount":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"personalized":{"type":"boolean"},"projectId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"sheetCount":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"status":{"enum":["QUEUED","RENDERING","COMPLETED","FAILED"],"type":"string"}},"required":["id","projectId","status","format","copies","bookletCodes","personalized","classNames","includeAnswerKeyOverlay","sheetCount","pageCount","downloadUrl","outputRemoved","failureReason","createdAt","completedAt"],"type":"object"}}},"description":"OK"}},"summary":"The print job's status and download link","tags":["Printing"]}},"/api/v1/projects/{projectId}/results":{"get":{"description":"One row per scored sheet with the correct/wrong/blank counts, the net, the score, the competition rank and the class rank. Filterable by booklet and class.","operationId":"resultsList","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}},{"in":"query","name":"page","required":false,"schema":{"default":1,"maximum":10000,"minimum":1,"type":"integer"}},{"in":"query","name":"pageSize","required":false,"schema":{"default":20,"maximum":100,"minimum":1,"type":"integer"}},{"in":"query","name":"search","required":false,"schema":{"maxLength":200,"type":"string"}},{"in":"query","name":"sortBy","required":false,"schema":{"default":"rank","enum":["rank","studentId","studentName","className","net","score"],"type":"string"}},{"in":"query","name":"sortDir","required":false,"schema":{"default":"asc","enum":["asc","desc"],"type":"string"}},{"in":"query","name":"bookletCode","required":false,"schema":{"type":"string"}},{"in":"query","name":"className","required":false,"schema":{"maxLength":64,"type":"string"}},{"in":"query","name":"onlyReviewed","required":false,"schema":{"anyOf":[{"type":"boolean"},{"enum":["0","1","true","false"],"type":"string"}]}},{"in":"query","name":"passed","required":false,"schema":{"anyOf":[{"type":"boolean"},{"enum":["0","1","true","false"],"type":"string"}]}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"classes":{"items":{"type":"string"},"type":"array"},"items":{"items":{"additionalProperties":false,"properties":{"batchId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"blank":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"bookletCode":{"nullable":true,"type":"string"},"cancelled":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"className":{"nullable":true,"type":"string"},"classRank":{"exclusiveMinimum":true,"maximum":9007199254740991,"minimum":0,"nullable":true,"type":"integer"},"classTotal":{"maximum":9007199254740991,"minimum":0,"nullable":true,"type":"integer"},"computedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"confidence":{"maximum":1,"minimum":0,"nullable":true,"type":"number"},"correct":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"externalId":{"nullable":true,"type":"string"},"fileName":{"type":"string"},"invalid":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"net":{"type":"number"},"passed":{"nullable":true,"type":"boolean"},"percent":{"nullable":true,"type":"number"},"rank":{"exclusiveMinimum":true,"maximum":9007199254740991,"minimum":0,"type":"integer"},"rankTotal":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"reviewedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"score":{"type":"number"},"sections":{"items":{"additionalProperties":false,"properties":{"blank":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"cancelled":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"correct":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"invalid":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"net":{"type":"number"},"score":{"type":"number"},"sectionId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"sectionName":{"type":"string"},"total":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"wrong":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["sectionId","sectionName","correct","wrong","blank","invalid","cancelled","total","net","score"],"type":"object"},"type":"array"},"sharesNumber":{"type":"boolean"},"sheetId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"status":{"enum":["PENDING","PROCESSING","PROCESSED","NEEDS_REVIEW","REVIEWED","FAILED"],"type":"string"},"studentId":{"nullable":true,"type":"string"},"studentName":{"nullable":true,"type":"string"},"total":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"warningCount":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"wrong":{"maximum":9007199254740991,"minimum":0,"type":"integer"}},"required":["sheetId","batchId","status","confidence","warningCount","reviewedAt","sharesNumber","studentId","studentName","fileName","className","externalId","bookletCode","correct","wrong","blank","invalid","cancelled","total","net","score","percent","passed","rank","rankTotal","classRank","classTotal","sections","computedAt"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"hasNext":{"type":"boolean"},"hasPrevious":{"type":"boolean"},"page":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"pageSize":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"totalItems":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"totalPages":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["page","pageSize","totalItems","totalPages","hasPrevious","hasNext"],"type":"object"},"passMark":{"nullable":true,"type":"number"},"sectionNames":{"items":{"type":"string"},"type":"array"},"verdicts":{"additionalProperties":false,"nullable":true,"properties":{"failed":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"passed":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["passed","failed"],"type":"object"}},"required":["items","meta","classes","sectionNames","passMark","verdicts"],"type":"object"}}},"description":"OK"}},"summary":"The ranked results of an exam","tags":["Results"]}},"/api/v1/projects/{projectId}/results/survey":{"get":{"description":"For every survey grid on the form, every question with the number of single marks per option, the blanks, the multiple marks and the mean position of the marks (1 for the first option). Counted over every scored sheet; available on every plan.","operationId":"resultsSurvey","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"fields":{"items":{"additionalProperties":false,"properties":{"fieldKey":{"type":"string"},"name":{"type":"string"},"optionLabels":{"items":{"type":"string"},"type":"array"},"questions":{"items":{"additionalProperties":false,"properties":{"blank":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"counts":{"items":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"type":"array"},"mean":{"nullable":true,"type":"number"},"multiple":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"question":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"statement":{"nullable":true,"type":"string"}},"required":["question","statement","counts","blank","multiple","mean"],"type":"object"},"type":"array"}},"required":["fieldKey","name","optionLabels","questions"],"type":"object"},"type":"array"},"responses":{"maximum":9007199254740991,"minimum":0,"type":"integer"}},"required":["responses","fields"],"type":"object"}}},"description":"OK"}},"summary":"The survey grids' answers, counted","tags":["Results"]}},"/api/v1/projects/{projectId}/scan-batches":{"get":{"operationId":"scanningListBatches","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}},{"in":"query","name":"page","required":false,"schema":{"default":1,"maximum":10000,"minimum":1,"type":"integer"}},{"in":"query","name":"pageSize","required":false,"schema":{"default":20,"maximum":100,"minimum":1,"type":"integer"}},{"in":"query","name":"search","required":false,"schema":{"maxLength":200,"type":"string"}},{"in":"query","name":"sortBy","required":false,"schema":{"default":"createdAt","enum":["createdAt","name"],"type":"string"}},{"in":"query","name":"sortDir","required":false,"schema":{"default":"desc","enum":["asc","desc"],"type":"string"}},{"in":"query","name":"status","required":false,"schema":{"enum":["UPLOADING","QUEUED","PROCESSING","COMPLETED","FAILED"],"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"items":{"items":{"additionalProperties":false,"properties":{"completedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"counts":{"additionalProperties":false,"properties":{"failed":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"needsReview":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"pending":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"processed":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"processing":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"total":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["total","pending","processing","processed","needsReview","failed"],"type":"object"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"createdBy":{"additionalProperties":false,"nullable":true,"properties":{"displayName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["id","displayName"],"type":"object"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"name":{"type":"string"},"projectId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"settings":{"additionalProperties":false,"properties":{"autoAcceptConfidence":{"maximum":1,"minimum":0,"type":"number"},"blankThreshold":{"maximum":1,"minimum":0,"type":"number"},"denoise":{"type":"boolean"},"fillThreshold":{"maximum":1,"minimum":0,"type":"number"},"minimumAlignmentConfidence":{"maximum":1,"minimum":0,"type":"number"},"minimumMargin":{"maximum":1,"minimum":0,"type":"number"},"sampleRadiusRatio":{"maximum":1,"minimum":0,"type":"number"},"workingDpi":{"maximum":600,"minimum":120,"type":"integer"}},"required":["workingDpi","fillThreshold","blankThreshold","minimumMargin","sampleRadiusRatio","minimumAlignmentConfidence","autoAcceptConfidence","denoise"],"type":"object"},"startedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"status":{"enum":["UPLOADING","QUEUED","PROCESSING","COMPLETED","FAILED"],"type":"string"}},"required":["id","projectId","name","status","counts","settings","startedAt","completedAt","createdAt","createdBy"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"hasNext":{"type":"boolean"},"hasPrevious":{"type":"boolean"},"page":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"pageSize":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"totalItems":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"totalPages":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["page","pageSize","totalItems","totalPages","hasPrevious","hasNext"],"type":"object"}},"required":["items","meta"],"type":"object"}}},"description":"OK"}},"summary":"Lists scan batches","tags":["Scanning"]},"post":{"operationId":"scanningCreateBatch","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"name":{"maxLength":120,"minLength":1,"type":"string"},"settings":{"properties":{"autoAcceptConfidence":{"maximum":1,"minimum":0,"type":"number"},"blankThreshold":{"maximum":1,"minimum":0,"type":"number"},"denoise":{"type":"boolean"},"fillThreshold":{"maximum":1,"minimum":0,"type":"number"},"minimumAlignmentConfidence":{"maximum":1,"minimum":0,"type":"number"},"minimumMargin":{"maximum":1,"minimum":0,"type":"number"},"sampleRadiusRatio":{"maximum":1,"minimum":0,"type":"number"},"workingDpi":{"maximum":600,"minimum":120,"type":"integer"}},"type":"object"}},"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"completedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"counts":{"additionalProperties":false,"properties":{"failed":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"needsReview":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"pending":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"processed":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"processing":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"total":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["total","pending","processing","processed","needsReview","failed"],"type":"object"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"createdBy":{"additionalProperties":false,"nullable":true,"properties":{"displayName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["id","displayName"],"type":"object"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"name":{"type":"string"},"projectId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"settings":{"additionalProperties":false,"properties":{"autoAcceptConfidence":{"maximum":1,"minimum":0,"type":"number"},"blankThreshold":{"maximum":1,"minimum":0,"type":"number"},"denoise":{"type":"boolean"},"fillThreshold":{"maximum":1,"minimum":0,"type":"number"},"minimumAlignmentConfidence":{"maximum":1,"minimum":0,"type":"number"},"minimumMargin":{"maximum":1,"minimum":0,"type":"number"},"sampleRadiusRatio":{"maximum":1,"minimum":0,"type":"number"},"workingDpi":{"maximum":600,"minimum":120,"type":"integer"}},"required":["workingDpi","fillThreshold","blankThreshold","minimumMargin","sampleRadiusRatio","minimumAlignmentConfidence","autoAcceptConfidence","denoise"],"type":"object"},"startedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"status":{"enum":["UPLOADING","QUEUED","PROCESSING","COMPLETED","FAILED"],"type":"string"}},"required":["id","projectId","name","status","counts","settings","startedAt","completedAt","createdAt","createdBy"],"type":"object"}}},"description":"Created"}},"summary":"Opens a new scan batch","tags":["Scanning"]}},"/api/v1/projects/{projectId}/scan-batches/{batchId}":{"delete":{"operationId":"scanningRemoveBatch","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}},{"in":"path","name":"batchId","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"No content"}},"summary":"Deletes the batch and the sheets inside it","tags":["Scanning"]},"get":{"operationId":"scanningGetBatch","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}},{"in":"path","name":"batchId","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"completedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"counts":{"additionalProperties":false,"properties":{"failed":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"needsReview":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"pending":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"processed":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"processing":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"total":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["total","pending","processing","processed","needsReview","failed"],"type":"object"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"createdBy":{"additionalProperties":false,"nullable":true,"properties":{"displayName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["id","displayName"],"type":"object"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"name":{"type":"string"},"projectId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"settings":{"additionalProperties":false,"properties":{"autoAcceptConfidence":{"maximum":1,"minimum":0,"type":"number"},"blankThreshold":{"maximum":1,"minimum":0,"type":"number"},"denoise":{"type":"boolean"},"fillThreshold":{"maximum":1,"minimum":0,"type":"number"},"minimumAlignmentConfidence":{"maximum":1,"minimum":0,"type":"number"},"minimumMargin":{"maximum":1,"minimum":0,"type":"number"},"sampleRadiusRatio":{"maximum":1,"minimum":0,"type":"number"},"workingDpi":{"maximum":600,"minimum":120,"type":"integer"}},"required":["workingDpi","fillThreshold","blankThreshold","minimumMargin","sampleRadiusRatio","minimumAlignmentConfidence","autoAcceptConfidence","denoise"],"type":"object"},"startedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"status":{"enum":["UPLOADING","QUEUED","PROCESSING","COMPLETED","FAILED"],"type":"string"}},"required":["id","projectId","name","status","counts","settings","startedAt","completedAt","createdAt","createdBy"],"type":"object"}}},"description":"OK"}},"summary":"Batch status and counts","tags":["Scanning"]},"patch":{"operationId":"scanningRenameBatch","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}},{"in":"path","name":"batchId","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"name":{"maxLength":120,"minLength":1,"type":"string"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"completedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"counts":{"additionalProperties":false,"properties":{"failed":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"needsReview":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"pending":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"processed":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"processing":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"total":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["total","pending","processing","processed","needsReview","failed"],"type":"object"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"createdBy":{"additionalProperties":false,"nullable":true,"properties":{"displayName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["id","displayName"],"type":"object"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"name":{"type":"string"},"projectId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"settings":{"additionalProperties":false,"properties":{"autoAcceptConfidence":{"maximum":1,"minimum":0,"type":"number"},"blankThreshold":{"maximum":1,"minimum":0,"type":"number"},"denoise":{"type":"boolean"},"fillThreshold":{"maximum":1,"minimum":0,"type":"number"},"minimumAlignmentConfidence":{"maximum":1,"minimum":0,"type":"number"},"minimumMargin":{"maximum":1,"minimum":0,"type":"number"},"sampleRadiusRatio":{"maximum":1,"minimum":0,"type":"number"},"workingDpi":{"maximum":600,"minimum":120,"type":"integer"}},"required":["workingDpi","fillThreshold","blankThreshold","minimumMargin","sampleRadiusRatio","minimumAlignmentConfidence","autoAcceptConfidence","denoise"],"type":"object"},"startedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"status":{"enum":["UPLOADING","QUEUED","PROCESSING","COMPLETED","FAILED"],"type":"string"}},"required":["id","projectId","name","status","counts","settings","startedAt","completedAt","createdAt","createdBy"],"type":"object"}}},"description":"OK"}},"summary":"Renames the batch","tags":["Scanning"]}},"/api/v1/projects/{projectId}/scan-batches/{batchId}/upload":{"post":{"description":"JPEG, PNG, HEIC/HEIF, TIFF, WebP and PDF are accepted. A multi-page PDF is split into pages, and each page is queued as an independent sheet image.","operationId":"scanningUpload","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}},{"in":"path","name":"batchId","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"multipart/form-data":{"schema":{"properties":{"files":{"items":{"format":"binary","type":"string"},"type":"array"}},"type":"object"}}},"description":"One or more files, each in a part of its own","required":true},"responses":{"202":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"accepted":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"rejected":{"items":{"additionalProperties":false,"properties":{"code":{"enum":["UNSUPPORTED_TYPE","TOO_MANY_PAGES","PAGE_TOO_LARGE","TOO_MANY_PIXELS","UNDECODABLE_HEIC","UNREADABLE","INCOMPLETE_SHEET","SHEET_PAGE_REFUSED","ALREADY_UPLOADED"],"type":"string"},"fileName":{"type":"string"},"params":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]},"type":"object"},"reason":{"type":"string"}},"required":["fileName","code","params","reason"],"type":"object"},"type":"array"}},"required":["accepted","rejected"],"type":"object"}}},"description":"The pages accepted and queued, and the files refused"}},"summary":"Uploads scanned images","tags":["Scanning"]}},"/api/v1/projects/{projectId}/scan-queue":{"get":{"description":"How many worker processes are connected to the recognition queue, and how much is waiting.","operationId":"scanningQueueStatus","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"active":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"queueReachable":{"type":"boolean"},"waiting":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"workersOnline":{"maximum":9007199254740991,"minimum":0,"type":"integer"}},"required":["queueReachable","workersOnline","waiting","active"],"type":"object"}}},"description":"OK"}},"summary":"Whether a reader is running","tags":["Scanning"]}},"/api/v1/projects/{projectId}/sheets":{"get":{"operationId":"scanningListSheets","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}},{"in":"query","name":"page","required":false,"schema":{"default":1,"maximum":10000,"minimum":1,"type":"integer"}},{"in":"query","name":"pageSize","required":false,"schema":{"default":20,"maximum":100,"minimum":1,"type":"integer"}},{"in":"query","name":"search","required":false,"schema":{"maxLength":200,"type":"string"}},{"in":"query","name":"sortBy","required":false,"schema":{"default":"createdAt","enum":["createdAt","studentId","confidence"],"type":"string"}},{"in":"query","name":"sortDir","required":false,"schema":{"default":"desc","enum":["asc","desc"],"type":"string"}},{"in":"query","name":"batchId","required":false,"schema":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},{"in":"query","name":"status","required":false,"schema":{"enum":["PENDING","PROCESSING","PROCESSED","NEEDS_REVIEW","REVIEWED","FAILED"],"type":"string"}},{"in":"query","name":"bookletCode","required":false,"schema":{"type":"string"}},{"in":"query","name":"onlyNeedsReview","required":false,"schema":{"anyOf":[{"type":"boolean"},{"enum":["0","1","true","false"],"type":"string"}]}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"items":{"items":{"additionalProperties":false,"properties":{"batchId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"bookletCode":{"nullable":true,"type":"string"},"confidence":{"maximum":1,"minimum":0,"nullable":true,"type":"number"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"failureReason":{"nullable":true,"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"originalFileName":{"type":"string"},"pageIndex":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"previewUrl":{"nullable":true,"type":"string"},"processedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"projectId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"score":{"nullable":true,"type":"number"},"status":{"enum":["PENDING","PROCESSING","PROCESSED","NEEDS_REVIEW","REVIEWED","FAILED"],"type":"string"},"studentId":{"nullable":true,"type":"string"},"studentName":{"nullable":true,"type":"string"},"thumbnailUrl":{"nullable":true,"type":"string"},"warningCodes":{"items":{"enum":["LOW_ALIGNMENT_CONFIDENCE","CORNER_MARKS_NOT_FOUND","QR_NOT_FOUND","PAGE_SKEWED","IMAGE_TOO_DARK","IMAGE_TOO_BRIGHT","IMAGE_LOW_RESOLUTION","AMBIGUOUS_ITEMS","MULTIPLE_MARKS","BOOKLET_UNREADABLE","STUDENT_ID_UNREADABLE","SHEET_MOSTLY_BLANK","PAGE_ROTATED","ORIENTATION_UNVERIFIED","DUPLICATE_SHEET","LAYOUT_CHANGED_AFTER_PRINT","PRINTED_IDENTITY_MISMATCH","PRINTED_BOOKLET_MISMATCH","SHEET_FROM_ANOTHER_EXAM","ROSTER_NAME_MISMATCH","STUDENT_NOT_IDENTIFIED","PAGES_OUT_OF_ORDER"],"type":"string"},"type":"array"},"warningCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["id","batchId","projectId","originalFileName","pageIndex","status","confidence","bookletCode","studentId","studentName","score","warningCount","warningCodes","failureReason","previewUrl","thumbnailUrl","processedAt","createdAt"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"hasNext":{"type":"boolean"},"hasPrevious":{"type":"boolean"},"page":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"pageSize":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"totalItems":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"totalPages":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["page","pageSize","totalItems","totalPages","hasPrevious","hasNext"],"type":"object"}},"required":["items","meta"],"type":"object"}}},"description":"OK"}},"summary":"Lists scanned sheets","tags":["Scanning"]}},"/api/v1/projects/{projectId}/sheets/reprocess":{"post":{"operationId":"scanningReprocess","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"keepOverrides":{"default":true,"type":"boolean"},"sheetIds":{"items":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"maxItems":1000,"minItems":1,"type":"array"}},"required":["sheetIds"],"type":"object"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"queued":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["queued"],"type":"object"}}},"description":"How many sheets were queued"}},"summary":"Reprocesses the selected sheets","tags":["Scanning"]}},"/api/v1/projects/{projectId}/sheets/{sheetId}":{"delete":{"operationId":"scanningRemoveSheet","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}},{"in":"path","name":"sheetId","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"No content"}},"summary":"Deletes the sheet","tags":["Scanning"]},"get":{"operationId":"scanningGetSheet","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}},{"in":"path","name":"sheetId","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"batchId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"bookletCode":{"nullable":true,"type":"string"},"confidence":{"maximum":1,"minimum":0,"nullable":true,"type":"number"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"failureReason":{"nullable":true,"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"imageUrl":{"nullable":true,"type":"string"},"manual":{"additionalProperties":false,"properties":{"bookletCode":{"nullable":true,"type":"string"},"studentId":{"nullable":true,"type":"string"},"studentName":{"nullable":true,"type":"string"}},"required":["studentId","studentName","bookletCode"],"type":"object"},"originalFileName":{"type":"string"},"overlayUrl":{"nullable":true,"type":"string"},"pageIndex":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"pages":{"items":{"additionalProperties":false,"properties":{"confidence":{"maximum":1,"minimum":0,"nullable":true,"type":"number"},"homography":{"items":{"type":"number"},"maxItems":9,"minItems":9,"nullable":true,"type":"array"},"imageUrl":{"nullable":true,"type":"string"},"overlayUrl":{"nullable":true,"type":"string"},"pageIndex":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"warnings":{"items":{"enum":["LOW_ALIGNMENT_CONFIDENCE","CORNER_MARKS_NOT_FOUND","QR_NOT_FOUND","PAGE_SKEWED","IMAGE_TOO_DARK","IMAGE_TOO_BRIGHT","IMAGE_LOW_RESOLUTION","AMBIGUOUS_ITEMS","MULTIPLE_MARKS","BOOKLET_UNREADABLE","STUDENT_ID_UNREADABLE","SHEET_MOSTLY_BLANK","PAGE_ROTATED","ORIENTATION_UNVERIFIED","DUPLICATE_SHEET","LAYOUT_CHANGED_AFTER_PRINT","PRINTED_IDENTITY_MISMATCH","PRINTED_BOOKLET_MISMATCH","SHEET_FROM_ANOTHER_EXAM","ROSTER_NAME_MISMATCH","STUDENT_NOT_IDENTIFIED","PAGES_OUT_OF_ORDER"],"type":"string"},"type":"array"}},"required":["pageIndex","imageUrl","overlayUrl","confidence","warnings","homography"],"type":"object"},"type":"array"},"previewUrl":{"nullable":true,"type":"string"},"processedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"projectId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"queue":{"additionalProperties":false,"properties":{"nextId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"previousId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"remaining":{"maximum":9007199254740991,"minimum":0,"type":"integer"}},"required":["previousId","nextId","remaining"],"type":"object"},"recognition":{"additionalProperties":false,"nullable":true,"properties":{"alignment":{"additionalProperties":false,"properties":{"confidence":{"maximum":1,"minimum":0,"type":"number"},"detectedCorners":{"items":{"additionalProperties":false,"properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"type":"object"},"maxItems":8,"type":"array"},"homography":{"items":{"type":"number"},"maxItems":9,"minItems":9,"type":"array"},"method":{"enum":["CORNER_MARKS","QR_ANCHOR","PAGE_CONTOUR","FALLBACK_SCALE","PRINTED_CONTENT"],"type":"string"},"rotationDegrees":{"type":"number"},"warnings":{"items":{"enum":["LOW_ALIGNMENT_CONFIDENCE","CORNER_MARKS_NOT_FOUND","QR_NOT_FOUND","PAGE_SKEWED","IMAGE_TOO_DARK","IMAGE_TOO_BRIGHT","IMAGE_LOW_RESOLUTION","AMBIGUOUS_ITEMS","MULTIPLE_MARKS","BOOKLET_UNREADABLE","STUDENT_ID_UNREADABLE","SHEET_MOSTLY_BLANK","PAGE_ROTATED","ORIENTATION_UNVERIFIED","DUPLICATE_SHEET","LAYOUT_CHANGED_AFTER_PRINT","PRINTED_IDENTITY_MISMATCH","PRINTED_BOOKLET_MISMATCH","SHEET_FROM_ANOTHER_EXAM","ROSTER_NAME_MISMATCH","STUDENT_NOT_IDENTIFIED","PAGES_OUT_OF_ORDER"],"type":"string"},"maxItems":50,"type":"array"}},"required":["method","confidence","homography","rotationDegrees","detectedCorners","warnings"],"type":"object"},"confidence":{"maximum":1,"minimum":0,"type":"number"},"durationMs":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"engineVersion":{"type":"string"},"fields":{"items":{"additionalProperties":false,"properties":{"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"items":{"items":{"additionalProperties":false,"properties":{"confidence":{"maximum":1,"minimum":0,"type":"number"},"fills":{"items":{"maximum":1,"minimum":0,"type":"number"},"maxItems":40,"type":"array"},"itemNumber":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"overridden":{"type":"boolean"},"selected":{"items":{"maximum":39,"minimum":0,"type":"integer"},"maxItems":40,"type":"array"},"state":{"enum":["OK","BLANK","MULTIPLE","AMBIGUOUS"],"type":"string"}},"required":["itemNumber","selected","fills","state","confidence","overridden"],"type":"object"},"type":"array"},"optionLabels":{"items":{"type":"string"},"type":"array"},"role":{"type":"string"},"value":{"nullable":true,"type":"string"}},"required":["fieldKey","role","optionLabels","items","value"],"type":"object"},"type":"array"},"overlayKey":{"nullable":true,"type":"string"},"warnings":{"items":{"enum":["LOW_ALIGNMENT_CONFIDENCE","CORNER_MARKS_NOT_FOUND","QR_NOT_FOUND","PAGE_SKEWED","IMAGE_TOO_DARK","IMAGE_TOO_BRIGHT","IMAGE_LOW_RESOLUTION","AMBIGUOUS_ITEMS","MULTIPLE_MARKS","BOOKLET_UNREADABLE","STUDENT_ID_UNREADABLE","SHEET_MOSTLY_BLANK","PAGE_ROTATED","ORIENTATION_UNVERIFIED","DUPLICATE_SHEET","LAYOUT_CHANGED_AFTER_PRINT","PRINTED_IDENTITY_MISMATCH","PRINTED_BOOKLET_MISMATCH","SHEET_FROM_ANOTHER_EXAM","ROSTER_NAME_MISMATCH","STUDENT_NOT_IDENTIFIED","PAGES_OUT_OF_ORDER"],"type":"string"},"type":"array"}},"required":["engineVersion","alignment","fields","warnings","confidence","durationMs","overlayKey"],"type":"object"},"result":{"additionalProperties":false,"nullable":true,"properties":{"answers":{"items":{"additionalProperties":false,"properties":{"canonicalQuestion":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"correct":{"anyOf":[{"maximum":25,"minimum":0,"type":"integer"},{"items":{"maximum":25,"minimum":0,"type":"integer"},"maxItems":26,"minItems":1,"type":"array"}],"nullable":true},"correctLabel":{"nullable":true,"type":"string"},"fieldKey":{"type":"string"},"marked":{"maximum":9007199254740991,"minimum":-9007199254740991,"nullable":true,"type":"integer"},"markedLabel":{"nullable":true,"type":"string"},"outcome":{"enum":["CORRECT","WRONG","BLANK","INVALID","CANCELLED"],"type":"string"},"question":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"sectionId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["fieldKey","question","marked","markedLabel","correct","correctLabel","outcome","sectionId"],"type":"object"},"type":"array"},"blank":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"bookletCode":{"nullable":true,"type":"string"},"cancelled":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"className":{"nullable":true,"type":"string"},"classRank":{"maximum":9007199254740991,"minimum":-9007199254740991,"nullable":true,"type":"integer"},"classTotal":{"maximum":9007199254740991,"minimum":-9007199254740991,"nullable":true,"type":"integer"},"computedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"correct":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"invalid":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"net":{"type":"number"},"passed":{"nullable":true,"type":"boolean"},"percent":{"nullable":true,"type":"number"},"projectId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"rank":{"maximum":9007199254740991,"minimum":-9007199254740991,"nullable":true,"type":"integer"},"rankTotal":{"maximum":9007199254740991,"minimum":-9007199254740991,"nullable":true,"type":"integer"},"score":{"type":"number"},"sections":{"items":{"additionalProperties":false,"properties":{"blank":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"cancelled":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"correct":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"invalid":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"net":{"type":"number"},"score":{"type":"number"},"sectionId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"sectionName":{"type":"string"},"total":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"wrong":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["sectionId","sectionName","correct","wrong","blank","invalid","cancelled","total","net","score"],"type":"object"},"type":"array"},"sheetId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"studentId":{"nullable":true,"type":"string"},"studentName":{"nullable":true,"type":"string"},"surveys":{"default":[],"items":{"additionalProperties":false,"properties":{"fieldKey":{"type":"string"},"question":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"selected":{"items":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"type":"array"},"selectedLabels":{"items":{"type":"string"},"type":"array"}},"required":["fieldKey","question","selected","selectedLabels"],"type":"object"},"type":"array"},"total":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"wrong":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["sheetId","projectId","studentId","studentName","bookletCode","correct","wrong","blank","invalid","cancelled","total","net","score","percent","passed","rank","rankTotal","classRank","classTotal","className","sections","answers","surveys","computedAt"],"type":"object"},"reviewedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"reviewedBy":{"additionalProperties":false,"nullable":true,"properties":{"displayName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["id","displayName"],"type":"object"},"score":{"nullable":true,"type":"number"},"status":{"enum":["PENDING","PROCESSING","PROCESSED","NEEDS_REVIEW","REVIEWED","FAILED"],"type":"string"},"studentId":{"nullable":true,"type":"string"},"studentName":{"nullable":true,"type":"string"},"thumbnailUrl":{"nullable":true,"type":"string"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"warningCodes":{"items":{"enum":["LOW_ALIGNMENT_CONFIDENCE","CORNER_MARKS_NOT_FOUND","QR_NOT_FOUND","PAGE_SKEWED","IMAGE_TOO_DARK","IMAGE_TOO_BRIGHT","IMAGE_LOW_RESOLUTION","AMBIGUOUS_ITEMS","MULTIPLE_MARKS","BOOKLET_UNREADABLE","STUDENT_ID_UNREADABLE","SHEET_MOSTLY_BLANK","PAGE_ROTATED","ORIENTATION_UNVERIFIED","DUPLICATE_SHEET","LAYOUT_CHANGED_AFTER_PRINT","PRINTED_IDENTITY_MISMATCH","PRINTED_BOOKLET_MISMATCH","SHEET_FROM_ANOTHER_EXAM","ROSTER_NAME_MISMATCH","STUDENT_NOT_IDENTIFIED","PAGES_OUT_OF_ORDER"],"type":"string"},"type":"array"},"warningCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["id","batchId","projectId","originalFileName","pageIndex","status","confidence","bookletCode","studentId","studentName","score","warningCount","warningCodes","failureReason","previewUrl","thumbnailUrl","processedAt","createdAt","imageUrl","overlayUrl","pages","recognition","reviewedAt","reviewedBy","updatedAt","manual","result","queue"],"type":"object"}}},"description":"OK"}},"summary":"Sheet detail, recognition result and annotated preview","tags":["Scanning"]}},"/api/v1/projects/{projectId}/sheets/{sheetId}/relocate":{"post":{"description":"For a sheet flagged as printed for another exam: the QR on the stored image names the print, the print names its exam, and the sheet is queued to be read there in a batch of its own. Refused when the QR names no exam of this organization, or the exam it names is the one the sheet is already in.","operationId":"scanningRelocate","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}},{"in":"path","name":"sheetId","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"202":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"batchId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"projectId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"projectName":{"type":"string"},"sheetId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["sheetId","projectId","projectName","batchId"],"type":"object"}}},"description":"Accepted: the work continues in the background"}},"summary":"Moves a sheet to the exam it was printed for","tags":["Scanning"]}},"/api/v1/projects/{projectId}/sheets/{sheetId}/review":{"put":{"operationId":"scanningReview","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"type":"string"}},{"in":"path","name":"sheetId","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"bookletCode":{"nullable":true,"type":"string"},"expectedUpdatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"markReviewed":{"default":true,"type":"boolean"},"overrides":{"default":[],"items":{"properties":{"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"itemNumber":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"selected":{"items":{"maximum":39,"minimum":0,"type":"integer"},"maxItems":40,"type":"array"}},"required":["fieldKey","itemNumber","selected"],"type":"object"},"maxItems":2000,"type":"array"},"studentId":{"maxLength":64,"nullable":true,"type":"string"},"studentName":{"maxLength":160,"nullable":true,"type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"batchId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"bookletCode":{"nullable":true,"type":"string"},"confidence":{"maximum":1,"minimum":0,"nullable":true,"type":"number"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"failureReason":{"nullable":true,"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"imageUrl":{"nullable":true,"type":"string"},"manual":{"additionalProperties":false,"properties":{"bookletCode":{"nullable":true,"type":"string"},"studentId":{"nullable":true,"type":"string"},"studentName":{"nullable":true,"type":"string"}},"required":["studentId","studentName","bookletCode"],"type":"object"},"originalFileName":{"type":"string"},"overlayUrl":{"nullable":true,"type":"string"},"pageIndex":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"pages":{"items":{"additionalProperties":false,"properties":{"confidence":{"maximum":1,"minimum":0,"nullable":true,"type":"number"},"homography":{"items":{"type":"number"},"maxItems":9,"minItems":9,"nullable":true,"type":"array"},"imageUrl":{"nullable":true,"type":"string"},"overlayUrl":{"nullable":true,"type":"string"},"pageIndex":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"warnings":{"items":{"enum":["LOW_ALIGNMENT_CONFIDENCE","CORNER_MARKS_NOT_FOUND","QR_NOT_FOUND","PAGE_SKEWED","IMAGE_TOO_DARK","IMAGE_TOO_BRIGHT","IMAGE_LOW_RESOLUTION","AMBIGUOUS_ITEMS","MULTIPLE_MARKS","BOOKLET_UNREADABLE","STUDENT_ID_UNREADABLE","SHEET_MOSTLY_BLANK","PAGE_ROTATED","ORIENTATION_UNVERIFIED","DUPLICATE_SHEET","LAYOUT_CHANGED_AFTER_PRINT","PRINTED_IDENTITY_MISMATCH","PRINTED_BOOKLET_MISMATCH","SHEET_FROM_ANOTHER_EXAM","ROSTER_NAME_MISMATCH","STUDENT_NOT_IDENTIFIED","PAGES_OUT_OF_ORDER"],"type":"string"},"type":"array"}},"required":["pageIndex","imageUrl","overlayUrl","confidence","warnings","homography"],"type":"object"},"type":"array"},"previewUrl":{"nullable":true,"type":"string"},"processedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"projectId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"queue":{"additionalProperties":false,"properties":{"nextId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"previousId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"remaining":{"maximum":9007199254740991,"minimum":0,"type":"integer"}},"required":["previousId","nextId","remaining"],"type":"object"},"recognition":{"additionalProperties":false,"nullable":true,"properties":{"alignment":{"additionalProperties":false,"properties":{"confidence":{"maximum":1,"minimum":0,"type":"number"},"detectedCorners":{"items":{"additionalProperties":false,"properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"type":"object"},"maxItems":8,"type":"array"},"homography":{"items":{"type":"number"},"maxItems":9,"minItems":9,"type":"array"},"method":{"enum":["CORNER_MARKS","QR_ANCHOR","PAGE_CONTOUR","FALLBACK_SCALE","PRINTED_CONTENT"],"type":"string"},"rotationDegrees":{"type":"number"},"warnings":{"items":{"enum":["LOW_ALIGNMENT_CONFIDENCE","CORNER_MARKS_NOT_FOUND","QR_NOT_FOUND","PAGE_SKEWED","IMAGE_TOO_DARK","IMAGE_TOO_BRIGHT","IMAGE_LOW_RESOLUTION","AMBIGUOUS_ITEMS","MULTIPLE_MARKS","BOOKLET_UNREADABLE","STUDENT_ID_UNREADABLE","SHEET_MOSTLY_BLANK","PAGE_ROTATED","ORIENTATION_UNVERIFIED","DUPLICATE_SHEET","LAYOUT_CHANGED_AFTER_PRINT","PRINTED_IDENTITY_MISMATCH","PRINTED_BOOKLET_MISMATCH","SHEET_FROM_ANOTHER_EXAM","ROSTER_NAME_MISMATCH","STUDENT_NOT_IDENTIFIED","PAGES_OUT_OF_ORDER"],"type":"string"},"maxItems":50,"type":"array"}},"required":["method","confidence","homography","rotationDegrees","detectedCorners","warnings"],"type":"object"},"confidence":{"maximum":1,"minimum":0,"type":"number"},"durationMs":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"engineVersion":{"type":"string"},"fields":{"items":{"additionalProperties":false,"properties":{"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"items":{"items":{"additionalProperties":false,"properties":{"confidence":{"maximum":1,"minimum":0,"type":"number"},"fills":{"items":{"maximum":1,"minimum":0,"type":"number"},"maxItems":40,"type":"array"},"itemNumber":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"overridden":{"type":"boolean"},"selected":{"items":{"maximum":39,"minimum":0,"type":"integer"},"maxItems":40,"type":"array"},"state":{"enum":["OK","BLANK","MULTIPLE","AMBIGUOUS"],"type":"string"}},"required":["itemNumber","selected","fills","state","confidence","overridden"],"type":"object"},"type":"array"},"optionLabels":{"items":{"type":"string"},"type":"array"},"role":{"type":"string"},"value":{"nullable":true,"type":"string"}},"required":["fieldKey","role","optionLabels","items","value"],"type":"object"},"type":"array"},"overlayKey":{"nullable":true,"type":"string"},"warnings":{"items":{"enum":["LOW_ALIGNMENT_CONFIDENCE","CORNER_MARKS_NOT_FOUND","QR_NOT_FOUND","PAGE_SKEWED","IMAGE_TOO_DARK","IMAGE_TOO_BRIGHT","IMAGE_LOW_RESOLUTION","AMBIGUOUS_ITEMS","MULTIPLE_MARKS","BOOKLET_UNREADABLE","STUDENT_ID_UNREADABLE","SHEET_MOSTLY_BLANK","PAGE_ROTATED","ORIENTATION_UNVERIFIED","DUPLICATE_SHEET","LAYOUT_CHANGED_AFTER_PRINT","PRINTED_IDENTITY_MISMATCH","PRINTED_BOOKLET_MISMATCH","SHEET_FROM_ANOTHER_EXAM","ROSTER_NAME_MISMATCH","STUDENT_NOT_IDENTIFIED","PAGES_OUT_OF_ORDER"],"type":"string"},"type":"array"}},"required":["engineVersion","alignment","fields","warnings","confidence","durationMs","overlayKey"],"type":"object"},"result":{"additionalProperties":false,"nullable":true,"properties":{"answers":{"items":{"additionalProperties":false,"properties":{"canonicalQuestion":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"correct":{"anyOf":[{"maximum":25,"minimum":0,"type":"integer"},{"items":{"maximum":25,"minimum":0,"type":"integer"},"maxItems":26,"minItems":1,"type":"array"}],"nullable":true},"correctLabel":{"nullable":true,"type":"string"},"fieldKey":{"type":"string"},"marked":{"maximum":9007199254740991,"minimum":-9007199254740991,"nullable":true,"type":"integer"},"markedLabel":{"nullable":true,"type":"string"},"outcome":{"enum":["CORRECT","WRONG","BLANK","INVALID","CANCELLED"],"type":"string"},"question":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"sectionId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["fieldKey","question","marked","markedLabel","correct","correctLabel","outcome","sectionId"],"type":"object"},"type":"array"},"blank":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"bookletCode":{"nullable":true,"type":"string"},"cancelled":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"className":{"nullable":true,"type":"string"},"classRank":{"maximum":9007199254740991,"minimum":-9007199254740991,"nullable":true,"type":"integer"},"classTotal":{"maximum":9007199254740991,"minimum":-9007199254740991,"nullable":true,"type":"integer"},"computedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"correct":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"invalid":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"net":{"type":"number"},"passed":{"nullable":true,"type":"boolean"},"percent":{"nullable":true,"type":"number"},"projectId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"rank":{"maximum":9007199254740991,"minimum":-9007199254740991,"nullable":true,"type":"integer"},"rankTotal":{"maximum":9007199254740991,"minimum":-9007199254740991,"nullable":true,"type":"integer"},"score":{"type":"number"},"sections":{"items":{"additionalProperties":false,"properties":{"blank":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"cancelled":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"correct":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"invalid":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"net":{"type":"number"},"score":{"type":"number"},"sectionId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"sectionName":{"type":"string"},"total":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"wrong":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["sectionId","sectionName","correct","wrong","blank","invalid","cancelled","total","net","score"],"type":"object"},"type":"array"},"sheetId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"studentId":{"nullable":true,"type":"string"},"studentName":{"nullable":true,"type":"string"},"surveys":{"default":[],"items":{"additionalProperties":false,"properties":{"fieldKey":{"type":"string"},"question":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"selected":{"items":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"type":"array"},"selectedLabels":{"items":{"type":"string"},"type":"array"}},"required":["fieldKey","question","selected","selectedLabels"],"type":"object"},"type":"array"},"total":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"wrong":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["sheetId","projectId","studentId","studentName","bookletCode","correct","wrong","blank","invalid","cancelled","total","net","score","percent","passed","rank","rankTotal","classRank","classTotal","className","sections","answers","surveys","computedAt"],"type":"object"},"reviewedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"reviewedBy":{"additionalProperties":false,"nullable":true,"properties":{"displayName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["id","displayName"],"type":"object"},"score":{"nullable":true,"type":"number"},"status":{"enum":["PENDING","PROCESSING","PROCESSED","NEEDS_REVIEW","REVIEWED","FAILED"],"type":"string"},"studentId":{"nullable":true,"type":"string"},"studentName":{"nullable":true,"type":"string"},"thumbnailUrl":{"nullable":true,"type":"string"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"warningCodes":{"items":{"enum":["LOW_ALIGNMENT_CONFIDENCE","CORNER_MARKS_NOT_FOUND","QR_NOT_FOUND","PAGE_SKEWED","IMAGE_TOO_DARK","IMAGE_TOO_BRIGHT","IMAGE_LOW_RESOLUTION","AMBIGUOUS_ITEMS","MULTIPLE_MARKS","BOOKLET_UNREADABLE","STUDENT_ID_UNREADABLE","SHEET_MOSTLY_BLANK","PAGE_ROTATED","ORIENTATION_UNVERIFIED","DUPLICATE_SHEET","LAYOUT_CHANGED_AFTER_PRINT","PRINTED_IDENTITY_MISMATCH","PRINTED_BOOKLET_MISMATCH","SHEET_FROM_ANOTHER_EXAM","ROSTER_NAME_MISMATCH","STUDENT_NOT_IDENTIFIED","PAGES_OUT_OF_ORDER"],"type":"string"},"type":"array"},"warningCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["id","batchId","projectId","originalFileName","pageIndex","status","confidence","bookletCode","studentId","studentName","score","warningCount","warningCodes","failureReason","previewUrl","thumbnailUrl","processedAt","createdAt","imageUrl","overlayUrl","pages","recognition","reviewedAt","reviewedBy","updatedAt","manual","result","queue"],"type":"object"}}},"description":"OK"}},"summary":"Manually corrects the reading result and rescores","tags":["Scanning"]}},"/api/v1/sheet-templates":{"get":{"operationId":"sheetTemplatesList","parameters":[{"in":"query","name":"page","required":false,"schema":{"default":1,"maximum":10000,"minimum":1,"type":"integer"}},{"in":"query","name":"pageSize","required":false,"schema":{"default":20,"maximum":100,"minimum":1,"type":"integer"}},{"in":"query","name":"search","required":false,"schema":{"maxLength":200,"type":"string"}},{"in":"query","name":"sortBy","required":false,"schema":{"default":"updatedAt","enum":["name","createdAt","updatedAt"],"type":"string"}},{"in":"query","name":"sortDir","required":false,"schema":{"default":"desc","enum":["asc","desc"],"type":"string"}},{"in":"query","name":"status","required":false,"schema":{"enum":["DRAFT","PUBLISHED","ARCHIVED"],"type":"string"}},{"in":"query","name":"deleted","required":false,"schema":{"anyOf":[{"type":"boolean"},{"enum":["0","1","true","false"],"type":"string"}]}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"items":{"items":{"additionalProperties":false,"properties":{"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"createdBy":{"additionalProperties":false,"nullable":true,"properties":{"displayName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["id","displayName"],"type":"object"},"deletedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"description":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"name":{"type":"string"},"organizationId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"pageFormat":{"enum":["A3","A4","A5","LETTER","LEGAL","CUSTOM"],"type":"string"},"pageOrientation":{"enum":["PORTRAIT","LANDSCAPE"],"type":"string"},"questionCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"status":{"enum":["DRAFT","PUBLISHED","ARCHIVED"],"type":"string"},"thumbnailUrl":{"nullable":true,"type":"string"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"updatedBy":{"additionalProperties":false,"nullable":true,"properties":{"displayName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["id","displayName"],"type":"object"},"usedByProjectCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"version":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["id","organizationId","name","description","status","version","pageFormat","pageOrientation","questionCount","thumbnailUrl","usedByProjectCount","createdAt","updatedAt","deletedAt","createdBy","updatedBy"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"hasNext":{"type":"boolean"},"hasPrevious":{"type":"boolean"},"page":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"pageSize":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"totalItems":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"totalPages":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["page","pageSize","totalItems","totalPages","hasPrevious","hasNext"],"type":"object"}},"required":["items","meta"],"type":"object"}}},"description":"OK"}},"summary":"Lists templates","tags":["Sheet templates"]},"post":{"operationId":"sheetTemplatesCreate","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"description":{"default":"","maxLength":2000,"type":"string"},"document":{"properties":{"editorGrid":{"properties":{"color":{"type":"string"},"size":{"maximum":50,"minimum":0.5,"type":"number"},"snap":{"maximum":50,"minimum":0,"type":"number"},"style":{"enum":["NONE","DOTS","LINES"],"type":"string"}},"required":["style","size","snap","color"],"type":"object"},"elements":{"items":{"oneOf":[{"properties":{"autoShrink":{"type":"boolean"},"background":{"nullable":true,"type":"string"},"border":{"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"frame":{"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"padding":{"properties":{"bottom":{"maximum":200,"minimum":0,"type":"number"},"left":{"maximum":200,"minimum":0,"type":"number"},"right":{"maximum":200,"minimum":0,"type":"number"},"top":{"maximum":200,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"text":{"maxLength":4000,"type":"string"},"type":{"enum":["TEXT"],"type":"string"},"typography":{"properties":{"align":{"enum":["LEFT","CENTER","RIGHT","JUSTIFY"],"type":"string"},"color":{"type":"string"},"family":{"enum":["SANS","SANS_CONDENSED","SERIF","MONO"],"type":"string"},"italic":{"type":"boolean"},"letterSpacing":{"maximum":20,"minimum":-5,"type":"number"},"lineHeight":{"maximum":4,"minimum":0.7,"type":"number"},"size":{"maximum":400,"minimum":1,"type":"number"},"underline":{"type":"boolean"},"verticalAlign":{"enum":["TOP","MIDDLE","BOTTOM"],"type":"string"},"weight":{"anyOf":[{"enum":[400],"type":"number"},{"enum":[700],"type":"number"}]}},"required":["family","size","weight","italic","underline","align","verticalAlign","lineHeight","letterSpacing","color"],"type":"object"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","frame","rotation","z","locked","hidden","opacity","type","text","typography","padding","background","border","autoShrink"],"type":"object"},{"properties":{"assetId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"border":{"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"fit":{"enum":["CONTAIN","COVER","FILL"],"type":"string"},"frame":{"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"reference":{"default":false,"type":"boolean"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"type":{"enum":["IMAGE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","frame","rotation","z","locked","hidden","opacity","type","assetId","fit","border"],"type":"object"},{"properties":{"fill":{"nullable":true,"type":"string"},"frame":{"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"radius":{"maximum":100,"minimum":0,"type":"number"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"stroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"type":{"enum":["RECT"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","frame","rotation","z","locked","hidden","opacity","type","fill","stroke","radius"],"type":"object"},{"properties":{"frame":{"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"stroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"type":{"enum":["LINE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","frame","rotation","z","locked","hidden","opacity","type","stroke"],"type":"object"},{"properties":{"background":{"type":"string"},"customValue":{"maxLength":512,"nullable":true,"type":"string"},"errorCorrection":{"enum":["L","M","Q","H"],"type":"string"},"foreground":{"type":"string"},"frame":{"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"quietZone":{"maximum":8,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"source":{"enum":["SHEET_TOKEN","PROJECT_CODE","CUSTOM"],"type":"string"},"type":{"enum":["QR"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","frame","rotation","z","locked","hidden","opacity","type","source","customValue","errorCorrection","quietZone","foreground","background"],"type":"object"},{"properties":{"background":{"type":"string"},"customValue":{"maxLength":128,"nullable":true,"type":"string"},"foreground":{"type":"string"},"frame":{"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"quietZone":{"maximum":20,"minimum":0,"type":"number"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"showText":{"type":"boolean"},"source":{"enum":["SHEET_TOKEN","PROJECT_CODE","CUSTOM"],"type":"string"},"symbology":{"enum":["CODE128","CODE39","EAN13","ITF14"],"type":"string"},"type":{"enum":["BARCODE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","frame","rotation","z","locked","hidden","opacity","type","symbology","source","customValue","showText","quietZone","foreground","background"],"type":"object"},{"properties":{"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"frame":{"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"itemCount":{"maximum":500,"minimum":1,"type":"integer"},"labels":{"properties":{"color":{"type":"string"},"custom":{"items":{"maxLength":40,"type":"string"},"maxItems":40,"type":"array"},"itemGutter":{"maximum":150,"minimum":0,"type":"number"},"itemTexts":{"default":[],"items":{"maxLength":160,"type":"string"},"maxItems":500,"type":"array"},"kind":{"enum":["LETTERS","TR_LETTERS","DIGITS","CUSTOM","NONE"],"type":"string"},"numberWidth":{"default":0,"maximum":4,"minimum":0,"type":"integer"},"optionGutter":{"maximum":60,"minimum":0,"type":"number"},"showItemNumbers":{"type":"boolean"},"showOptionLabels":{"type":"boolean"},"size":{"maximum":48,"minimum":1,"type":"number"}},"required":["kind","custom","showItemNumbers","itemGutter","showOptionLabels","optionGutter","size","color"],"type":"object"},"layout":{"properties":{"blockGap":{"maximum":100,"minimum":0,"type":"number"},"blocks":{"maximum":20,"minimum":1,"type":"integer"},"bubble":{"properties":{"shape":{"enum":["CIRCLE","SQUARE","ROUNDED","ELLIPSE"],"type":"string"},"size":{"maximum":15,"minimum":2,"type":"number"}},"required":["shape","size"],"type":"object"},"direction":{"enum":["VERTICAL","HORIZONTAL"],"type":"string"},"flow":{"enum":["COLUMN_MAJOR","ROW_MAJOR"],"type":"string"},"itemGap":{"maximum":50,"minimum":0,"type":"number"},"optionGap":{"maximum":50,"minimum":0,"type":"number"},"padding":{"properties":{"bottom":{"maximum":200,"minimum":0,"type":"number"},"left":{"maximum":200,"minimum":0,"type":"number"},"right":{"maximum":200,"minimum":0,"type":"number"},"top":{"maximum":200,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"}},"required":["direction","flow","blocks","blockGap","bubble","itemGap","optionGap","padding"],"type":"object"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"optionCount":{"maximum":40,"minimum":2,"type":"integer"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"placement":{"default":null,"nullable":true,"properties":{"items":{"items":{"properties":{"options":{"items":{"properties":{"height":{"maximum":200,"minimum":1,"type":"number"},"width":{"maximum":200,"minimum":1,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"maxItems":40,"minItems":2,"type":"array"},"pageIndex":{"maximum":15,"minimum":0,"type":"integer"}},"required":["pageIndex","options"],"type":"object"},"maxItems":500,"minItems":1,"type":"array"}},"required":["items"],"type":"object"},"role":{"enum":["ANSWERS","STUDENT_ID","BOOKLET","TEXT_FIELD","CUSTOM"],"type":"string"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"startIndex":{"maximum":9999,"minimum":0,"type":"integer"},"style":{"properties":{"background":{"nullable":true,"type":"string"},"border":{"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"bubbleFill":{"nullable":true,"type":"string"},"bubbleStroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"insideLabelColor":{"default":"#5C6879","type":"string"},"labelInsideBubble":{"type":"boolean"},"rowStripe":{"properties":{"enabled":{"type":"boolean"},"primary":{"type":"string"},"secondary":{"type":"string"}},"required":["enabled","primary","secondary"],"type":"object"},"separators":{"properties":{"enabled":{"type":"boolean"},"stroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke"],"type":"object"}},"required":["bubbleStroke","bubbleFill","labelInsideBubble","border","background","rowStripe","separators"],"type":"object"},"type":{"enum":["BUBBLE_GRID"],"type":"string"},"writeBoxes":{"default":{"enabled":false,"gap":1.6,"height":7,"stroke":{"color":"#111827","style":"SOLID","width":0.3}},"properties":{"enabled":{"type":"boolean"},"gap":{"default":0,"maximum":20,"minimum":0,"type":"number"},"height":{"maximum":40,"minimum":3,"type":"number"},"stroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","height","stroke"],"type":"object"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","frame","rotation","z","locked","hidden","opacity","type","role","fieldKey","itemCount","optionCount","startIndex","labels","layout","style"],"type":"object"}]},"maxItems":500,"type":"array"},"page":{"properties":{"background":{"type":"string"},"format":{"enum":["A3","A4","A5","LETTER","LEGAL","CUSTOM"],"type":"string"},"height":{"maximum":2000,"minimum":50,"type":"number"},"margins":{"properties":{"bottom":{"maximum":2000,"minimum":0,"type":"number"},"left":{"maximum":2000,"minimum":0,"type":"number"},"right":{"maximum":2000,"minimum":0,"type":"number"},"top":{"maximum":2000,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"},"orientation":{"enum":["PORTRAIT","LANDSCAPE"],"type":"string"},"width":{"maximum":2000,"minimum":50,"type":"number"}},"required":["format","orientation","width","height","margins","background"],"type":"object"},"pageCount":{"default":1,"maximum":16,"minimum":1,"type":"integer"},"registration":{"properties":{"corners":{"properties":{"enabled":{"type":"boolean"},"inset":{"maximum":40,"minimum":2,"type":"number"},"shape":{"enum":["SQUARE","CIRCLE"],"type":"string"},"size":{"maximum":20,"minimum":3,"type":"number"}},"required":["enabled","size","inset","shape"],"type":"object"},"timing":{"properties":{"edge":{"enum":["LEFT","RIGHT","BOTH"],"type":"string"},"enabled":{"type":"boolean"},"gap":{"maximum":20,"minimum":1,"type":"number"},"height":{"maximum":10,"minimum":1,"type":"number"},"inset":{"maximum":40,"minimum":0,"type":"number"},"offsetBottom":{"maximum":200,"minimum":0,"type":"number"},"offsetTop":{"maximum":200,"minimum":0,"type":"number"},"width":{"maximum":20,"minimum":2,"type":"number"}},"required":["enabled","edge","width","height","gap","inset","offsetTop","offsetBottom"],"type":"object"}},"required":["corners","timing"],"type":"object"},"schemaVersion":{"enum":[1],"type":"number"},"source":{"default":"DESIGNED","enum":["DESIGNED","EXTERNAL"],"type":"string"}},"required":["schemaVersion","page","registration","editorGrid","elements"],"type":"object"},"name":{"maxLength":120,"minLength":1,"type":"string"},"starter":{"properties":{"booklet":{"default":true,"type":"boolean"},"comprehensive":{"default":true,"type":"boolean"},"itemCount":{"default":40,"maximum":60,"minimum":1,"type":"integer"},"optionCount":{"default":5,"maximum":5,"minimum":2,"type":"integer"},"optionLabels":{"items":{"maxLength":40,"minLength":1,"type":"string"},"maxItems":5,"type":"array"}},"type":"object"},"starterNames":{"properties":{"answers":{"maxLength":80,"minLength":1,"type":"string"},"booklet":{"maxLength":80,"minLength":1,"type":"string"},"candidate":{"maxLength":80,"minLength":1,"type":"string"},"classLabel":{"maxLength":80,"minLength":1,"type":"string"},"formInfo":{"maxLength":120,"minLength":1,"type":"string"},"heading":{"maxLength":80,"minLength":1,"type":"string"},"instructions":{"maxLength":600,"minLength":1,"type":"string"},"instructionsTitle":{"maxLength":80,"minLength":1,"type":"string"},"nameLabel":{"maxLength":80,"minLength":1,"type":"string"},"qr":{"maxLength":80,"minLength":1,"type":"string"},"room":{"maxLength":40,"minLength":1,"type":"string"},"seat":{"maxLength":40,"minLength":1,"type":"string"},"signature":{"maxLength":80,"minLength":1,"type":"string"},"signatureHint":{"maxLength":80,"minLength":1,"type":"string"},"studentId":{"maxLength":80,"minLength":1,"type":"string"}},"type":"object"},"useStarter":{"default":false,"type":"boolean"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"createdBy":{"additionalProperties":false,"nullable":true,"properties":{"displayName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["id","displayName"],"type":"object"},"deletedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"description":{"type":"string"},"document":{"additionalProperties":false,"properties":{"editorGrid":{"additionalProperties":false,"properties":{"color":{"type":"string"},"size":{"maximum":50,"minimum":0.5,"type":"number"},"snap":{"maximum":50,"minimum":0,"type":"number"},"style":{"enum":["NONE","DOTS","LINES"],"type":"string"}},"required":["style","size","snap","color"],"type":"object"},"elements":{"items":{"oneOf":[{"additionalProperties":false,"properties":{"autoShrink":{"type":"boolean"},"background":{"nullable":true,"type":"string"},"border":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"padding":{"additionalProperties":false,"properties":{"bottom":{"maximum":200,"minimum":0,"type":"number"},"left":{"maximum":200,"minimum":0,"type":"number"},"right":{"maximum":200,"minimum":0,"type":"number"},"top":{"maximum":200,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"text":{"maxLength":4000,"type":"string"},"type":{"enum":["TEXT"],"type":"string"},"typography":{"additionalProperties":false,"properties":{"align":{"enum":["LEFT","CENTER","RIGHT","JUSTIFY"],"type":"string"},"color":{"type":"string"},"family":{"enum":["SANS","SANS_CONDENSED","SERIF","MONO"],"type":"string"},"italic":{"type":"boolean"},"letterSpacing":{"maximum":20,"minimum":-5,"type":"number"},"lineHeight":{"maximum":4,"minimum":0.7,"type":"number"},"size":{"maximum":400,"minimum":1,"type":"number"},"underline":{"type":"boolean"},"verticalAlign":{"enum":["TOP","MIDDLE","BOTTOM"],"type":"string"},"weight":{"anyOf":[{"enum":[400],"type":"number"},{"enum":[700],"type":"number"}]}},"required":["family","size","weight","italic","underline","align","verticalAlign","lineHeight","letterSpacing","color"],"type":"object"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","text","typography","padding","background","border","autoShrink"],"type":"object"},{"additionalProperties":false,"properties":{"assetId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"border":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"fit":{"enum":["CONTAIN","COVER","FILL"],"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"reference":{"default":false,"type":"boolean"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"type":{"enum":["IMAGE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","assetId","fit","border","reference"],"type":"object"},{"additionalProperties":false,"properties":{"fill":{"nullable":true,"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"radius":{"maximum":100,"minimum":0,"type":"number"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"type":{"enum":["RECT"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","fill","stroke","radius"],"type":"object"},{"additionalProperties":false,"properties":{"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"type":{"enum":["LINE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","stroke"],"type":"object"},{"additionalProperties":false,"properties":{"background":{"type":"string"},"customValue":{"maxLength":512,"nullable":true,"type":"string"},"errorCorrection":{"enum":["L","M","Q","H"],"type":"string"},"foreground":{"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"quietZone":{"maximum":8,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"source":{"enum":["SHEET_TOKEN","PROJECT_CODE","CUSTOM"],"type":"string"},"type":{"enum":["QR"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","source","customValue","errorCorrection","quietZone","foreground","background"],"type":"object"},{"additionalProperties":false,"properties":{"background":{"type":"string"},"customValue":{"maxLength":128,"nullable":true,"type":"string"},"foreground":{"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"quietZone":{"maximum":20,"minimum":0,"type":"number"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"showText":{"type":"boolean"},"source":{"enum":["SHEET_TOKEN","PROJECT_CODE","CUSTOM"],"type":"string"},"symbology":{"enum":["CODE128","CODE39","EAN13","ITF14"],"type":"string"},"type":{"enum":["BARCODE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","symbology","source","customValue","showText","quietZone","foreground","background"],"type":"object"},{"additionalProperties":false,"properties":{"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"itemCount":{"maximum":500,"minimum":1,"type":"integer"},"labels":{"additionalProperties":false,"properties":{"color":{"type":"string"},"custom":{"items":{"maxLength":40,"type":"string"},"maxItems":40,"type":"array"},"itemGutter":{"maximum":150,"minimum":0,"type":"number"},"itemTexts":{"default":[],"items":{"maxLength":160,"type":"string"},"maxItems":500,"type":"array"},"kind":{"enum":["LETTERS","TR_LETTERS","DIGITS","CUSTOM","NONE"],"type":"string"},"numberWidth":{"default":0,"maximum":4,"minimum":0,"type":"integer"},"optionGutter":{"maximum":60,"minimum":0,"type":"number"},"showItemNumbers":{"type":"boolean"},"showOptionLabels":{"type":"boolean"},"size":{"maximum":48,"minimum":1,"type":"number"}},"required":["kind","custom","showItemNumbers","numberWidth","itemGutter","itemTexts","showOptionLabels","optionGutter","size","color"],"type":"object"},"layout":{"additionalProperties":false,"properties":{"blockGap":{"maximum":100,"minimum":0,"type":"number"},"blocks":{"maximum":20,"minimum":1,"type":"integer"},"bubble":{"additionalProperties":false,"properties":{"shape":{"enum":["CIRCLE","SQUARE","ROUNDED","ELLIPSE"],"type":"string"},"size":{"maximum":15,"minimum":2,"type":"number"}},"required":["shape","size"],"type":"object"},"direction":{"enum":["VERTICAL","HORIZONTAL"],"type":"string"},"flow":{"enum":["COLUMN_MAJOR","ROW_MAJOR"],"type":"string"},"itemGap":{"maximum":50,"minimum":0,"type":"number"},"optionGap":{"maximum":50,"minimum":0,"type":"number"},"padding":{"additionalProperties":false,"properties":{"bottom":{"maximum":200,"minimum":0,"type":"number"},"left":{"maximum":200,"minimum":0,"type":"number"},"right":{"maximum":200,"minimum":0,"type":"number"},"top":{"maximum":200,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"}},"required":["direction","flow","blocks","blockGap","bubble","itemGap","optionGap","padding"],"type":"object"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"optionCount":{"maximum":40,"minimum":2,"type":"integer"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"placement":{"additionalProperties":false,"default":null,"nullable":true,"properties":{"items":{"items":{"additionalProperties":false,"properties":{"options":{"items":{"additionalProperties":false,"properties":{"height":{"maximum":200,"minimum":1,"type":"number"},"width":{"maximum":200,"minimum":1,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"maxItems":40,"minItems":2,"type":"array"},"pageIndex":{"maximum":15,"minimum":0,"type":"integer"}},"required":["pageIndex","options"],"type":"object"},"maxItems":500,"minItems":1,"type":"array"}},"required":["items"],"type":"object"},"role":{"enum":["ANSWERS","STUDENT_ID","BOOKLET","TEXT_FIELD","CUSTOM"],"type":"string"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"startIndex":{"maximum":9999,"minimum":0,"type":"integer"},"style":{"additionalProperties":false,"properties":{"background":{"nullable":true,"type":"string"},"border":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"bubbleFill":{"nullable":true,"type":"string"},"bubbleStroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"insideLabelColor":{"default":"#5C6879","type":"string"},"labelInsideBubble":{"type":"boolean"},"rowStripe":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"primary":{"type":"string"},"secondary":{"type":"string"}},"required":["enabled","primary","secondary"],"type":"object"},"separators":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke"],"type":"object"}},"required":["bubbleStroke","bubbleFill","labelInsideBubble","insideLabelColor","border","background","rowStripe","separators"],"type":"object"},"type":{"enum":["BUBBLE_GRID"],"type":"string"},"writeBoxes":{"additionalProperties":false,"default":{"enabled":false,"gap":1.6,"height":7,"stroke":{"color":"#111827","style":"SOLID","width":0.3}},"properties":{"enabled":{"type":"boolean"},"gap":{"default":0,"maximum":20,"minimum":0,"type":"number"},"height":{"maximum":40,"minimum":3,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","height","gap","stroke"],"type":"object"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","role","fieldKey","itemCount","optionCount","startIndex","labels","writeBoxes","layout","style","placement"],"type":"object"}]},"maxItems":500,"type":"array"},"page":{"additionalProperties":false,"properties":{"background":{"type":"string"},"format":{"enum":["A3","A4","A5","LETTER","LEGAL","CUSTOM"],"type":"string"},"height":{"maximum":2000,"minimum":50,"type":"number"},"margins":{"additionalProperties":false,"properties":{"bottom":{"maximum":2000,"minimum":0,"type":"number"},"left":{"maximum":2000,"minimum":0,"type":"number"},"right":{"maximum":2000,"minimum":0,"type":"number"},"top":{"maximum":2000,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"},"orientation":{"enum":["PORTRAIT","LANDSCAPE"],"type":"string"},"width":{"maximum":2000,"minimum":50,"type":"number"}},"required":["format","orientation","width","height","margins","background"],"type":"object"},"pageCount":{"default":1,"maximum":16,"minimum":1,"type":"integer"},"registration":{"additionalProperties":false,"properties":{"corners":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"inset":{"maximum":40,"minimum":2,"type":"number"},"shape":{"enum":["SQUARE","CIRCLE"],"type":"string"},"size":{"maximum":20,"minimum":3,"type":"number"}},"required":["enabled","size","inset","shape"],"type":"object"},"timing":{"additionalProperties":false,"properties":{"edge":{"enum":["LEFT","RIGHT","BOTH"],"type":"string"},"enabled":{"type":"boolean"},"gap":{"maximum":20,"minimum":1,"type":"number"},"height":{"maximum":10,"minimum":1,"type":"number"},"inset":{"maximum":40,"minimum":0,"type":"number"},"offsetBottom":{"maximum":200,"minimum":0,"type":"number"},"offsetTop":{"maximum":200,"minimum":0,"type":"number"},"width":{"maximum":20,"minimum":2,"type":"number"}},"required":["enabled","edge","width","height","gap","inset","offsetTop","offsetBottom"],"type":"object"}},"required":["corners","timing"],"type":"object"},"schemaVersion":{"enum":[1],"type":"number"},"source":{"default":"DESIGNED","enum":["DESIGNED","EXTERNAL"],"type":"string"}},"required":["schemaVersion","source","page","registration","editorGrid","pageCount","elements"],"type":"object"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"name":{"type":"string"},"organizationId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"pageFormat":{"enum":["A3","A4","A5","LETTER","LEGAL","CUSTOM"],"type":"string"},"pageOrientation":{"enum":["PORTRAIT","LANDSCAPE"],"type":"string"},"questionCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"status":{"enum":["DRAFT","PUBLISHED","ARCHIVED"],"type":"string"},"thumbnailUrl":{"nullable":true,"type":"string"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"updatedBy":{"additionalProperties":false,"nullable":true,"properties":{"displayName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["id","displayName"],"type":"object"},"usedByProjectCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"version":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["id","organizationId","name","description","status","version","pageFormat","pageOrientation","questionCount","thumbnailUrl","usedByProjectCount","createdAt","updatedAt","deletedAt","createdBy","updatedBy","document"],"type":"object"}}},"description":"Created"}},"summary":"Creates a new template","tags":["Sheet templates"]}},"/api/v1/sheet-templates/assets":{"get":{"operationId":"sheetTemplatesListAssets","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"additionalProperties":false,"properties":{"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"fileName":{"type":"string"},"height":{"exclusiveMinimum":true,"maximum":9007199254740991,"minimum":0,"nullable":true,"type":"integer"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"mimeType":{"type":"string"},"sizeBytes":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"url":{"type":"string"},"width":{"exclusiveMinimum":true,"maximum":9007199254740991,"minimum":0,"nullable":true,"type":"integer"}},"required":["id","fileName","mimeType","sizeBytes","width","height","createdAt","url"],"type":"object"},"type":"array"}}},"description":"OK"}},"summary":"Lists the images available to sheets","tags":["Sheet templates"]},"post":{"operationId":"sheetTemplatesUploadAsset","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"fileName":{"type":"string"},"height":{"exclusiveMinimum":true,"maximum":9007199254740991,"minimum":0,"nullable":true,"type":"integer"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"mimeType":{"type":"string"},"sizeBytes":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"url":{"type":"string"},"width":{"exclusiveMinimum":true,"maximum":9007199254740991,"minimum":0,"nullable":true,"type":"integer"}},"required":["id","fileName","mimeType","sizeBytes","width","height","createdAt","url"],"type":"object"}}},"description":"Created"}},"summary":"Uploads an image for use on a sheet","tags":["Sheet templates"]}},"/api/v1/sheet-templates/assets/{assetId}":{"delete":{"operationId":"sheetTemplatesDeleteAsset","parameters":[{"in":"path","name":"assetId","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"No content"}},"summary":"Deletes an image","tags":["Sheet templates"]}},"/api/v1/sheet-templates/from-paper":{"post":{"operationId":"sheetTemplatesCreateFromPaper","parameters":[{"in":"query","name":"name","required":true,"schema":{"maxLength":120,"minLength":1,"type":"string"}},{"in":"query","name":"description","required":false,"schema":{"default":"","maxLength":2000,"type":"string"}},{"in":"query","name":"optionCount","required":false,"schema":{"default":5,"maximum":10,"minimum":2,"type":"integer"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"createdBy":{"additionalProperties":false,"nullable":true,"properties":{"displayName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["id","displayName"],"type":"object"},"deletedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"description":{"type":"string"},"document":{"additionalProperties":false,"properties":{"editorGrid":{"additionalProperties":false,"properties":{"color":{"type":"string"},"size":{"maximum":50,"minimum":0.5,"type":"number"},"snap":{"maximum":50,"minimum":0,"type":"number"},"style":{"enum":["NONE","DOTS","LINES"],"type":"string"}},"required":["style","size","snap","color"],"type":"object"},"elements":{"items":{"oneOf":[{"additionalProperties":false,"properties":{"autoShrink":{"type":"boolean"},"background":{"nullable":true,"type":"string"},"border":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"padding":{"additionalProperties":false,"properties":{"bottom":{"maximum":200,"minimum":0,"type":"number"},"left":{"maximum":200,"minimum":0,"type":"number"},"right":{"maximum":200,"minimum":0,"type":"number"},"top":{"maximum":200,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"text":{"maxLength":4000,"type":"string"},"type":{"enum":["TEXT"],"type":"string"},"typography":{"additionalProperties":false,"properties":{"align":{"enum":["LEFT","CENTER","RIGHT","JUSTIFY"],"type":"string"},"color":{"type":"string"},"family":{"enum":["SANS","SANS_CONDENSED","SERIF","MONO"],"type":"string"},"italic":{"type":"boolean"},"letterSpacing":{"maximum":20,"minimum":-5,"type":"number"},"lineHeight":{"maximum":4,"minimum":0.7,"type":"number"},"size":{"maximum":400,"minimum":1,"type":"number"},"underline":{"type":"boolean"},"verticalAlign":{"enum":["TOP","MIDDLE","BOTTOM"],"type":"string"},"weight":{"anyOf":[{"enum":[400],"type":"number"},{"enum":[700],"type":"number"}]}},"required":["family","size","weight","italic","underline","align","verticalAlign","lineHeight","letterSpacing","color"],"type":"object"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","text","typography","padding","background","border","autoShrink"],"type":"object"},{"additionalProperties":false,"properties":{"assetId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"border":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"fit":{"enum":["CONTAIN","COVER","FILL"],"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"reference":{"default":false,"type":"boolean"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"type":{"enum":["IMAGE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","assetId","fit","border","reference"],"type":"object"},{"additionalProperties":false,"properties":{"fill":{"nullable":true,"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"radius":{"maximum":100,"minimum":0,"type":"number"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"type":{"enum":["RECT"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","fill","stroke","radius"],"type":"object"},{"additionalProperties":false,"properties":{"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"type":{"enum":["LINE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","stroke"],"type":"object"},{"additionalProperties":false,"properties":{"background":{"type":"string"},"customValue":{"maxLength":512,"nullable":true,"type":"string"},"errorCorrection":{"enum":["L","M","Q","H"],"type":"string"},"foreground":{"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"quietZone":{"maximum":8,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"source":{"enum":["SHEET_TOKEN","PROJECT_CODE","CUSTOM"],"type":"string"},"type":{"enum":["QR"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","source","customValue","errorCorrection","quietZone","foreground","background"],"type":"object"},{"additionalProperties":false,"properties":{"background":{"type":"string"},"customValue":{"maxLength":128,"nullable":true,"type":"string"},"foreground":{"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"quietZone":{"maximum":20,"minimum":0,"type":"number"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"showText":{"type":"boolean"},"source":{"enum":["SHEET_TOKEN","PROJECT_CODE","CUSTOM"],"type":"string"},"symbology":{"enum":["CODE128","CODE39","EAN13","ITF14"],"type":"string"},"type":{"enum":["BARCODE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","symbology","source","customValue","showText","quietZone","foreground","background"],"type":"object"},{"additionalProperties":false,"properties":{"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"itemCount":{"maximum":500,"minimum":1,"type":"integer"},"labels":{"additionalProperties":false,"properties":{"color":{"type":"string"},"custom":{"items":{"maxLength":40,"type":"string"},"maxItems":40,"type":"array"},"itemGutter":{"maximum":150,"minimum":0,"type":"number"},"itemTexts":{"default":[],"items":{"maxLength":160,"type":"string"},"maxItems":500,"type":"array"},"kind":{"enum":["LETTERS","TR_LETTERS","DIGITS","CUSTOM","NONE"],"type":"string"},"numberWidth":{"default":0,"maximum":4,"minimum":0,"type":"integer"},"optionGutter":{"maximum":60,"minimum":0,"type":"number"},"showItemNumbers":{"type":"boolean"},"showOptionLabels":{"type":"boolean"},"size":{"maximum":48,"minimum":1,"type":"number"}},"required":["kind","custom","showItemNumbers","numberWidth","itemGutter","itemTexts","showOptionLabels","optionGutter","size","color"],"type":"object"},"layout":{"additionalProperties":false,"properties":{"blockGap":{"maximum":100,"minimum":0,"type":"number"},"blocks":{"maximum":20,"minimum":1,"type":"integer"},"bubble":{"additionalProperties":false,"properties":{"shape":{"enum":["CIRCLE","SQUARE","ROUNDED","ELLIPSE"],"type":"string"},"size":{"maximum":15,"minimum":2,"type":"number"}},"required":["shape","size"],"type":"object"},"direction":{"enum":["VERTICAL","HORIZONTAL"],"type":"string"},"flow":{"enum":["COLUMN_MAJOR","ROW_MAJOR"],"type":"string"},"itemGap":{"maximum":50,"minimum":0,"type":"number"},"optionGap":{"maximum":50,"minimum":0,"type":"number"},"padding":{"additionalProperties":false,"properties":{"bottom":{"maximum":200,"minimum":0,"type":"number"},"left":{"maximum":200,"minimum":0,"type":"number"},"right":{"maximum":200,"minimum":0,"type":"number"},"top":{"maximum":200,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"}},"required":["direction","flow","blocks","blockGap","bubble","itemGap","optionGap","padding"],"type":"object"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"optionCount":{"maximum":40,"minimum":2,"type":"integer"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"placement":{"additionalProperties":false,"default":null,"nullable":true,"properties":{"items":{"items":{"additionalProperties":false,"properties":{"options":{"items":{"additionalProperties":false,"properties":{"height":{"maximum":200,"minimum":1,"type":"number"},"width":{"maximum":200,"minimum":1,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"maxItems":40,"minItems":2,"type":"array"},"pageIndex":{"maximum":15,"minimum":0,"type":"integer"}},"required":["pageIndex","options"],"type":"object"},"maxItems":500,"minItems":1,"type":"array"}},"required":["items"],"type":"object"},"role":{"enum":["ANSWERS","STUDENT_ID","BOOKLET","TEXT_FIELD","CUSTOM"],"type":"string"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"startIndex":{"maximum":9999,"minimum":0,"type":"integer"},"style":{"additionalProperties":false,"properties":{"background":{"nullable":true,"type":"string"},"border":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"bubbleFill":{"nullable":true,"type":"string"},"bubbleStroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"insideLabelColor":{"default":"#5C6879","type":"string"},"labelInsideBubble":{"type":"boolean"},"rowStripe":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"primary":{"type":"string"},"secondary":{"type":"string"}},"required":["enabled","primary","secondary"],"type":"object"},"separators":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke"],"type":"object"}},"required":["bubbleStroke","bubbleFill","labelInsideBubble","insideLabelColor","border","background","rowStripe","separators"],"type":"object"},"type":{"enum":["BUBBLE_GRID"],"type":"string"},"writeBoxes":{"additionalProperties":false,"default":{"enabled":false,"gap":1.6,"height":7,"stroke":{"color":"#111827","style":"SOLID","width":0.3}},"properties":{"enabled":{"type":"boolean"},"gap":{"default":0,"maximum":20,"minimum":0,"type":"number"},"height":{"maximum":40,"minimum":3,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","height","gap","stroke"],"type":"object"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","role","fieldKey","itemCount","optionCount","startIndex","labels","writeBoxes","layout","style","placement"],"type":"object"}]},"maxItems":500,"type":"array"},"page":{"additionalProperties":false,"properties":{"background":{"type":"string"},"format":{"enum":["A3","A4","A5","LETTER","LEGAL","CUSTOM"],"type":"string"},"height":{"maximum":2000,"minimum":50,"type":"number"},"margins":{"additionalProperties":false,"properties":{"bottom":{"maximum":2000,"minimum":0,"type":"number"},"left":{"maximum":2000,"minimum":0,"type":"number"},"right":{"maximum":2000,"minimum":0,"type":"number"},"top":{"maximum":2000,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"},"orientation":{"enum":["PORTRAIT","LANDSCAPE"],"type":"string"},"width":{"maximum":2000,"minimum":50,"type":"number"}},"required":["format","orientation","width","height","margins","background"],"type":"object"},"pageCount":{"default":1,"maximum":16,"minimum":1,"type":"integer"},"registration":{"additionalProperties":false,"properties":{"corners":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"inset":{"maximum":40,"minimum":2,"type":"number"},"shape":{"enum":["SQUARE","CIRCLE"],"type":"string"},"size":{"maximum":20,"minimum":3,"type":"number"}},"required":["enabled","size","inset","shape"],"type":"object"},"timing":{"additionalProperties":false,"properties":{"edge":{"enum":["LEFT","RIGHT","BOTH"],"type":"string"},"enabled":{"type":"boolean"},"gap":{"maximum":20,"minimum":1,"type":"number"},"height":{"maximum":10,"minimum":1,"type":"number"},"inset":{"maximum":40,"minimum":0,"type":"number"},"offsetBottom":{"maximum":200,"minimum":0,"type":"number"},"offsetTop":{"maximum":200,"minimum":0,"type":"number"},"width":{"maximum":20,"minimum":2,"type":"number"}},"required":["enabled","edge","width","height","gap","inset","offsetTop","offsetBottom"],"type":"object"}},"required":["corners","timing"],"type":"object"},"schemaVersion":{"enum":[1],"type":"number"},"source":{"default":"DESIGNED","enum":["DESIGNED","EXTERNAL"],"type":"string"}},"required":["schemaVersion","source","page","registration","editorGrid","pageCount","elements"],"type":"object"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"name":{"type":"string"},"organizationId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"pageFormat":{"enum":["A3","A4","A5","LETTER","LEGAL","CUSTOM"],"type":"string"},"pageOrientation":{"enum":["PORTRAIT","LANDSCAPE"],"type":"string"},"questionCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"status":{"enum":["DRAFT","PUBLISHED","ARCHIVED"],"type":"string"},"thumbnailUrl":{"nullable":true,"type":"string"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"updatedBy":{"additionalProperties":false,"nullable":true,"properties":{"displayName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["id","displayName"],"type":"object"},"usedByProjectCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"version":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["id","organizationId","name","description","status","version","pageFormat","pageOrientation","questionCount","thumbnailUrl","usedByProjectCount","createdAt","updatedAt","deletedAt","createdBy","updatedBy","document"],"type":"object"}}},"description":"Created"}},"summary":"Creates a template from the blank pages of an exam paper made elsewhere","tags":["Sheet templates"]}},"/api/v1/sheet-templates/sample":{"post":{"operationId":"sheetTemplatesSample","parameters":[{"in":"query","name":"name","required":false,"schema":{"maxLength":120,"minLength":1,"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"editorGrid":{"properties":{"color":{"type":"string"},"size":{"maximum":50,"minimum":0.5,"type":"number"},"snap":{"maximum":50,"minimum":0,"type":"number"},"style":{"enum":["NONE","DOTS","LINES"],"type":"string"}},"required":["style","size","snap","color"],"type":"object"},"elements":{"items":{"oneOf":[{"properties":{"autoShrink":{"type":"boolean"},"background":{"nullable":true,"type":"string"},"border":{"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"frame":{"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"padding":{"properties":{"bottom":{"maximum":200,"minimum":0,"type":"number"},"left":{"maximum":200,"minimum":0,"type":"number"},"right":{"maximum":200,"minimum":0,"type":"number"},"top":{"maximum":200,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"text":{"maxLength":4000,"type":"string"},"type":{"enum":["TEXT"],"type":"string"},"typography":{"properties":{"align":{"enum":["LEFT","CENTER","RIGHT","JUSTIFY"],"type":"string"},"color":{"type":"string"},"family":{"enum":["SANS","SANS_CONDENSED","SERIF","MONO"],"type":"string"},"italic":{"type":"boolean"},"letterSpacing":{"maximum":20,"minimum":-5,"type":"number"},"lineHeight":{"maximum":4,"minimum":0.7,"type":"number"},"size":{"maximum":400,"minimum":1,"type":"number"},"underline":{"type":"boolean"},"verticalAlign":{"enum":["TOP","MIDDLE","BOTTOM"],"type":"string"},"weight":{"anyOf":[{"enum":[400],"type":"number"},{"enum":[700],"type":"number"}]}},"required":["family","size","weight","italic","underline","align","verticalAlign","lineHeight","letterSpacing","color"],"type":"object"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","frame","rotation","z","locked","hidden","opacity","type","text","typography","padding","background","border","autoShrink"],"type":"object"},{"properties":{"assetId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"border":{"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"fit":{"enum":["CONTAIN","COVER","FILL"],"type":"string"},"frame":{"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"reference":{"default":false,"type":"boolean"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"type":{"enum":["IMAGE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","frame","rotation","z","locked","hidden","opacity","type","assetId","fit","border"],"type":"object"},{"properties":{"fill":{"nullable":true,"type":"string"},"frame":{"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"radius":{"maximum":100,"minimum":0,"type":"number"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"stroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"type":{"enum":["RECT"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","frame","rotation","z","locked","hidden","opacity","type","fill","stroke","radius"],"type":"object"},{"properties":{"frame":{"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"stroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"type":{"enum":["LINE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","frame","rotation","z","locked","hidden","opacity","type","stroke"],"type":"object"},{"properties":{"background":{"type":"string"},"customValue":{"maxLength":512,"nullable":true,"type":"string"},"errorCorrection":{"enum":["L","M","Q","H"],"type":"string"},"foreground":{"type":"string"},"frame":{"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"quietZone":{"maximum":8,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"source":{"enum":["SHEET_TOKEN","PROJECT_CODE","CUSTOM"],"type":"string"},"type":{"enum":["QR"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","frame","rotation","z","locked","hidden","opacity","type","source","customValue","errorCorrection","quietZone","foreground","background"],"type":"object"},{"properties":{"background":{"type":"string"},"customValue":{"maxLength":128,"nullable":true,"type":"string"},"foreground":{"type":"string"},"frame":{"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"quietZone":{"maximum":20,"minimum":0,"type":"number"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"showText":{"type":"boolean"},"source":{"enum":["SHEET_TOKEN","PROJECT_CODE","CUSTOM"],"type":"string"},"symbology":{"enum":["CODE128","CODE39","EAN13","ITF14"],"type":"string"},"type":{"enum":["BARCODE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","frame","rotation","z","locked","hidden","opacity","type","symbology","source","customValue","showText","quietZone","foreground","background"],"type":"object"},{"properties":{"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"frame":{"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"itemCount":{"maximum":500,"minimum":1,"type":"integer"},"labels":{"properties":{"color":{"type":"string"},"custom":{"items":{"maxLength":40,"type":"string"},"maxItems":40,"type":"array"},"itemGutter":{"maximum":150,"minimum":0,"type":"number"},"itemTexts":{"default":[],"items":{"maxLength":160,"type":"string"},"maxItems":500,"type":"array"},"kind":{"enum":["LETTERS","TR_LETTERS","DIGITS","CUSTOM","NONE"],"type":"string"},"numberWidth":{"default":0,"maximum":4,"minimum":0,"type":"integer"},"optionGutter":{"maximum":60,"minimum":0,"type":"number"},"showItemNumbers":{"type":"boolean"},"showOptionLabels":{"type":"boolean"},"size":{"maximum":48,"minimum":1,"type":"number"}},"required":["kind","custom","showItemNumbers","itemGutter","showOptionLabels","optionGutter","size","color"],"type":"object"},"layout":{"properties":{"blockGap":{"maximum":100,"minimum":0,"type":"number"},"blocks":{"maximum":20,"minimum":1,"type":"integer"},"bubble":{"properties":{"shape":{"enum":["CIRCLE","SQUARE","ROUNDED","ELLIPSE"],"type":"string"},"size":{"maximum":15,"minimum":2,"type":"number"}},"required":["shape","size"],"type":"object"},"direction":{"enum":["VERTICAL","HORIZONTAL"],"type":"string"},"flow":{"enum":["COLUMN_MAJOR","ROW_MAJOR"],"type":"string"},"itemGap":{"maximum":50,"minimum":0,"type":"number"},"optionGap":{"maximum":50,"minimum":0,"type":"number"},"padding":{"properties":{"bottom":{"maximum":200,"minimum":0,"type":"number"},"left":{"maximum":200,"minimum":0,"type":"number"},"right":{"maximum":200,"minimum":0,"type":"number"},"top":{"maximum":200,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"}},"required":["direction","flow","blocks","blockGap","bubble","itemGap","optionGap","padding"],"type":"object"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"optionCount":{"maximum":40,"minimum":2,"type":"integer"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"placement":{"default":null,"nullable":true,"properties":{"items":{"items":{"properties":{"options":{"items":{"properties":{"height":{"maximum":200,"minimum":1,"type":"number"},"width":{"maximum":200,"minimum":1,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"maxItems":40,"minItems":2,"type":"array"},"pageIndex":{"maximum":15,"minimum":0,"type":"integer"}},"required":["pageIndex","options"],"type":"object"},"maxItems":500,"minItems":1,"type":"array"}},"required":["items"],"type":"object"},"role":{"enum":["ANSWERS","STUDENT_ID","BOOKLET","TEXT_FIELD","CUSTOM"],"type":"string"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"startIndex":{"maximum":9999,"minimum":0,"type":"integer"},"style":{"properties":{"background":{"nullable":true,"type":"string"},"border":{"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"bubbleFill":{"nullable":true,"type":"string"},"bubbleStroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"insideLabelColor":{"default":"#5C6879","type":"string"},"labelInsideBubble":{"type":"boolean"},"rowStripe":{"properties":{"enabled":{"type":"boolean"},"primary":{"type":"string"},"secondary":{"type":"string"}},"required":["enabled","primary","secondary"],"type":"object"},"separators":{"properties":{"enabled":{"type":"boolean"},"stroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke"],"type":"object"}},"required":["bubbleStroke","bubbleFill","labelInsideBubble","border","background","rowStripe","separators"],"type":"object"},"type":{"enum":["BUBBLE_GRID"],"type":"string"},"writeBoxes":{"default":{"enabled":false,"gap":1.6,"height":7,"stroke":{"color":"#111827","style":"SOLID","width":0.3}},"properties":{"enabled":{"type":"boolean"},"gap":{"default":0,"maximum":20,"minimum":0,"type":"number"},"height":{"maximum":40,"minimum":3,"type":"number"},"stroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","height","stroke"],"type":"object"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","frame","rotation","z","locked","hidden","opacity","type","role","fieldKey","itemCount","optionCount","startIndex","labels","layout","style"],"type":"object"}]},"maxItems":500,"type":"array"},"page":{"properties":{"background":{"type":"string"},"format":{"enum":["A3","A4","A5","LETTER","LEGAL","CUSTOM"],"type":"string"},"height":{"maximum":2000,"minimum":50,"type":"number"},"margins":{"properties":{"bottom":{"maximum":2000,"minimum":0,"type":"number"},"left":{"maximum":2000,"minimum":0,"type":"number"},"right":{"maximum":2000,"minimum":0,"type":"number"},"top":{"maximum":2000,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"},"orientation":{"enum":["PORTRAIT","LANDSCAPE"],"type":"string"},"width":{"maximum":2000,"minimum":50,"type":"number"}},"required":["format","orientation","width","height","margins","background"],"type":"object"},"pageCount":{"default":1,"maximum":16,"minimum":1,"type":"integer"},"registration":{"properties":{"corners":{"properties":{"enabled":{"type":"boolean"},"inset":{"maximum":40,"minimum":2,"type":"number"},"shape":{"enum":["SQUARE","CIRCLE"],"type":"string"},"size":{"maximum":20,"minimum":3,"type":"number"}},"required":["enabled","size","inset","shape"],"type":"object"},"timing":{"properties":{"edge":{"enum":["LEFT","RIGHT","BOTH"],"type":"string"},"enabled":{"type":"boolean"},"gap":{"maximum":20,"minimum":1,"type":"number"},"height":{"maximum":10,"minimum":1,"type":"number"},"inset":{"maximum":40,"minimum":0,"type":"number"},"offsetBottom":{"maximum":200,"minimum":0,"type":"number"},"offsetTop":{"maximum":200,"minimum":0,"type":"number"},"width":{"maximum":20,"minimum":2,"type":"number"}},"required":["enabled","edge","width","height","gap","inset","offsetTop","offsetBottom"],"type":"object"}},"required":["corners","timing"],"type":"object"},"schemaVersion":{"enum":[1],"type":"number"},"source":{"default":"DESIGNED","enum":["DESIGNED","EXTERNAL"],"type":"string"}},"required":["schemaVersion","page","registration","editorGrid","elements"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/pdf":{"schema":{"format":"binary","type":"string"}}},"description":"One sheet of the document, as a PDF"}},"summary":"Draws one sheet of the document as sent, as a PDF, for a test print (does not save)","tags":["Sheet templates"]}},"/api/v1/sheet-templates/validate":{"post":{"operationId":"sheetTemplatesValidate","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"editorGrid":{"properties":{"color":{"type":"string"},"size":{"maximum":50,"minimum":0.5,"type":"number"},"snap":{"maximum":50,"minimum":0,"type":"number"},"style":{"enum":["NONE","DOTS","LINES"],"type":"string"}},"required":["style","size","snap","color"],"type":"object"},"elements":{"items":{"oneOf":[{"properties":{"autoShrink":{"type":"boolean"},"background":{"nullable":true,"type":"string"},"border":{"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"frame":{"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"padding":{"properties":{"bottom":{"maximum":200,"minimum":0,"type":"number"},"left":{"maximum":200,"minimum":0,"type":"number"},"right":{"maximum":200,"minimum":0,"type":"number"},"top":{"maximum":200,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"text":{"maxLength":4000,"type":"string"},"type":{"enum":["TEXT"],"type":"string"},"typography":{"properties":{"align":{"enum":["LEFT","CENTER","RIGHT","JUSTIFY"],"type":"string"},"color":{"type":"string"},"family":{"enum":["SANS","SANS_CONDENSED","SERIF","MONO"],"type":"string"},"italic":{"type":"boolean"},"letterSpacing":{"maximum":20,"minimum":-5,"type":"number"},"lineHeight":{"maximum":4,"minimum":0.7,"type":"number"},"size":{"maximum":400,"minimum":1,"type":"number"},"underline":{"type":"boolean"},"verticalAlign":{"enum":["TOP","MIDDLE","BOTTOM"],"type":"string"},"weight":{"anyOf":[{"enum":[400],"type":"number"},{"enum":[700],"type":"number"}]}},"required":["family","size","weight","italic","underline","align","verticalAlign","lineHeight","letterSpacing","color"],"type":"object"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","frame","rotation","z","locked","hidden","opacity","type","text","typography","padding","background","border","autoShrink"],"type":"object"},{"properties":{"assetId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"border":{"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"fit":{"enum":["CONTAIN","COVER","FILL"],"type":"string"},"frame":{"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"reference":{"default":false,"type":"boolean"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"type":{"enum":["IMAGE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","frame","rotation","z","locked","hidden","opacity","type","assetId","fit","border"],"type":"object"},{"properties":{"fill":{"nullable":true,"type":"string"},"frame":{"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"radius":{"maximum":100,"minimum":0,"type":"number"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"stroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"type":{"enum":["RECT"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","frame","rotation","z","locked","hidden","opacity","type","fill","stroke","radius"],"type":"object"},{"properties":{"frame":{"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"stroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"type":{"enum":["LINE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","frame","rotation","z","locked","hidden","opacity","type","stroke"],"type":"object"},{"properties":{"background":{"type":"string"},"customValue":{"maxLength":512,"nullable":true,"type":"string"},"errorCorrection":{"enum":["L","M","Q","H"],"type":"string"},"foreground":{"type":"string"},"frame":{"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"quietZone":{"maximum":8,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"source":{"enum":["SHEET_TOKEN","PROJECT_CODE","CUSTOM"],"type":"string"},"type":{"enum":["QR"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","frame","rotation","z","locked","hidden","opacity","type","source","customValue","errorCorrection","quietZone","foreground","background"],"type":"object"},{"properties":{"background":{"type":"string"},"customValue":{"maxLength":128,"nullable":true,"type":"string"},"foreground":{"type":"string"},"frame":{"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"quietZone":{"maximum":20,"minimum":0,"type":"number"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"showText":{"type":"boolean"},"source":{"enum":["SHEET_TOKEN","PROJECT_CODE","CUSTOM"],"type":"string"},"symbology":{"enum":["CODE128","CODE39","EAN13","ITF14"],"type":"string"},"type":{"enum":["BARCODE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","frame","rotation","z","locked","hidden","opacity","type","symbology","source","customValue","showText","quietZone","foreground","background"],"type":"object"},{"properties":{"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"frame":{"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"itemCount":{"maximum":500,"minimum":1,"type":"integer"},"labels":{"properties":{"color":{"type":"string"},"custom":{"items":{"maxLength":40,"type":"string"},"maxItems":40,"type":"array"},"itemGutter":{"maximum":150,"minimum":0,"type":"number"},"itemTexts":{"default":[],"items":{"maxLength":160,"type":"string"},"maxItems":500,"type":"array"},"kind":{"enum":["LETTERS","TR_LETTERS","DIGITS","CUSTOM","NONE"],"type":"string"},"numberWidth":{"default":0,"maximum":4,"minimum":0,"type":"integer"},"optionGutter":{"maximum":60,"minimum":0,"type":"number"},"showItemNumbers":{"type":"boolean"},"showOptionLabels":{"type":"boolean"},"size":{"maximum":48,"minimum":1,"type":"number"}},"required":["kind","custom","showItemNumbers","itemGutter","showOptionLabels","optionGutter","size","color"],"type":"object"},"layout":{"properties":{"blockGap":{"maximum":100,"minimum":0,"type":"number"},"blocks":{"maximum":20,"minimum":1,"type":"integer"},"bubble":{"properties":{"shape":{"enum":["CIRCLE","SQUARE","ROUNDED","ELLIPSE"],"type":"string"},"size":{"maximum":15,"minimum":2,"type":"number"}},"required":["shape","size"],"type":"object"},"direction":{"enum":["VERTICAL","HORIZONTAL"],"type":"string"},"flow":{"enum":["COLUMN_MAJOR","ROW_MAJOR"],"type":"string"},"itemGap":{"maximum":50,"minimum":0,"type":"number"},"optionGap":{"maximum":50,"minimum":0,"type":"number"},"padding":{"properties":{"bottom":{"maximum":200,"minimum":0,"type":"number"},"left":{"maximum":200,"minimum":0,"type":"number"},"right":{"maximum":200,"minimum":0,"type":"number"},"top":{"maximum":200,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"}},"required":["direction","flow","blocks","blockGap","bubble","itemGap","optionGap","padding"],"type":"object"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"optionCount":{"maximum":40,"minimum":2,"type":"integer"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"placement":{"default":null,"nullable":true,"properties":{"items":{"items":{"properties":{"options":{"items":{"properties":{"height":{"maximum":200,"minimum":1,"type":"number"},"width":{"maximum":200,"minimum":1,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"maxItems":40,"minItems":2,"type":"array"},"pageIndex":{"maximum":15,"minimum":0,"type":"integer"}},"required":["pageIndex","options"],"type":"object"},"maxItems":500,"minItems":1,"type":"array"}},"required":["items"],"type":"object"},"role":{"enum":["ANSWERS","STUDENT_ID","BOOKLET","TEXT_FIELD","CUSTOM"],"type":"string"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"startIndex":{"maximum":9999,"minimum":0,"type":"integer"},"style":{"properties":{"background":{"nullable":true,"type":"string"},"border":{"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"bubbleFill":{"nullable":true,"type":"string"},"bubbleStroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"insideLabelColor":{"default":"#5C6879","type":"string"},"labelInsideBubble":{"type":"boolean"},"rowStripe":{"properties":{"enabled":{"type":"boolean"},"primary":{"type":"string"},"secondary":{"type":"string"}},"required":["enabled","primary","secondary"],"type":"object"},"separators":{"properties":{"enabled":{"type":"boolean"},"stroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke"],"type":"object"}},"required":["bubbleStroke","bubbleFill","labelInsideBubble","border","background","rowStripe","separators"],"type":"object"},"type":{"enum":["BUBBLE_GRID"],"type":"string"},"writeBoxes":{"default":{"enabled":false,"gap":1.6,"height":7,"stroke":{"color":"#111827","style":"SOLID","width":0.3}},"properties":{"enabled":{"type":"boolean"},"gap":{"default":0,"maximum":20,"minimum":0,"type":"number"},"height":{"maximum":40,"minimum":3,"type":"number"},"stroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","height","stroke"],"type":"object"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","frame","rotation","z","locked","hidden","opacity","type","role","fieldKey","itemCount","optionCount","startIndex","labels","layout","style"],"type":"object"}]},"maxItems":500,"type":"array"},"page":{"properties":{"background":{"type":"string"},"format":{"enum":["A3","A4","A5","LETTER","LEGAL","CUSTOM"],"type":"string"},"height":{"maximum":2000,"minimum":50,"type":"number"},"margins":{"properties":{"bottom":{"maximum":2000,"minimum":0,"type":"number"},"left":{"maximum":2000,"minimum":0,"type":"number"},"right":{"maximum":2000,"minimum":0,"type":"number"},"top":{"maximum":2000,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"},"orientation":{"enum":["PORTRAIT","LANDSCAPE"],"type":"string"},"width":{"maximum":2000,"minimum":50,"type":"number"}},"required":["format","orientation","width","height","margins","background"],"type":"object"},"pageCount":{"default":1,"maximum":16,"minimum":1,"type":"integer"},"registration":{"properties":{"corners":{"properties":{"enabled":{"type":"boolean"},"inset":{"maximum":40,"minimum":2,"type":"number"},"shape":{"enum":["SQUARE","CIRCLE"],"type":"string"},"size":{"maximum":20,"minimum":3,"type":"number"}},"required":["enabled","size","inset","shape"],"type":"object"},"timing":{"properties":{"edge":{"enum":["LEFT","RIGHT","BOTH"],"type":"string"},"enabled":{"type":"boolean"},"gap":{"maximum":20,"minimum":1,"type":"number"},"height":{"maximum":10,"minimum":1,"type":"number"},"inset":{"maximum":40,"minimum":0,"type":"number"},"offsetBottom":{"maximum":200,"minimum":0,"type":"number"},"offsetTop":{"maximum":200,"minimum":0,"type":"number"},"width":{"maximum":20,"minimum":2,"type":"number"}},"required":["enabled","edge","width","height","gap","inset","offsetTop","offsetBottom"],"type":"object"}},"required":["corners","timing"],"type":"object"},"schemaVersion":{"enum":[1],"type":"number"},"source":{"default":"DESIGNED","enum":["DESIGNED","EXTERNAL"],"type":"string"}},"required":["schemaVersion","page","registration","editorGrid","elements"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"issues":{"items":{"additionalProperties":false,"properties":{"code":{"type":"string"},"message":{"type":"string"},"params":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]},"type":"object"},"path":{"type":"string"}},"required":["path","code","message"],"type":"object"},"type":"array"},"layoutIssues":{"items":{"additionalProperties":false,"properties":{"code":{"enum":["ELEMENT_OUT_OF_PAGE","ELEMENT_IN_MARGIN","ELEMENT_OVERLAPS_REGISTRATION","ELEMENT_NEAR_REGISTRATION","GRID_OVERLAP","ELEMENT_OVERLAPS_GRID","DUPLICATE_FIELD_KEY","BUBBLE_TOO_SMALL","BUBBLE_GAP_TOO_SMALL","NO_ANSWER_GRID","NO_IDENTITY_FIELD","CORNER_MARKS_DISABLED","QUESTION_NUMBERS_BEYOND_TOTAL","HIDDEN_GRID"],"type":"string"},"elementIds":{"items":{"type":"string"},"type":"array"},"pageIndex":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"params":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"}]},"type":"object"},"severity":{"enum":["ERROR","WARNING"],"type":"string"}},"required":["code","severity","elementIds","pageIndex","params"],"type":"object"},"type":"array"},"publishable":{"type":"boolean"},"summary":{"additionalProperties":false,"properties":{"bubbleCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"elementCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"fields":{"items":{"additionalProperties":false,"properties":{"fieldKey":{"type":"string"},"itemCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"optionCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"role":{"type":"string"}},"required":["fieldKey","role","itemCount","optionCount"],"type":"object"},"type":"array"},"gridCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"registrationMarks":{"additionalProperties":false,"properties":{"corners":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"timing":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["corners","timing"],"type":"object"}},"required":["elementCount","gridCount","bubbleCount","fields","registrationMarks"],"type":"object"}},"required":["publishable","issues","layoutIssues","summary"],"type":"object"}}},"description":"Whether the document can be published, what stops it, and what it holds"}},"summary":"Validates the document against publish rules (does not save)","tags":["Sheet templates"]}},"/api/v1/sheet-templates/{id}":{"delete":{"operationId":"sheetTemplatesRemove","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"No content"}},"summary":"Deletes the template (if not used in a project)","tags":["Sheet templates"]},"get":{"operationId":"sheetTemplatesDetail","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"createdBy":{"additionalProperties":false,"nullable":true,"properties":{"displayName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["id","displayName"],"type":"object"},"deletedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"description":{"type":"string"},"document":{"additionalProperties":false,"properties":{"editorGrid":{"additionalProperties":false,"properties":{"color":{"type":"string"},"size":{"maximum":50,"minimum":0.5,"type":"number"},"snap":{"maximum":50,"minimum":0,"type":"number"},"style":{"enum":["NONE","DOTS","LINES"],"type":"string"}},"required":["style","size","snap","color"],"type":"object"},"elements":{"items":{"oneOf":[{"additionalProperties":false,"properties":{"autoShrink":{"type":"boolean"},"background":{"nullable":true,"type":"string"},"border":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"padding":{"additionalProperties":false,"properties":{"bottom":{"maximum":200,"minimum":0,"type":"number"},"left":{"maximum":200,"minimum":0,"type":"number"},"right":{"maximum":200,"minimum":0,"type":"number"},"top":{"maximum":200,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"text":{"maxLength":4000,"type":"string"},"type":{"enum":["TEXT"],"type":"string"},"typography":{"additionalProperties":false,"properties":{"align":{"enum":["LEFT","CENTER","RIGHT","JUSTIFY"],"type":"string"},"color":{"type":"string"},"family":{"enum":["SANS","SANS_CONDENSED","SERIF","MONO"],"type":"string"},"italic":{"type":"boolean"},"letterSpacing":{"maximum":20,"minimum":-5,"type":"number"},"lineHeight":{"maximum":4,"minimum":0.7,"type":"number"},"size":{"maximum":400,"minimum":1,"type":"number"},"underline":{"type":"boolean"},"verticalAlign":{"enum":["TOP","MIDDLE","BOTTOM"],"type":"string"},"weight":{"anyOf":[{"enum":[400],"type":"number"},{"enum":[700],"type":"number"}]}},"required":["family","size","weight","italic","underline","align","verticalAlign","lineHeight","letterSpacing","color"],"type":"object"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","text","typography","padding","background","border","autoShrink"],"type":"object"},{"additionalProperties":false,"properties":{"assetId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"border":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"fit":{"enum":["CONTAIN","COVER","FILL"],"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"reference":{"default":false,"type":"boolean"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"type":{"enum":["IMAGE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","assetId","fit","border","reference"],"type":"object"},{"additionalProperties":false,"properties":{"fill":{"nullable":true,"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"radius":{"maximum":100,"minimum":0,"type":"number"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"type":{"enum":["RECT"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","fill","stroke","radius"],"type":"object"},{"additionalProperties":false,"properties":{"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"type":{"enum":["LINE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","stroke"],"type":"object"},{"additionalProperties":false,"properties":{"background":{"type":"string"},"customValue":{"maxLength":512,"nullable":true,"type":"string"},"errorCorrection":{"enum":["L","M","Q","H"],"type":"string"},"foreground":{"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"quietZone":{"maximum":8,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"source":{"enum":["SHEET_TOKEN","PROJECT_CODE","CUSTOM"],"type":"string"},"type":{"enum":["QR"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","source","customValue","errorCorrection","quietZone","foreground","background"],"type":"object"},{"additionalProperties":false,"properties":{"background":{"type":"string"},"customValue":{"maxLength":128,"nullable":true,"type":"string"},"foreground":{"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"quietZone":{"maximum":20,"minimum":0,"type":"number"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"showText":{"type":"boolean"},"source":{"enum":["SHEET_TOKEN","PROJECT_CODE","CUSTOM"],"type":"string"},"symbology":{"enum":["CODE128","CODE39","EAN13","ITF14"],"type":"string"},"type":{"enum":["BARCODE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","symbology","source","customValue","showText","quietZone","foreground","background"],"type":"object"},{"additionalProperties":false,"properties":{"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"itemCount":{"maximum":500,"minimum":1,"type":"integer"},"labels":{"additionalProperties":false,"properties":{"color":{"type":"string"},"custom":{"items":{"maxLength":40,"type":"string"},"maxItems":40,"type":"array"},"itemGutter":{"maximum":150,"minimum":0,"type":"number"},"itemTexts":{"default":[],"items":{"maxLength":160,"type":"string"},"maxItems":500,"type":"array"},"kind":{"enum":["LETTERS","TR_LETTERS","DIGITS","CUSTOM","NONE"],"type":"string"},"numberWidth":{"default":0,"maximum":4,"minimum":0,"type":"integer"},"optionGutter":{"maximum":60,"minimum":0,"type":"number"},"showItemNumbers":{"type":"boolean"},"showOptionLabels":{"type":"boolean"},"size":{"maximum":48,"minimum":1,"type":"number"}},"required":["kind","custom","showItemNumbers","numberWidth","itemGutter","itemTexts","showOptionLabels","optionGutter","size","color"],"type":"object"},"layout":{"additionalProperties":false,"properties":{"blockGap":{"maximum":100,"minimum":0,"type":"number"},"blocks":{"maximum":20,"minimum":1,"type":"integer"},"bubble":{"additionalProperties":false,"properties":{"shape":{"enum":["CIRCLE","SQUARE","ROUNDED","ELLIPSE"],"type":"string"},"size":{"maximum":15,"minimum":2,"type":"number"}},"required":["shape","size"],"type":"object"},"direction":{"enum":["VERTICAL","HORIZONTAL"],"type":"string"},"flow":{"enum":["COLUMN_MAJOR","ROW_MAJOR"],"type":"string"},"itemGap":{"maximum":50,"minimum":0,"type":"number"},"optionGap":{"maximum":50,"minimum":0,"type":"number"},"padding":{"additionalProperties":false,"properties":{"bottom":{"maximum":200,"minimum":0,"type":"number"},"left":{"maximum":200,"minimum":0,"type":"number"},"right":{"maximum":200,"minimum":0,"type":"number"},"top":{"maximum":200,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"}},"required":["direction","flow","blocks","blockGap","bubble","itemGap","optionGap","padding"],"type":"object"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"optionCount":{"maximum":40,"minimum":2,"type":"integer"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"placement":{"additionalProperties":false,"default":null,"nullable":true,"properties":{"items":{"items":{"additionalProperties":false,"properties":{"options":{"items":{"additionalProperties":false,"properties":{"height":{"maximum":200,"minimum":1,"type":"number"},"width":{"maximum":200,"minimum":1,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"maxItems":40,"minItems":2,"type":"array"},"pageIndex":{"maximum":15,"minimum":0,"type":"integer"}},"required":["pageIndex","options"],"type":"object"},"maxItems":500,"minItems":1,"type":"array"}},"required":["items"],"type":"object"},"role":{"enum":["ANSWERS","STUDENT_ID","BOOKLET","TEXT_FIELD","CUSTOM"],"type":"string"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"startIndex":{"maximum":9999,"minimum":0,"type":"integer"},"style":{"additionalProperties":false,"properties":{"background":{"nullable":true,"type":"string"},"border":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"bubbleFill":{"nullable":true,"type":"string"},"bubbleStroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"insideLabelColor":{"default":"#5C6879","type":"string"},"labelInsideBubble":{"type":"boolean"},"rowStripe":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"primary":{"type":"string"},"secondary":{"type":"string"}},"required":["enabled","primary","secondary"],"type":"object"},"separators":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke"],"type":"object"}},"required":["bubbleStroke","bubbleFill","labelInsideBubble","insideLabelColor","border","background","rowStripe","separators"],"type":"object"},"type":{"enum":["BUBBLE_GRID"],"type":"string"},"writeBoxes":{"additionalProperties":false,"default":{"enabled":false,"gap":1.6,"height":7,"stroke":{"color":"#111827","style":"SOLID","width":0.3}},"properties":{"enabled":{"type":"boolean"},"gap":{"default":0,"maximum":20,"minimum":0,"type":"number"},"height":{"maximum":40,"minimum":3,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","height","gap","stroke"],"type":"object"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","role","fieldKey","itemCount","optionCount","startIndex","labels","writeBoxes","layout","style","placement"],"type":"object"}]},"maxItems":500,"type":"array"},"page":{"additionalProperties":false,"properties":{"background":{"type":"string"},"format":{"enum":["A3","A4","A5","LETTER","LEGAL","CUSTOM"],"type":"string"},"height":{"maximum":2000,"minimum":50,"type":"number"},"margins":{"additionalProperties":false,"properties":{"bottom":{"maximum":2000,"minimum":0,"type":"number"},"left":{"maximum":2000,"minimum":0,"type":"number"},"right":{"maximum":2000,"minimum":0,"type":"number"},"top":{"maximum":2000,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"},"orientation":{"enum":["PORTRAIT","LANDSCAPE"],"type":"string"},"width":{"maximum":2000,"minimum":50,"type":"number"}},"required":["format","orientation","width","height","margins","background"],"type":"object"},"pageCount":{"default":1,"maximum":16,"minimum":1,"type":"integer"},"registration":{"additionalProperties":false,"properties":{"corners":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"inset":{"maximum":40,"minimum":2,"type":"number"},"shape":{"enum":["SQUARE","CIRCLE"],"type":"string"},"size":{"maximum":20,"minimum":3,"type":"number"}},"required":["enabled","size","inset","shape"],"type":"object"},"timing":{"additionalProperties":false,"properties":{"edge":{"enum":["LEFT","RIGHT","BOTH"],"type":"string"},"enabled":{"type":"boolean"},"gap":{"maximum":20,"minimum":1,"type":"number"},"height":{"maximum":10,"minimum":1,"type":"number"},"inset":{"maximum":40,"minimum":0,"type":"number"},"offsetBottom":{"maximum":200,"minimum":0,"type":"number"},"offsetTop":{"maximum":200,"minimum":0,"type":"number"},"width":{"maximum":20,"minimum":2,"type":"number"}},"required":["enabled","edge","width","height","gap","inset","offsetTop","offsetBottom"],"type":"object"}},"required":["corners","timing"],"type":"object"},"schemaVersion":{"enum":[1],"type":"number"},"source":{"default":"DESIGNED","enum":["DESIGNED","EXTERNAL"],"type":"string"}},"required":["schemaVersion","source","page","registration","editorGrid","pageCount","elements"],"type":"object"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"name":{"type":"string"},"organizationId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"pageFormat":{"enum":["A3","A4","A5","LETTER","LEGAL","CUSTOM"],"type":"string"},"pageOrientation":{"enum":["PORTRAIT","LANDSCAPE"],"type":"string"},"questionCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"status":{"enum":["DRAFT","PUBLISHED","ARCHIVED"],"type":"string"},"thumbnailUrl":{"nullable":true,"type":"string"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"updatedBy":{"additionalProperties":false,"nullable":true,"properties":{"displayName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["id","displayName"],"type":"object"},"usedByProjectCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"version":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["id","organizationId","name","description","status","version","pageFormat","pageOrientation","questionCount","thumbnailUrl","usedByProjectCount","createdAt","updatedAt","deletedAt","createdBy","updatedBy","document"],"type":"object"}}},"description":"OK"}},"summary":"Fetches the template and its document","tags":["Sheet templates"]},"put":{"operationId":"sheetTemplatesUpdate","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"description":{"maxLength":2000,"type":"string"},"document":{"properties":{"editorGrid":{"properties":{"color":{"type":"string"},"size":{"maximum":50,"minimum":0.5,"type":"number"},"snap":{"maximum":50,"minimum":0,"type":"number"},"style":{"enum":["NONE","DOTS","LINES"],"type":"string"}},"required":["style","size","snap","color"],"type":"object"},"elements":{"items":{"oneOf":[{"properties":{"autoShrink":{"type":"boolean"},"background":{"nullable":true,"type":"string"},"border":{"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"frame":{"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"padding":{"properties":{"bottom":{"maximum":200,"minimum":0,"type":"number"},"left":{"maximum":200,"minimum":0,"type":"number"},"right":{"maximum":200,"minimum":0,"type":"number"},"top":{"maximum":200,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"text":{"maxLength":4000,"type":"string"},"type":{"enum":["TEXT"],"type":"string"},"typography":{"properties":{"align":{"enum":["LEFT","CENTER","RIGHT","JUSTIFY"],"type":"string"},"color":{"type":"string"},"family":{"enum":["SANS","SANS_CONDENSED","SERIF","MONO"],"type":"string"},"italic":{"type":"boolean"},"letterSpacing":{"maximum":20,"minimum":-5,"type":"number"},"lineHeight":{"maximum":4,"minimum":0.7,"type":"number"},"size":{"maximum":400,"minimum":1,"type":"number"},"underline":{"type":"boolean"},"verticalAlign":{"enum":["TOP","MIDDLE","BOTTOM"],"type":"string"},"weight":{"anyOf":[{"enum":[400],"type":"number"},{"enum":[700],"type":"number"}]}},"required":["family","size","weight","italic","underline","align","verticalAlign","lineHeight","letterSpacing","color"],"type":"object"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","frame","rotation","z","locked","hidden","opacity","type","text","typography","padding","background","border","autoShrink"],"type":"object"},{"properties":{"assetId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"border":{"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"fit":{"enum":["CONTAIN","COVER","FILL"],"type":"string"},"frame":{"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"reference":{"default":false,"type":"boolean"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"type":{"enum":["IMAGE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","frame","rotation","z","locked","hidden","opacity","type","assetId","fit","border"],"type":"object"},{"properties":{"fill":{"nullable":true,"type":"string"},"frame":{"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"radius":{"maximum":100,"minimum":0,"type":"number"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"stroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"type":{"enum":["RECT"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","frame","rotation","z","locked","hidden","opacity","type","fill","stroke","radius"],"type":"object"},{"properties":{"frame":{"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"stroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"type":{"enum":["LINE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","frame","rotation","z","locked","hidden","opacity","type","stroke"],"type":"object"},{"properties":{"background":{"type":"string"},"customValue":{"maxLength":512,"nullable":true,"type":"string"},"errorCorrection":{"enum":["L","M","Q","H"],"type":"string"},"foreground":{"type":"string"},"frame":{"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"quietZone":{"maximum":8,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"source":{"enum":["SHEET_TOKEN","PROJECT_CODE","CUSTOM"],"type":"string"},"type":{"enum":["QR"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","frame","rotation","z","locked","hidden","opacity","type","source","customValue","errorCorrection","quietZone","foreground","background"],"type":"object"},{"properties":{"background":{"type":"string"},"customValue":{"maxLength":128,"nullable":true,"type":"string"},"foreground":{"type":"string"},"frame":{"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"quietZone":{"maximum":20,"minimum":0,"type":"number"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"showText":{"type":"boolean"},"source":{"enum":["SHEET_TOKEN","PROJECT_CODE","CUSTOM"],"type":"string"},"symbology":{"enum":["CODE128","CODE39","EAN13","ITF14"],"type":"string"},"type":{"enum":["BARCODE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","frame","rotation","z","locked","hidden","opacity","type","symbology","source","customValue","showText","quietZone","foreground","background"],"type":"object"},{"properties":{"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"frame":{"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"itemCount":{"maximum":500,"minimum":1,"type":"integer"},"labels":{"properties":{"color":{"type":"string"},"custom":{"items":{"maxLength":40,"type":"string"},"maxItems":40,"type":"array"},"itemGutter":{"maximum":150,"minimum":0,"type":"number"},"itemTexts":{"default":[],"items":{"maxLength":160,"type":"string"},"maxItems":500,"type":"array"},"kind":{"enum":["LETTERS","TR_LETTERS","DIGITS","CUSTOM","NONE"],"type":"string"},"numberWidth":{"default":0,"maximum":4,"minimum":0,"type":"integer"},"optionGutter":{"maximum":60,"minimum":0,"type":"number"},"showItemNumbers":{"type":"boolean"},"showOptionLabels":{"type":"boolean"},"size":{"maximum":48,"minimum":1,"type":"number"}},"required":["kind","custom","showItemNumbers","itemGutter","showOptionLabels","optionGutter","size","color"],"type":"object"},"layout":{"properties":{"blockGap":{"maximum":100,"minimum":0,"type":"number"},"blocks":{"maximum":20,"minimum":1,"type":"integer"},"bubble":{"properties":{"shape":{"enum":["CIRCLE","SQUARE","ROUNDED","ELLIPSE"],"type":"string"},"size":{"maximum":15,"minimum":2,"type":"number"}},"required":["shape","size"],"type":"object"},"direction":{"enum":["VERTICAL","HORIZONTAL"],"type":"string"},"flow":{"enum":["COLUMN_MAJOR","ROW_MAJOR"],"type":"string"},"itemGap":{"maximum":50,"minimum":0,"type":"number"},"optionGap":{"maximum":50,"minimum":0,"type":"number"},"padding":{"properties":{"bottom":{"maximum":200,"minimum":0,"type":"number"},"left":{"maximum":200,"minimum":0,"type":"number"},"right":{"maximum":200,"minimum":0,"type":"number"},"top":{"maximum":200,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"}},"required":["direction","flow","blocks","blockGap","bubble","itemGap","optionGap","padding"],"type":"object"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"optionCount":{"maximum":40,"minimum":2,"type":"integer"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"placement":{"default":null,"nullable":true,"properties":{"items":{"items":{"properties":{"options":{"items":{"properties":{"height":{"maximum":200,"minimum":1,"type":"number"},"width":{"maximum":200,"minimum":1,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"maxItems":40,"minItems":2,"type":"array"},"pageIndex":{"maximum":15,"minimum":0,"type":"integer"}},"required":["pageIndex","options"],"type":"object"},"maxItems":500,"minItems":1,"type":"array"}},"required":["items"],"type":"object"},"role":{"enum":["ANSWERS","STUDENT_ID","BOOKLET","TEXT_FIELD","CUSTOM"],"type":"string"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"startIndex":{"maximum":9999,"minimum":0,"type":"integer"},"style":{"properties":{"background":{"nullable":true,"type":"string"},"border":{"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"bubbleFill":{"nullable":true,"type":"string"},"bubbleStroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"insideLabelColor":{"default":"#5C6879","type":"string"},"labelInsideBubble":{"type":"boolean"},"rowStripe":{"properties":{"enabled":{"type":"boolean"},"primary":{"type":"string"},"secondary":{"type":"string"}},"required":["enabled","primary","secondary"],"type":"object"},"separators":{"properties":{"enabled":{"type":"boolean"},"stroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke"],"type":"object"}},"required":["bubbleStroke","bubbleFill","labelInsideBubble","border","background","rowStripe","separators"],"type":"object"},"type":{"enum":["BUBBLE_GRID"],"type":"string"},"writeBoxes":{"default":{"enabled":false,"gap":1.6,"height":7,"stroke":{"color":"#111827","style":"SOLID","width":0.3}},"properties":{"enabled":{"type":"boolean"},"gap":{"default":0,"maximum":20,"minimum":0,"type":"number"},"height":{"maximum":40,"minimum":3,"type":"number"},"stroke":{"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","height","stroke"],"type":"object"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","frame","rotation","z","locked","hidden","opacity","type","role","fieldKey","itemCount","optionCount","startIndex","labels","layout","style"],"type":"object"}]},"maxItems":500,"type":"array"},"page":{"properties":{"background":{"type":"string"},"format":{"enum":["A3","A4","A5","LETTER","LEGAL","CUSTOM"],"type":"string"},"height":{"maximum":2000,"minimum":50,"type":"number"},"margins":{"properties":{"bottom":{"maximum":2000,"minimum":0,"type":"number"},"left":{"maximum":2000,"minimum":0,"type":"number"},"right":{"maximum":2000,"minimum":0,"type":"number"},"top":{"maximum":2000,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"},"orientation":{"enum":["PORTRAIT","LANDSCAPE"],"type":"string"},"width":{"maximum":2000,"minimum":50,"type":"number"}},"required":["format","orientation","width","height","margins","background"],"type":"object"},"pageCount":{"default":1,"maximum":16,"minimum":1,"type":"integer"},"registration":{"properties":{"corners":{"properties":{"enabled":{"type":"boolean"},"inset":{"maximum":40,"minimum":2,"type":"number"},"shape":{"enum":["SQUARE","CIRCLE"],"type":"string"},"size":{"maximum":20,"minimum":3,"type":"number"}},"required":["enabled","size","inset","shape"],"type":"object"},"timing":{"properties":{"edge":{"enum":["LEFT","RIGHT","BOTH"],"type":"string"},"enabled":{"type":"boolean"},"gap":{"maximum":20,"minimum":1,"type":"number"},"height":{"maximum":10,"minimum":1,"type":"number"},"inset":{"maximum":40,"minimum":0,"type":"number"},"offsetBottom":{"maximum":200,"minimum":0,"type":"number"},"offsetTop":{"maximum":200,"minimum":0,"type":"number"},"width":{"maximum":20,"minimum":2,"type":"number"}},"required":["enabled","edge","width","height","gap","inset","offsetTop","offsetBottom"],"type":"object"}},"required":["corners","timing"],"type":"object"},"schemaVersion":{"enum":[1],"type":"number"},"source":{"default":"DESIGNED","enum":["DESIGNED","EXTERNAL"],"type":"string"}},"required":["schemaVersion","page","registration","editorGrid","elements"],"type":"object"},"expectedVersion":{"maximum":9007199254740991,"minimum":1,"type":"integer"},"name":{"maxLength":120,"minLength":1,"type":"string"}},"required":["expectedVersion"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"createdBy":{"additionalProperties":false,"nullable":true,"properties":{"displayName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["id","displayName"],"type":"object"},"deletedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"description":{"type":"string"},"document":{"additionalProperties":false,"properties":{"editorGrid":{"additionalProperties":false,"properties":{"color":{"type":"string"},"size":{"maximum":50,"minimum":0.5,"type":"number"},"snap":{"maximum":50,"minimum":0,"type":"number"},"style":{"enum":["NONE","DOTS","LINES"],"type":"string"}},"required":["style","size","snap","color"],"type":"object"},"elements":{"items":{"oneOf":[{"additionalProperties":false,"properties":{"autoShrink":{"type":"boolean"},"background":{"nullable":true,"type":"string"},"border":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"padding":{"additionalProperties":false,"properties":{"bottom":{"maximum":200,"minimum":0,"type":"number"},"left":{"maximum":200,"minimum":0,"type":"number"},"right":{"maximum":200,"minimum":0,"type":"number"},"top":{"maximum":200,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"text":{"maxLength":4000,"type":"string"},"type":{"enum":["TEXT"],"type":"string"},"typography":{"additionalProperties":false,"properties":{"align":{"enum":["LEFT","CENTER","RIGHT","JUSTIFY"],"type":"string"},"color":{"type":"string"},"family":{"enum":["SANS","SANS_CONDENSED","SERIF","MONO"],"type":"string"},"italic":{"type":"boolean"},"letterSpacing":{"maximum":20,"minimum":-5,"type":"number"},"lineHeight":{"maximum":4,"minimum":0.7,"type":"number"},"size":{"maximum":400,"minimum":1,"type":"number"},"underline":{"type":"boolean"},"verticalAlign":{"enum":["TOP","MIDDLE","BOTTOM"],"type":"string"},"weight":{"anyOf":[{"enum":[400],"type":"number"},{"enum":[700],"type":"number"}]}},"required":["family","size","weight","italic","underline","align","verticalAlign","lineHeight","letterSpacing","color"],"type":"object"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","text","typography","padding","background","border","autoShrink"],"type":"object"},{"additionalProperties":false,"properties":{"assetId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"border":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"fit":{"enum":["CONTAIN","COVER","FILL"],"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"reference":{"default":false,"type":"boolean"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"type":{"enum":["IMAGE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","assetId","fit","border","reference"],"type":"object"},{"additionalProperties":false,"properties":{"fill":{"nullable":true,"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"radius":{"maximum":100,"minimum":0,"type":"number"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"type":{"enum":["RECT"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","fill","stroke","radius"],"type":"object"},{"additionalProperties":false,"properties":{"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"type":{"enum":["LINE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","stroke"],"type":"object"},{"additionalProperties":false,"properties":{"background":{"type":"string"},"customValue":{"maxLength":512,"nullable":true,"type":"string"},"errorCorrection":{"enum":["L","M","Q","H"],"type":"string"},"foreground":{"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"quietZone":{"maximum":8,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"source":{"enum":["SHEET_TOKEN","PROJECT_CODE","CUSTOM"],"type":"string"},"type":{"enum":["QR"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","source","customValue","errorCorrection","quietZone","foreground","background"],"type":"object"},{"additionalProperties":false,"properties":{"background":{"type":"string"},"customValue":{"maxLength":128,"nullable":true,"type":"string"},"foreground":{"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"quietZone":{"maximum":20,"minimum":0,"type":"number"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"showText":{"type":"boolean"},"source":{"enum":["SHEET_TOKEN","PROJECT_CODE","CUSTOM"],"type":"string"},"symbology":{"enum":["CODE128","CODE39","EAN13","ITF14"],"type":"string"},"type":{"enum":["BARCODE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","symbology","source","customValue","showText","quietZone","foreground","background"],"type":"object"},{"additionalProperties":false,"properties":{"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"itemCount":{"maximum":500,"minimum":1,"type":"integer"},"labels":{"additionalProperties":false,"properties":{"color":{"type":"string"},"custom":{"items":{"maxLength":40,"type":"string"},"maxItems":40,"type":"array"},"itemGutter":{"maximum":150,"minimum":0,"type":"number"},"itemTexts":{"default":[],"items":{"maxLength":160,"type":"string"},"maxItems":500,"type":"array"},"kind":{"enum":["LETTERS","TR_LETTERS","DIGITS","CUSTOM","NONE"],"type":"string"},"numberWidth":{"default":0,"maximum":4,"minimum":0,"type":"integer"},"optionGutter":{"maximum":60,"minimum":0,"type":"number"},"showItemNumbers":{"type":"boolean"},"showOptionLabels":{"type":"boolean"},"size":{"maximum":48,"minimum":1,"type":"number"}},"required":["kind","custom","showItemNumbers","numberWidth","itemGutter","itemTexts","showOptionLabels","optionGutter","size","color"],"type":"object"},"layout":{"additionalProperties":false,"properties":{"blockGap":{"maximum":100,"minimum":0,"type":"number"},"blocks":{"maximum":20,"minimum":1,"type":"integer"},"bubble":{"additionalProperties":false,"properties":{"shape":{"enum":["CIRCLE","SQUARE","ROUNDED","ELLIPSE"],"type":"string"},"size":{"maximum":15,"minimum":2,"type":"number"}},"required":["shape","size"],"type":"object"},"direction":{"enum":["VERTICAL","HORIZONTAL"],"type":"string"},"flow":{"enum":["COLUMN_MAJOR","ROW_MAJOR"],"type":"string"},"itemGap":{"maximum":50,"minimum":0,"type":"number"},"optionGap":{"maximum":50,"minimum":0,"type":"number"},"padding":{"additionalProperties":false,"properties":{"bottom":{"maximum":200,"minimum":0,"type":"number"},"left":{"maximum":200,"minimum":0,"type":"number"},"right":{"maximum":200,"minimum":0,"type":"number"},"top":{"maximum":200,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"}},"required":["direction","flow","blocks","blockGap","bubble","itemGap","optionGap","padding"],"type":"object"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"optionCount":{"maximum":40,"minimum":2,"type":"integer"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"placement":{"additionalProperties":false,"default":null,"nullable":true,"properties":{"items":{"items":{"additionalProperties":false,"properties":{"options":{"items":{"additionalProperties":false,"properties":{"height":{"maximum":200,"minimum":1,"type":"number"},"width":{"maximum":200,"minimum":1,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"maxItems":40,"minItems":2,"type":"array"},"pageIndex":{"maximum":15,"minimum":0,"type":"integer"}},"required":["pageIndex","options"],"type":"object"},"maxItems":500,"minItems":1,"type":"array"}},"required":["items"],"type":"object"},"role":{"enum":["ANSWERS","STUDENT_ID","BOOKLET","TEXT_FIELD","CUSTOM"],"type":"string"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"startIndex":{"maximum":9999,"minimum":0,"type":"integer"},"style":{"additionalProperties":false,"properties":{"background":{"nullable":true,"type":"string"},"border":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"bubbleFill":{"nullable":true,"type":"string"},"bubbleStroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"insideLabelColor":{"default":"#5C6879","type":"string"},"labelInsideBubble":{"type":"boolean"},"rowStripe":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"primary":{"type":"string"},"secondary":{"type":"string"}},"required":["enabled","primary","secondary"],"type":"object"},"separators":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke"],"type":"object"}},"required":["bubbleStroke","bubbleFill","labelInsideBubble","insideLabelColor","border","background","rowStripe","separators"],"type":"object"},"type":{"enum":["BUBBLE_GRID"],"type":"string"},"writeBoxes":{"additionalProperties":false,"default":{"enabled":false,"gap":1.6,"height":7,"stroke":{"color":"#111827","style":"SOLID","width":0.3}},"properties":{"enabled":{"type":"boolean"},"gap":{"default":0,"maximum":20,"minimum":0,"type":"number"},"height":{"maximum":40,"minimum":3,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","height","gap","stroke"],"type":"object"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","role","fieldKey","itemCount","optionCount","startIndex","labels","writeBoxes","layout","style","placement"],"type":"object"}]},"maxItems":500,"type":"array"},"page":{"additionalProperties":false,"properties":{"background":{"type":"string"},"format":{"enum":["A3","A4","A5","LETTER","LEGAL","CUSTOM"],"type":"string"},"height":{"maximum":2000,"minimum":50,"type":"number"},"margins":{"additionalProperties":false,"properties":{"bottom":{"maximum":2000,"minimum":0,"type":"number"},"left":{"maximum":2000,"minimum":0,"type":"number"},"right":{"maximum":2000,"minimum":0,"type":"number"},"top":{"maximum":2000,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"},"orientation":{"enum":["PORTRAIT","LANDSCAPE"],"type":"string"},"width":{"maximum":2000,"minimum":50,"type":"number"}},"required":["format","orientation","width","height","margins","background"],"type":"object"},"pageCount":{"default":1,"maximum":16,"minimum":1,"type":"integer"},"registration":{"additionalProperties":false,"properties":{"corners":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"inset":{"maximum":40,"minimum":2,"type":"number"},"shape":{"enum":["SQUARE","CIRCLE"],"type":"string"},"size":{"maximum":20,"minimum":3,"type":"number"}},"required":["enabled","size","inset","shape"],"type":"object"},"timing":{"additionalProperties":false,"properties":{"edge":{"enum":["LEFT","RIGHT","BOTH"],"type":"string"},"enabled":{"type":"boolean"},"gap":{"maximum":20,"minimum":1,"type":"number"},"height":{"maximum":10,"minimum":1,"type":"number"},"inset":{"maximum":40,"minimum":0,"type":"number"},"offsetBottom":{"maximum":200,"minimum":0,"type":"number"},"offsetTop":{"maximum":200,"minimum":0,"type":"number"},"width":{"maximum":20,"minimum":2,"type":"number"}},"required":["enabled","edge","width","height","gap","inset","offsetTop","offsetBottom"],"type":"object"}},"required":["corners","timing"],"type":"object"},"schemaVersion":{"enum":[1],"type":"number"},"source":{"default":"DESIGNED","enum":["DESIGNED","EXTERNAL"],"type":"string"}},"required":["schemaVersion","source","page","registration","editorGrid","pageCount","elements"],"type":"object"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"name":{"type":"string"},"organizationId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"pageFormat":{"enum":["A3","A4","A5","LETTER","LEGAL","CUSTOM"],"type":"string"},"pageOrientation":{"enum":["PORTRAIT","LANDSCAPE"],"type":"string"},"questionCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"status":{"enum":["DRAFT","PUBLISHED","ARCHIVED"],"type":"string"},"thumbnailUrl":{"nullable":true,"type":"string"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"updatedBy":{"additionalProperties":false,"nullable":true,"properties":{"displayName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["id","displayName"],"type":"object"},"usedByProjectCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"version":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["id","organizationId","name","description","status","version","pageFormat","pageOrientation","questionCount","thumbnailUrl","usedByProjectCount","createdAt","updatedAt","deletedAt","createdBy","updatedBy","document"],"type":"object"}}},"description":"OK"}},"summary":"Updates the template (optimistic locking)","tags":["Sheet templates"]}},"/api/v1/sheet-templates/{id}/archive":{"post":{"operationId":"sheetTemplatesArchive","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"204":{"description":"No content"}},"summary":"Archives the template","tags":["Sheet templates"]}},"/api/v1/sheet-templates/{id}/duplicate":{"post":{"operationId":"sheetTemplatesDuplicate","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"name":{"maxLength":120,"minLength":1,"type":"string"}},"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"createdBy":{"additionalProperties":false,"nullable":true,"properties":{"displayName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["id","displayName"],"type":"object"},"deletedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"description":{"type":"string"},"document":{"additionalProperties":false,"properties":{"editorGrid":{"additionalProperties":false,"properties":{"color":{"type":"string"},"size":{"maximum":50,"minimum":0.5,"type":"number"},"snap":{"maximum":50,"minimum":0,"type":"number"},"style":{"enum":["NONE","DOTS","LINES"],"type":"string"}},"required":["style","size","snap","color"],"type":"object"},"elements":{"items":{"oneOf":[{"additionalProperties":false,"properties":{"autoShrink":{"type":"boolean"},"background":{"nullable":true,"type":"string"},"border":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"padding":{"additionalProperties":false,"properties":{"bottom":{"maximum":200,"minimum":0,"type":"number"},"left":{"maximum":200,"minimum":0,"type":"number"},"right":{"maximum":200,"minimum":0,"type":"number"},"top":{"maximum":200,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"text":{"maxLength":4000,"type":"string"},"type":{"enum":["TEXT"],"type":"string"},"typography":{"additionalProperties":false,"properties":{"align":{"enum":["LEFT","CENTER","RIGHT","JUSTIFY"],"type":"string"},"color":{"type":"string"},"family":{"enum":["SANS","SANS_CONDENSED","SERIF","MONO"],"type":"string"},"italic":{"type":"boolean"},"letterSpacing":{"maximum":20,"minimum":-5,"type":"number"},"lineHeight":{"maximum":4,"minimum":0.7,"type":"number"},"size":{"maximum":400,"minimum":1,"type":"number"},"underline":{"type":"boolean"},"verticalAlign":{"enum":["TOP","MIDDLE","BOTTOM"],"type":"string"},"weight":{"anyOf":[{"enum":[400],"type":"number"},{"enum":[700],"type":"number"}]}},"required":["family","size","weight","italic","underline","align","verticalAlign","lineHeight","letterSpacing","color"],"type":"object"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","text","typography","padding","background","border","autoShrink"],"type":"object"},{"additionalProperties":false,"properties":{"assetId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"border":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"fit":{"enum":["CONTAIN","COVER","FILL"],"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"reference":{"default":false,"type":"boolean"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"type":{"enum":["IMAGE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","assetId","fit","border","reference"],"type":"object"},{"additionalProperties":false,"properties":{"fill":{"nullable":true,"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"radius":{"maximum":100,"minimum":0,"type":"number"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"type":{"enum":["RECT"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","fill","stroke","radius"],"type":"object"},{"additionalProperties":false,"properties":{"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"type":{"enum":["LINE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","stroke"],"type":"object"},{"additionalProperties":false,"properties":{"background":{"type":"string"},"customValue":{"maxLength":512,"nullable":true,"type":"string"},"errorCorrection":{"enum":["L","M","Q","H"],"type":"string"},"foreground":{"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"quietZone":{"maximum":8,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"source":{"enum":["SHEET_TOKEN","PROJECT_CODE","CUSTOM"],"type":"string"},"type":{"enum":["QR"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","source","customValue","errorCorrection","quietZone","foreground","background"],"type":"object"},{"additionalProperties":false,"properties":{"background":{"type":"string"},"customValue":{"maxLength":128,"nullable":true,"type":"string"},"foreground":{"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"quietZone":{"maximum":20,"minimum":0,"type":"number"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"showText":{"type":"boolean"},"source":{"enum":["SHEET_TOKEN","PROJECT_CODE","CUSTOM"],"type":"string"},"symbology":{"enum":["CODE128","CODE39","EAN13","ITF14"],"type":"string"},"type":{"enum":["BARCODE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","symbology","source","customValue","showText","quietZone","foreground","background"],"type":"object"},{"additionalProperties":false,"properties":{"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"itemCount":{"maximum":500,"minimum":1,"type":"integer"},"labels":{"additionalProperties":false,"properties":{"color":{"type":"string"},"custom":{"items":{"maxLength":40,"type":"string"},"maxItems":40,"type":"array"},"itemGutter":{"maximum":150,"minimum":0,"type":"number"},"itemTexts":{"default":[],"items":{"maxLength":160,"type":"string"},"maxItems":500,"type":"array"},"kind":{"enum":["LETTERS","TR_LETTERS","DIGITS","CUSTOM","NONE"],"type":"string"},"numberWidth":{"default":0,"maximum":4,"minimum":0,"type":"integer"},"optionGutter":{"maximum":60,"minimum":0,"type":"number"},"showItemNumbers":{"type":"boolean"},"showOptionLabels":{"type":"boolean"},"size":{"maximum":48,"minimum":1,"type":"number"}},"required":["kind","custom","showItemNumbers","numberWidth","itemGutter","itemTexts","showOptionLabels","optionGutter","size","color"],"type":"object"},"layout":{"additionalProperties":false,"properties":{"blockGap":{"maximum":100,"minimum":0,"type":"number"},"blocks":{"maximum":20,"minimum":1,"type":"integer"},"bubble":{"additionalProperties":false,"properties":{"shape":{"enum":["CIRCLE","SQUARE","ROUNDED","ELLIPSE"],"type":"string"},"size":{"maximum":15,"minimum":2,"type":"number"}},"required":["shape","size"],"type":"object"},"direction":{"enum":["VERTICAL","HORIZONTAL"],"type":"string"},"flow":{"enum":["COLUMN_MAJOR","ROW_MAJOR"],"type":"string"},"itemGap":{"maximum":50,"minimum":0,"type":"number"},"optionGap":{"maximum":50,"minimum":0,"type":"number"},"padding":{"additionalProperties":false,"properties":{"bottom":{"maximum":200,"minimum":0,"type":"number"},"left":{"maximum":200,"minimum":0,"type":"number"},"right":{"maximum":200,"minimum":0,"type":"number"},"top":{"maximum":200,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"}},"required":["direction","flow","blocks","blockGap","bubble","itemGap","optionGap","padding"],"type":"object"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"optionCount":{"maximum":40,"minimum":2,"type":"integer"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"placement":{"additionalProperties":false,"default":null,"nullable":true,"properties":{"items":{"items":{"additionalProperties":false,"properties":{"options":{"items":{"additionalProperties":false,"properties":{"height":{"maximum":200,"minimum":1,"type":"number"},"width":{"maximum":200,"minimum":1,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"maxItems":40,"minItems":2,"type":"array"},"pageIndex":{"maximum":15,"minimum":0,"type":"integer"}},"required":["pageIndex","options"],"type":"object"},"maxItems":500,"minItems":1,"type":"array"}},"required":["items"],"type":"object"},"role":{"enum":["ANSWERS","STUDENT_ID","BOOKLET","TEXT_FIELD","CUSTOM"],"type":"string"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"startIndex":{"maximum":9999,"minimum":0,"type":"integer"},"style":{"additionalProperties":false,"properties":{"background":{"nullable":true,"type":"string"},"border":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"bubbleFill":{"nullable":true,"type":"string"},"bubbleStroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"insideLabelColor":{"default":"#5C6879","type":"string"},"labelInsideBubble":{"type":"boolean"},"rowStripe":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"primary":{"type":"string"},"secondary":{"type":"string"}},"required":["enabled","primary","secondary"],"type":"object"},"separators":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke"],"type":"object"}},"required":["bubbleStroke","bubbleFill","labelInsideBubble","insideLabelColor","border","background","rowStripe","separators"],"type":"object"},"type":{"enum":["BUBBLE_GRID"],"type":"string"},"writeBoxes":{"additionalProperties":false,"default":{"enabled":false,"gap":1.6,"height":7,"stroke":{"color":"#111827","style":"SOLID","width":0.3}},"properties":{"enabled":{"type":"boolean"},"gap":{"default":0,"maximum":20,"minimum":0,"type":"number"},"height":{"maximum":40,"minimum":3,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","height","gap","stroke"],"type":"object"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","role","fieldKey","itemCount","optionCount","startIndex","labels","writeBoxes","layout","style","placement"],"type":"object"}]},"maxItems":500,"type":"array"},"page":{"additionalProperties":false,"properties":{"background":{"type":"string"},"format":{"enum":["A3","A4","A5","LETTER","LEGAL","CUSTOM"],"type":"string"},"height":{"maximum":2000,"minimum":50,"type":"number"},"margins":{"additionalProperties":false,"properties":{"bottom":{"maximum":2000,"minimum":0,"type":"number"},"left":{"maximum":2000,"minimum":0,"type":"number"},"right":{"maximum":2000,"minimum":0,"type":"number"},"top":{"maximum":2000,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"},"orientation":{"enum":["PORTRAIT","LANDSCAPE"],"type":"string"},"width":{"maximum":2000,"minimum":50,"type":"number"}},"required":["format","orientation","width","height","margins","background"],"type":"object"},"pageCount":{"default":1,"maximum":16,"minimum":1,"type":"integer"},"registration":{"additionalProperties":false,"properties":{"corners":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"inset":{"maximum":40,"minimum":2,"type":"number"},"shape":{"enum":["SQUARE","CIRCLE"],"type":"string"},"size":{"maximum":20,"minimum":3,"type":"number"}},"required":["enabled","size","inset","shape"],"type":"object"},"timing":{"additionalProperties":false,"properties":{"edge":{"enum":["LEFT","RIGHT","BOTH"],"type":"string"},"enabled":{"type":"boolean"},"gap":{"maximum":20,"minimum":1,"type":"number"},"height":{"maximum":10,"minimum":1,"type":"number"},"inset":{"maximum":40,"minimum":0,"type":"number"},"offsetBottom":{"maximum":200,"minimum":0,"type":"number"},"offsetTop":{"maximum":200,"minimum":0,"type":"number"},"width":{"maximum":20,"minimum":2,"type":"number"}},"required":["enabled","edge","width","height","gap","inset","offsetTop","offsetBottom"],"type":"object"}},"required":["corners","timing"],"type":"object"},"schemaVersion":{"enum":[1],"type":"number"},"source":{"default":"DESIGNED","enum":["DESIGNED","EXTERNAL"],"type":"string"}},"required":["schemaVersion","source","page","registration","editorGrid","pageCount","elements"],"type":"object"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"name":{"type":"string"},"organizationId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"pageFormat":{"enum":["A3","A4","A5","LETTER","LEGAL","CUSTOM"],"type":"string"},"pageOrientation":{"enum":["PORTRAIT","LANDSCAPE"],"type":"string"},"questionCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"status":{"enum":["DRAFT","PUBLISHED","ARCHIVED"],"type":"string"},"thumbnailUrl":{"nullable":true,"type":"string"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"updatedBy":{"additionalProperties":false,"nullable":true,"properties":{"displayName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["id","displayName"],"type":"object"},"usedByProjectCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"version":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["id","organizationId","name","description","status","version","pageFormat","pageOrientation","questionCount","thumbnailUrl","usedByProjectCount","createdAt","updatedAt","deletedAt","createdBy","updatedBy","document"],"type":"object"}}},"description":"Created"}},"summary":"Duplicates the template","tags":["Sheet templates"]}},"/api/v1/sheet-templates/{id}/geometry":{"get":{"description":"For integrators reading the papers themselves: every mark on the sheet, in millimeters from the top-left corner, as the OMR engine sees it. The screen has no use for it.","operationId":"sheetTemplatesGeometry","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OK"}},"summary":"Returns the template's OMR coordinate map","tags":["Sheet templates"]}},"/api/v1/sheet-templates/{id}/paper-options":{"get":{"operationId":"sheetTemplatesPaperOptions","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"in":"query","name":"optionCount","required":false,"schema":{"default":5,"maximum":10,"minimum":2,"type":"integer"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"pages":{"items":{"items":{"items":{"additionalProperties":false,"properties":{"height":{"maximum":200,"minimum":1,"type":"number"},"width":{"maximum":200,"minimum":1,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"type":"array"},"type":"array"},"type":"array"}},"required":["pages"],"type":"object"}}},"description":"OK"}},"summary":"Finds the option boxes on each blank page of an exam paper made elsewhere","tags":["Sheet templates"]}},"/api/v1/sheet-templates/{id}/paper-pages":{"get":{"operationId":"sheetTemplatesPaperPages","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"pages":{"items":{"additionalProperties":false,"properties":{"assetId":{"type":"string"},"height":{"exclusiveMinimum":true,"maximum":9007199254740991,"minimum":0,"nullable":true,"type":"integer"},"pageIndex":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"url":{"type":"string"},"width":{"exclusiveMinimum":true,"maximum":9007199254740991,"minimum":0,"nullable":true,"type":"integer"}},"required":["pageIndex","assetId","url","width","height"],"type":"object"},"type":"array"}},"required":["pages"],"type":"object"}}},"description":"OK"}},"summary":"Lists the blank pages of an exam paper made elsewhere, with links to their images","tags":["Sheet templates"]}},"/api/v1/sheet-templates/{id}/publish":{"post":{"operationId":"sheetTemplatesPublish","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"expectedVersion":{"maximum":9007199254740991,"minimum":1,"type":"integer"}},"required":["expectedVersion"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"createdBy":{"additionalProperties":false,"nullable":true,"properties":{"displayName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["id","displayName"],"type":"object"},"deletedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"description":{"type":"string"},"document":{"additionalProperties":false,"properties":{"editorGrid":{"additionalProperties":false,"properties":{"color":{"type":"string"},"size":{"maximum":50,"minimum":0.5,"type":"number"},"snap":{"maximum":50,"minimum":0,"type":"number"},"style":{"enum":["NONE","DOTS","LINES"],"type":"string"}},"required":["style","size","snap","color"],"type":"object"},"elements":{"items":{"oneOf":[{"additionalProperties":false,"properties":{"autoShrink":{"type":"boolean"},"background":{"nullable":true,"type":"string"},"border":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"padding":{"additionalProperties":false,"properties":{"bottom":{"maximum":200,"minimum":0,"type":"number"},"left":{"maximum":200,"minimum":0,"type":"number"},"right":{"maximum":200,"minimum":0,"type":"number"},"top":{"maximum":200,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"text":{"maxLength":4000,"type":"string"},"type":{"enum":["TEXT"],"type":"string"},"typography":{"additionalProperties":false,"properties":{"align":{"enum":["LEFT","CENTER","RIGHT","JUSTIFY"],"type":"string"},"color":{"type":"string"},"family":{"enum":["SANS","SANS_CONDENSED","SERIF","MONO"],"type":"string"},"italic":{"type":"boolean"},"letterSpacing":{"maximum":20,"minimum":-5,"type":"number"},"lineHeight":{"maximum":4,"minimum":0.7,"type":"number"},"size":{"maximum":400,"minimum":1,"type":"number"},"underline":{"type":"boolean"},"verticalAlign":{"enum":["TOP","MIDDLE","BOTTOM"],"type":"string"},"weight":{"anyOf":[{"enum":[400],"type":"number"},{"enum":[700],"type":"number"}]}},"required":["family","size","weight","italic","underline","align","verticalAlign","lineHeight","letterSpacing","color"],"type":"object"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","text","typography","padding","background","border","autoShrink"],"type":"object"},{"additionalProperties":false,"properties":{"assetId":{"format":"uuid","nullable":true,"pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"border":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"fit":{"enum":["CONTAIN","COVER","FILL"],"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"reference":{"default":false,"type":"boolean"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"type":{"enum":["IMAGE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","assetId","fit","border","reference"],"type":"object"},{"additionalProperties":false,"properties":{"fill":{"nullable":true,"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"radius":{"maximum":100,"minimum":0,"type":"number"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"type":{"enum":["RECT"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","fill","stroke","radius"],"type":"object"},{"additionalProperties":false,"properties":{"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"type":{"enum":["LINE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","stroke"],"type":"object"},{"additionalProperties":false,"properties":{"background":{"type":"string"},"customValue":{"maxLength":512,"nullable":true,"type":"string"},"errorCorrection":{"enum":["L","M","Q","H"],"type":"string"},"foreground":{"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"quietZone":{"maximum":8,"minimum":0,"type":"integer"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"source":{"enum":["SHEET_TOKEN","PROJECT_CODE","CUSTOM"],"type":"string"},"type":{"enum":["QR"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","source","customValue","errorCorrection","quietZone","foreground","background"],"type":"object"},{"additionalProperties":false,"properties":{"background":{"type":"string"},"customValue":{"maxLength":128,"nullable":true,"type":"string"},"foreground":{"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"quietZone":{"maximum":20,"minimum":0,"type":"number"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"showText":{"type":"boolean"},"source":{"enum":["SHEET_TOKEN","PROJECT_CODE","CUSTOM"],"type":"string"},"symbology":{"enum":["CODE128","CODE39","EAN13","ITF14"],"type":"string"},"type":{"enum":["BARCODE"],"type":"string"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","symbology","source","customValue","showText","quietZone","foreground","background"],"type":"object"},{"additionalProperties":false,"properties":{"fieldKey":{"maxLength":48,"minLength":1,"type":"string"},"frame":{"additionalProperties":false,"properties":{"height":{"maximum":2000,"minimum":0.5,"type":"number"},"width":{"maximum":2000,"minimum":0.5,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"hidden":{"type":"boolean"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"itemCount":{"maximum":500,"minimum":1,"type":"integer"},"labels":{"additionalProperties":false,"properties":{"color":{"type":"string"},"custom":{"items":{"maxLength":40,"type":"string"},"maxItems":40,"type":"array"},"itemGutter":{"maximum":150,"minimum":0,"type":"number"},"itemTexts":{"default":[],"items":{"maxLength":160,"type":"string"},"maxItems":500,"type":"array"},"kind":{"enum":["LETTERS","TR_LETTERS","DIGITS","CUSTOM","NONE"],"type":"string"},"numberWidth":{"default":0,"maximum":4,"minimum":0,"type":"integer"},"optionGutter":{"maximum":60,"minimum":0,"type":"number"},"showItemNumbers":{"type":"boolean"},"showOptionLabels":{"type":"boolean"},"size":{"maximum":48,"minimum":1,"type":"number"}},"required":["kind","custom","showItemNumbers","numberWidth","itemGutter","itemTexts","showOptionLabels","optionGutter","size","color"],"type":"object"},"layout":{"additionalProperties":false,"properties":{"blockGap":{"maximum":100,"minimum":0,"type":"number"},"blocks":{"maximum":20,"minimum":1,"type":"integer"},"bubble":{"additionalProperties":false,"properties":{"shape":{"enum":["CIRCLE","SQUARE","ROUNDED","ELLIPSE"],"type":"string"},"size":{"maximum":15,"minimum":2,"type":"number"}},"required":["shape","size"],"type":"object"},"direction":{"enum":["VERTICAL","HORIZONTAL"],"type":"string"},"flow":{"enum":["COLUMN_MAJOR","ROW_MAJOR"],"type":"string"},"itemGap":{"maximum":50,"minimum":0,"type":"number"},"optionGap":{"maximum":50,"minimum":0,"type":"number"},"padding":{"additionalProperties":false,"properties":{"bottom":{"maximum":200,"minimum":0,"type":"number"},"left":{"maximum":200,"minimum":0,"type":"number"},"right":{"maximum":200,"minimum":0,"type":"number"},"top":{"maximum":200,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"}},"required":["direction","flow","blocks","blockGap","bubble","itemGap","optionGap","padding"],"type":"object"},"locked":{"type":"boolean"},"name":{"maxLength":80,"minLength":1,"type":"string"},"opacity":{"maximum":1,"minimum":0,"type":"number"},"optionCount":{"maximum":40,"minimum":2,"type":"integer"},"pageIndex":{"default":0,"maximum":15,"minimum":0,"type":"integer"},"placement":{"additionalProperties":false,"default":null,"nullable":true,"properties":{"items":{"items":{"additionalProperties":false,"properties":{"options":{"items":{"additionalProperties":false,"properties":{"height":{"maximum":200,"minimum":1,"type":"number"},"width":{"maximum":200,"minimum":1,"type":"number"},"x":{"maximum":2000,"minimum":-2000,"type":"number"},"y":{"maximum":2000,"minimum":-2000,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"maxItems":40,"minItems":2,"type":"array"},"pageIndex":{"maximum":15,"minimum":0,"type":"integer"}},"required":["pageIndex","options"],"type":"object"},"maxItems":500,"minItems":1,"type":"array"}},"required":["items"],"type":"object"},"role":{"enum":["ANSWERS","STUDENT_ID","BOOKLET","TEXT_FIELD","CUSTOM"],"type":"string"},"rotation":{"maximum":360,"minimum":-360,"type":"number"},"startIndex":{"maximum":9999,"minimum":0,"type":"integer"},"style":{"additionalProperties":false,"properties":{"background":{"nullable":true,"type":"string"},"border":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"radius":{"maximum":50,"minimum":0,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke","radius"],"type":"object"},"bubbleFill":{"nullable":true,"type":"string"},"bubbleStroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"},"insideLabelColor":{"default":"#5C6879","type":"string"},"labelInsideBubble":{"type":"boolean"},"rowStripe":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"primary":{"type":"string"},"secondary":{"type":"string"}},"required":["enabled","primary","secondary"],"type":"object"},"separators":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","stroke"],"type":"object"}},"required":["bubbleStroke","bubbleFill","labelInsideBubble","insideLabelColor","border","background","rowStripe","separators"],"type":"object"},"type":{"enum":["BUBBLE_GRID"],"type":"string"},"writeBoxes":{"additionalProperties":false,"default":{"enabled":false,"gap":1.6,"height":7,"stroke":{"color":"#111827","style":"SOLID","width":0.3}},"properties":{"enabled":{"type":"boolean"},"gap":{"default":0,"maximum":20,"minimum":0,"type":"number"},"height":{"maximum":40,"minimum":3,"type":"number"},"stroke":{"additionalProperties":false,"properties":{"color":{"type":"string"},"style":{"enum":["SOLID","DASHED","DOTTED"],"type":"string"},"width":{"maximum":20,"minimum":0,"type":"number"}},"required":["color","width","style"],"type":"object"}},"required":["enabled","height","gap","stroke"],"type":"object"},"z":{"maximum":9999,"minimum":-9999,"type":"integer"}},"required":["id","name","pageIndex","frame","rotation","z","locked","hidden","opacity","type","role","fieldKey","itemCount","optionCount","startIndex","labels","writeBoxes","layout","style","placement"],"type":"object"}]},"maxItems":500,"type":"array"},"page":{"additionalProperties":false,"properties":{"background":{"type":"string"},"format":{"enum":["A3","A4","A5","LETTER","LEGAL","CUSTOM"],"type":"string"},"height":{"maximum":2000,"minimum":50,"type":"number"},"margins":{"additionalProperties":false,"properties":{"bottom":{"maximum":2000,"minimum":0,"type":"number"},"left":{"maximum":2000,"minimum":0,"type":"number"},"right":{"maximum":2000,"minimum":0,"type":"number"},"top":{"maximum":2000,"minimum":0,"type":"number"}},"required":["top","right","bottom","left"],"type":"object"},"orientation":{"enum":["PORTRAIT","LANDSCAPE"],"type":"string"},"width":{"maximum":2000,"minimum":50,"type":"number"}},"required":["format","orientation","width","height","margins","background"],"type":"object"},"pageCount":{"default":1,"maximum":16,"minimum":1,"type":"integer"},"registration":{"additionalProperties":false,"properties":{"corners":{"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"inset":{"maximum":40,"minimum":2,"type":"number"},"shape":{"enum":["SQUARE","CIRCLE"],"type":"string"},"size":{"maximum":20,"minimum":3,"type":"number"}},"required":["enabled","size","inset","shape"],"type":"object"},"timing":{"additionalProperties":false,"properties":{"edge":{"enum":["LEFT","RIGHT","BOTH"],"type":"string"},"enabled":{"type":"boolean"},"gap":{"maximum":20,"minimum":1,"type":"number"},"height":{"maximum":10,"minimum":1,"type":"number"},"inset":{"maximum":40,"minimum":0,"type":"number"},"offsetBottom":{"maximum":200,"minimum":0,"type":"number"},"offsetTop":{"maximum":200,"minimum":0,"type":"number"},"width":{"maximum":20,"minimum":2,"type":"number"}},"required":["enabled","edge","width","height","gap","inset","offsetTop","offsetBottom"],"type":"object"}},"required":["corners","timing"],"type":"object"},"schemaVersion":{"enum":[1],"type":"number"},"source":{"default":"DESIGNED","enum":["DESIGNED","EXTERNAL"],"type":"string"}},"required":["schemaVersion","source","page","registration","editorGrid","pageCount","elements"],"type":"object"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"name":{"type":"string"},"organizationId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"pageFormat":{"enum":["A3","A4","A5","LETTER","LEGAL","CUSTOM"],"type":"string"},"pageOrientation":{"enum":["PORTRAIT","LANDSCAPE"],"type":"string"},"questionCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"status":{"enum":["DRAFT","PUBLISHED","ARCHIVED"],"type":"string"},"thumbnailUrl":{"nullable":true,"type":"string"},"updatedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"updatedBy":{"additionalProperties":false,"nullable":true,"properties":{"displayName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["id","displayName"],"type":"object"},"usedByProjectCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"version":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["id","organizationId","name","description","status","version","pageFormat","pageOrientation","questionCount","thumbnailUrl","usedByProjectCount","createdAt","updatedAt","deletedAt","createdBy","updatedBy","document"],"type":"object"}}},"description":"OK"}},"summary":"Publishes the template (strict validation applied)","tags":["Sheet templates"]}},"/api/v1/sheet-templates/{id}/restore":{"post":{"operationId":"sheetTemplatesRestore","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"204":{"description":"No content"}},"summary":"Takes a deleted template back before the purge removes it","tags":["Sheet templates"]}},"/api/v1/sheet-templates/{id}/unarchive":{"post":{"operationId":"sheetTemplatesUnarchive","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"204":{"description":"No content"}},"summary":"Removes the template from the archive (returns it to draft)","tags":["Sheet templates"]}},"/api/v1/students":{"get":{"operationId":"studentsList","parameters":[{"in":"query","name":"page","required":false,"schema":{"default":1,"maximum":10000,"minimum":1,"type":"integer"}},{"in":"query","name":"pageSize","required":false,"schema":{"default":20,"maximum":100,"minimum":1,"type":"integer"}},{"in":"query","name":"search","required":false,"schema":{"maxLength":120,"type":"string"}},{"in":"query","name":"sortBy","required":false,"schema":{"maxLength":64,"type":"string"}},{"in":"query","name":"sortDir","required":false,"schema":{"default":"desc","enum":["asc","desc"],"type":"string"}},{"in":"query","name":"className","required":false,"schema":{"maxLength":64,"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"items":{"items":{"additionalProperties":false,"properties":{"averageScore":{"nullable":true,"type":"number"},"className":{"nullable":true,"type":"string"},"examCount":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"externalId":{"nullable":true,"type":"string"},"firstName":{"maxLength":80,"minLength":1,"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"lastExam":{"additionalProperties":false,"nullable":true,"properties":{"examDate":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"name":{"type":"string"},"projectId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["projectId","name","examDate"],"type":"object"},"lastExamAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"lastName":{"maxLength":80,"type":"string"},"studentNumber":{"maxLength":32,"minLength":1,"type":"string"}},"required":["id","studentNumber","firstName","lastName","className","externalId","examCount","averageScore","lastExamAt","lastExam"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"hasNext":{"type":"boolean"},"hasPrevious":{"type":"boolean"},"page":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"pageSize":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"totalItems":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"totalPages":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["page","pageSize","totalItems","totalPages","hasPrevious","hasNext"],"type":"object"}},"required":["items","meta"],"type":"object"}}},"description":"OK"}},"summary":"The student list, organization-wide","tags":["Students"]}},"/api/v1/students/class-progress":{"get":{"description":"One cell per exam and class: how many were expected, how many were scored, and their mean.","operationId":"studentsClassProgress","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"cells":{"items":{"additionalProperties":false,"properties":{"averageNet":{"nullable":true,"type":"number"},"averageScore":{"nullable":true,"type":"number"},"className":{"type":"string"},"expected":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"projectId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"scored":{"maximum":9007199254740991,"minimum":0,"type":"integer"}},"required":["projectId","className","scored","expected","averageScore","averageNet"],"type":"object"},"type":"array"},"classes":{"items":{"type":"string"},"type":"array"},"exams":{"items":{"additionalProperties":false,"properties":{"examDate":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"projectId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"projectName":{"type":"string"},"questionCount":{"maximum":9007199254740991,"minimum":0,"type":"integer"}},"required":["projectId","projectName","examDate","questionCount"],"type":"object"},"type":"array"}},"required":["exams","classes","cells"],"type":"object"}}},"description":"OK"}},"summary":"How each class did in each exam","tags":["Students"]}},"/api/v1/students/classes":{"get":{"operationId":"studentsClasses","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"additionalProperties":false,"properties":{"className":{"type":"string"},"count":{"maximum":9007199254740991,"minimum":0,"type":"integer"}},"required":["className","count"],"type":"object"},"type":"array"}}},"description":"OK"}},"summary":"The classes in the organization's records, with their sizes","tags":["Students"]}},"/api/v1/students/departures":{"post":{"description":"By class or by student. Not an erasure: the exams they sat keep their rosters, results and papers, and a number on a later roster opens the record again.","operationId":"studentsDepart","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"classNames":{"default":[],"items":{"maxLength":64,"minLength":1,"type":"string"},"maxItems":50,"type":"array"},"studentIds":{"default":[],"items":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"maxItems":500,"type":"array"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"removed":{"maximum":9007199254740991,"minimum":0,"type":"integer"}},"required":["removed"],"type":"object"}}},"description":"OK"}},"summary":"Takes students who have left the school off the records","tags":["Students"]}},"/api/v1/students/export":{"get":{"operationId":"studentsExportRecords","parameters":[{"in":"query","name":"format","required":false,"schema":{"default":"XLSX","enum":["CSV","XLSX"],"type":"string"}},{"in":"query","name":"className","required":false,"schema":{"maxLength":64,"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"schema":{"format":"binary","type":"string"}},"text/csv":{"schema":{"format":"binary","type":"string"}}},"description":"The student records"}},"summary":"Downloads the student records as XLSX or CSV, the whole list or one class","tags":["Students"]}},"/api/v1/students/import":{"post":{"description":"Records alone: no exam's roster changes. With departMissing, students the list does not name come off the records, the way a departure does.","operationId":"studentsImportRecords","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"departMissing":{"default":false,"type":"boolean"},"students":{"items":{"properties":{"className":{"maxLength":64,"nullable":true,"type":"string"},"externalId":{"maxLength":64,"nullable":true,"type":"string"},"firstName":{"maxLength":80,"minLength":1,"type":"string"},"lastName":{"maxLength":80,"type":"string"},"studentNumber":{"maxLength":32,"minLength":1,"type":"string"}},"required":["studentNumber","firstName","lastName"],"type":"object"},"maxItems":5000,"minItems":1,"type":"array"}},"required":["students"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"created":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"removed":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"skipped":{"items":{"additionalProperties":false,"properties":{"reason":{"type":"string"},"studentNumber":{"type":"string"}},"required":["studentNumber","reason"],"type":"object"},"type":"array"},"updated":{"maximum":9007199254740991,"minimum":0,"type":"integer"}},"required":["created","updated","removed","skipped"],"type":"object"}}},"description":"OK"}},"summary":"Brings the organization's records up to date from a list of the whole school","tags":["Students"]}},"/api/v1/students/parse-file":{"post":{"description":"The same reader as a roster file: an .xlsx workbook (first worksheet) or a CSV/TSV text file. Nothing is written; the parsed list is confirmed and sent to the records import.","operationId":"studentsParseFile","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Created"}},"summary":"Reads a list of the whole school into the same preview a pasted list gets","tags":["Students"]}},"/api/v1/students/{id}":{"delete":{"description":"The scanned images included. Irreversible, and the statistics of finished exams change with it.","operationId":"studentsErase","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"participation":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"printRuns":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"results":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"sheets":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"storedObjects":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"studentNumber":{"type":"string"}},"required":["studentNumber","participation","results","sheets","storedObjects","printRuns"],"type":"object"}}},"description":"OK"}},"summary":"Erases everything about the student","tags":["Students"]},"get":{"description":"Every exam sat, the rank in each, and progress per learning outcome.","operationId":"studentsDetail","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"averageScore":{"nullable":true,"type":"number"},"className":{"nullable":true,"type":"string"},"examCount":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"exams":{"items":{"additionalProperties":false,"properties":{"blank":{"maximum":9007199254740991,"minimum":-9007199254740991,"nullable":true,"type":"integer"},"bookletCode":{"nullable":true,"type":"string"},"className":{"nullable":true,"type":"string"},"correct":{"maximum":9007199254740991,"minimum":-9007199254740991,"nullable":true,"type":"integer"},"deductsForWrong":{"type":"boolean"},"examDate":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"net":{"nullable":true,"type":"number"},"passed":{"nullable":true,"type":"boolean"},"percent":{"nullable":true,"type":"number"},"projectId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"projectName":{"type":"string"},"rank":{"maximum":9007199254740991,"minimum":-9007199254740991,"nullable":true,"type":"integer"},"rankTotal":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"score":{"nullable":true,"type":"number"},"sections":{"items":{"additionalProperties":false,"properties":{"blank":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"correct":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"name":{"type":"string"},"net":{"type":"number"},"total":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"wrong":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["name","correct","wrong","blank","total","net"],"type":"object"},"type":"array"},"sheetCount":{"exclusiveMinimum":true,"maximum":9007199254740991,"minimum":0,"type":"integer"},"sheetId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"wrong":{"maximum":9007199254740991,"minimum":-9007199254740991,"nullable":true,"type":"integer"}},"required":["projectId","projectName","examDate","sheetId","sheetCount","bookletCode","className","correct","wrong","blank","net","score","percent","passed","rank","rankTotal","sections","deductsForWrong"],"type":"object"},"type":"array"},"externalId":{"nullable":true,"type":"string"},"firstName":{"maxLength":80,"minLength":1,"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"lastExam":{"additionalProperties":false,"nullable":true,"properties":{"examDate":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"name":{"type":"string"},"projectId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["projectId","name","examDate"],"type":"object"},"lastExamAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"lastName":{"maxLength":80,"type":"string"},"outcomes":{"items":{"additionalProperties":false,"properties":{"latest":{"maximum":1,"minimum":0,"nullable":true,"type":"number"},"name":{"type":"string"},"points":{"items":{"additionalProperties":false,"properties":{"examDate":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"mastery":{"maximum":1,"minimum":0,"nullable":true,"type":"number"},"projectId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"projectName":{"type":"string"}},"required":["projectId","projectName","examDate","mastery"],"type":"object"},"type":"array"}},"required":["name","points","latest"],"type":"object"},"type":"array"},"studentNumber":{"maxLength":32,"minLength":1,"type":"string"}},"required":["id","studentNumber","firstName","lastName","className","externalId","examCount","averageScore","lastExamAt","lastExam","exams","outcomes"],"type":"object"}}},"description":"OK"}},"summary":"The student's exam history","tags":["Students"]},"put":{"description":"Name and class as of today. Finished exams keep the class the student sat them in; with applyToOpenExams the rosters of exams not yet closed follow and those exams are rescored.","operationId":"studentsUpdate","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"applyToOpenExams":{"default":false,"type":"boolean"},"className":{"maxLength":64,"nullable":true,"type":"string"},"externalId":{"maxLength":64,"nullable":true,"type":"string"},"firstName":{"maxLength":80,"minLength":1,"type":"string"},"lastName":{"maxLength":80,"type":"string"}},"required":["firstName","lastName","className"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"className":{"nullable":true,"type":"string"},"externalId":{"nullable":true,"type":"string"},"firstName":{"maxLength":80,"minLength":1,"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"lastName":{"maxLength":80,"type":"string"},"openExamsUpdated":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"studentNumber":{"maxLength":32,"minLength":1,"type":"string"}},"required":["id","studentNumber","firstName","lastName","className","externalId","openExamsUpdated"],"type":"object"}}},"description":"OK"}},"summary":"Corrects the student's record","tags":["Students"]}},"/api/v1/students/{id}/export":{"get":{"description":"Identity, every exam sat and every answer given, as one file — for a subject access request.","operationId":"studentsExportData","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"exportedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"organization":{"additionalProperties":false,"properties":{"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"name":{"type":"string"}},"required":["id","name"],"type":"object"},"participation":{"items":{"additionalProperties":false,"properties":{"className":{"nullable":true,"type":"string"},"examDate":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"projectId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"projectName":{"type":"string"}},"required":["projectId","projectName","examDate","className"],"type":"object"},"type":"array"},"results":{"items":{"additionalProperties":false,"properties":{"answers":{"items":{},"type":"array"},"blank":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"bookletCode":{"nullable":true,"type":"string"},"correct":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"examDate":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"imageHeld":{"type":"boolean"},"net":{"type":"number"},"projectId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"projectName":{"type":"string"},"score":{"type":"number"},"sheetId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"surveys":{"items":{},"type":"array"},"wrong":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["projectId","projectName","examDate","sheetId","bookletCode","correct","wrong","blank","net","score","answers","surveys","imageHeld"],"type":"object"},"type":"array"},"student":{"additionalProperties":false,"properties":{"className":{"nullable":true,"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"externalId":{"nullable":true,"type":"string"},"firstName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"lastName":{"type":"string"},"studentNumber":{"type":"string"}},"required":["id","studentNumber","firstName","lastName","className","externalId","createdAt"],"type":"object"}},"required":["exportedAt","organization","student","participation","results"],"type":"object"}}},"description":"OK"}},"summary":"Everything held about the student","tags":["Students"]}},"/api/v1/system-notice":{"get":{"description":"Every language it is written in; the reader picks their own. `notice` is null when none is showing.","operationId":"systemNoticeShowing","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"notice":{"additionalProperties":false,"nullable":true,"properties":{"endsAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"messages":{"additionalProperties":{"maxLength":280,"minLength":1,"type":"string"},"type":"object"},"severity":{"enum":["INFO","WARNING"],"type":"string"}},"required":["id","severity","messages","endsAt"],"type":"object"}},"required":["notice"],"type":"object"}}},"description":"OK"}},"security":[],"summary":"The notice shown on every screen, while it is in its window","tags":["System"]}},"/api/v1/templates/hub":{"get":{"operationId":"templateHubList","parameters":[{"in":"query","name":"region","required":false,"schema":{"enum":["TURKEY","UNITED_STATES","UNITED_KINGDOM_INTL","INDIA","GENERAL_ACADEMIC"],"type":"string"}},{"in":"query","name":"search","required":false,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"additionalProperties":false,"properties":{"bookletCodes":{"items":{"type":"string"},"type":"array"},"code":{"type":"string"},"exam":{"nullable":true,"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"optionCount":{"maximum":5,"minimum":2,"type":"integer"},"paperSize":{"enum":["A3","A4","A5","LETTER","LEGAL","CUSTOM"],"type":"string"},"popularityScore":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"questionCount":{"exclusiveMinimum":true,"maximum":9007199254740991,"minimum":0,"type":"integer"},"region":{"enum":["TURKEY","UNITED_STATES","UNITED_KINGDOM_INTL","INDIA","GENERAL_ACADEMIC"],"type":"string"},"sections":{"items":{"additionalProperties":false,"properties":{"name":{"type":"string"},"optionCount":{"maximum":6,"minimum":2,"type":"integer"},"questionCount":{"exclusiveMinimum":true,"maximum":9007199254740991,"minimum":0,"type":"integer"}},"required":["name","questionCount","optionCount"],"type":"object"},"type":"array"},"tags":{"items":{"type":"string"},"type":"array"}},"required":["id","code","exam","name","region","questionCount","optionCount","bookletCodes","paperSize","tags","sections","popularityScore"],"type":"object"},"type":"array"}}},"description":"OK"}},"summary":"Lists global assessment templates across regions","tags":["Template Hub"]}},"/api/v1/templates/hub/{id}":{"get":{"operationId":"templateHubDetail","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"bookletCodes":{"items":{"type":"string"},"type":"array"},"code":{"type":"string"},"exam":{"nullable":true,"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"optionCount":{"maximum":5,"minimum":2,"type":"integer"},"paperSize":{"enum":["A3","A4","A5","LETTER","LEGAL","CUSTOM"],"type":"string"},"popularityScore":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"questionCount":{"exclusiveMinimum":true,"maximum":9007199254740991,"minimum":0,"type":"integer"},"region":{"enum":["TURKEY","UNITED_STATES","UNITED_KINGDOM_INTL","INDIA","GENERAL_ACADEMIC"],"type":"string"},"sections":{"items":{"additionalProperties":false,"properties":{"name":{"type":"string"},"optionCount":{"maximum":6,"minimum":2,"type":"integer"},"questionCount":{"exclusiveMinimum":true,"maximum":9007199254740991,"minimum":0,"type":"integer"}},"required":["name","questionCount","optionCount"],"type":"object"},"type":"array"},"tags":{"items":{"type":"string"},"type":"array"}},"required":["id","code","exam","name","region","questionCount","optionCount","bookletCodes","paperSize","tags","sections","popularityScore"],"type":"object"}}},"description":"OK"}},"summary":"Fetches global template item by ID","tags":["Template Hub"]}},"/api/v1/templates/hub/{id}/clone":{"post":{"operationId":"templateHubClone","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"description":{"maxLength":2000,"type":"string"},"name":{"maxLength":120,"minLength":1,"type":"string"},"names":{"properties":{"answers":{"maxLength":80,"minLength":1,"type":"string"},"booklet":{"maxLength":80,"minLength":1,"type":"string"},"candidate":{"maxLength":80,"minLength":1,"type":"string"},"classLabel":{"maxLength":80,"minLength":1,"type":"string"},"formInfo":{"maxLength":120,"minLength":1,"type":"string"},"heading":{"maxLength":80,"minLength":1,"type":"string"},"instructions":{"maxLength":600,"minLength":1,"type":"string"},"instructionsTitle":{"maxLength":80,"minLength":1,"type":"string"},"nameLabel":{"maxLength":80,"minLength":1,"type":"string"},"qr":{"maxLength":80,"minLength":1,"type":"string"},"room":{"maxLength":40,"minLength":1,"type":"string"},"seat":{"maxLength":40,"minLength":1,"type":"string"},"signature":{"maxLength":80,"minLength":1,"type":"string"},"signatureHint":{"maxLength":80,"minLength":1,"type":"string"},"studentId":{"maxLength":80,"minLength":1,"type":"string"}},"type":"object"}},"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"clonedFrom":{"type":"string"},"name":{"type":"string"},"questionCount":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"templateId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},"required":["templateId","name","questionCount","clonedFrom"],"type":"object"}}},"description":"Created"}},"summary":"Clones a global template into the active organization","tags":["Template Hub"]}},"/api/v1/users":{"get":{"operationId":"usersList","parameters":[{"in":"query","name":"page","required":false,"schema":{"default":1,"maximum":10000,"minimum":1,"type":"integer"}},{"in":"query","name":"pageSize","required":false,"schema":{"default":20,"maximum":100,"minimum":1,"type":"integer"}},{"in":"query","name":"search","required":false,"schema":{"maxLength":200,"type":"string"}},{"in":"query","name":"sortBy","required":false,"schema":{"default":"createdAt","enum":["createdAt","lastLoginAt","email"],"type":"string"}},{"in":"query","name":"sortDir","required":false,"schema":{"default":"desc","enum":["asc","desc"],"type":"string"}},{"in":"query","name":"status","required":false,"schema":{"enum":["PENDING_VERIFICATION","ACTIVE","SUSPENDED"],"type":"string"}},{"in":"query","name":"systemRole","required":false,"schema":{"enum":["USER","SUPPORT","SUPER_ADMIN"],"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"items":{"items":{"additionalProperties":false,"properties":{"avatarUrl":{"nullable":true,"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"displayName":{"type":"string"},"email":{"type":"string"},"emailVerifiedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"firstName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"lastLoginAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"lastName":{"type":"string"},"locale":{"enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"notifyBatchCompleted":{"type":"boolean"},"pendingEmail":{"nullable":true,"type":"string"},"status":{"enum":["PENDING_VERIFICATION","ACTIVE","SUSPENDED"],"type":"string"},"systemRole":{"enum":["USER","SUPPORT","SUPER_ADMIN"],"type":"string"},"theme":{"enum":["SYSTEM","LIGHT","DARK"],"type":"string"},"timezone":{"nullable":true,"type":"string"}},"required":["id","email","pendingEmail","firstName","lastName","displayName","avatarUrl","locale","theme","timezone","notifyBatchCompleted","systemRole","status","emailVerifiedAt","lastLoginAt","createdAt"],"type":"object"},"type":"array"},"meta":{"additionalProperties":false,"properties":{"hasNext":{"type":"boolean"},"hasPrevious":{"type":"boolean"},"page":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"pageSize":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"totalItems":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"totalPages":{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["page","pageSize","totalItems","totalPages","hasPrevious","hasNext"],"type":"object"}},"required":["items","meta"],"type":"object"}}},"description":"OK"}},"summary":"Lists all users (system administration)","tags":["Users"]},"post":{"operationId":"usersCreate","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"email":{"type":"string"},"firstName":{"maxLength":80,"minLength":1,"type":"string"},"lastName":{"maxLength":80,"minLength":1,"type":"string"},"locale":{"default":"en","enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"sendInvitation":{"default":true,"type":"boolean"},"systemRole":{"default":"USER","enum":["USER","SUPPORT","SUPER_ADMIN"],"type":"string"}},"required":["email","firstName","lastName"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"avatarUrl":{"nullable":true,"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"displayName":{"type":"string"},"email":{"type":"string"},"emailVerifiedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"firstName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"lastLoginAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"lastName":{"type":"string"},"locale":{"enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"notifyBatchCompleted":{"type":"boolean"},"pendingEmail":{"nullable":true,"type":"string"},"status":{"enum":["PENDING_VERIFICATION","ACTIVE","SUSPENDED"],"type":"string"},"systemRole":{"enum":["USER","SUPPORT","SUPER_ADMIN"],"type":"string"},"theme":{"enum":["SYSTEM","LIGHT","DARK"],"type":"string"},"timezone":{"nullable":true,"type":"string"}},"required":["id","email","pendingEmail","firstName","lastName","displayName","avatarUrl","locale","theme","timezone","notifyBatchCompleted","systemRole","status","emailVerifiedAt","lastLoginAt","createdAt"],"type":"object"}}},"description":"Created"}},"summary":"Creates a user and sends a setup invitation","tags":["Users"]}},"/api/v1/users/me":{"get":{"operationId":"usersGetProfile","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"avatarUrl":{"nullable":true,"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"displayName":{"type":"string"},"email":{"type":"string"},"emailVerifiedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"firstName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"lastLoginAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"lastName":{"type":"string"},"locale":{"enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"notifyBatchCompleted":{"type":"boolean"},"pendingEmail":{"nullable":true,"type":"string"},"status":{"enum":["PENDING_VERIFICATION","ACTIVE","SUSPENDED"],"type":"string"},"systemRole":{"enum":["USER","SUPPORT","SUPER_ADMIN"],"type":"string"},"theme":{"enum":["SYSTEM","LIGHT","DARK"],"type":"string"},"timezone":{"nullable":true,"type":"string"}},"required":["id","email","pendingEmail","firstName","lastName","displayName","avatarUrl","locale","theme","timezone","notifyBatchCompleted","systemRole","status","emailVerifiedAt","lastLoginAt","createdAt"],"type":"object"}}},"description":"OK"}},"summary":"The signed-in user's profile","tags":["Users"]},"put":{"operationId":"usersUpdateProfile","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"firstName":{"maxLength":80,"minLength":1,"type":"string"},"lastName":{"maxLength":80,"minLength":1,"type":"string"},"locale":{"enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"notifyBatchCompleted":{"type":"boolean"},"theme":{"enum":["SYSTEM","LIGHT","DARK"],"type":"string"},"timezone":{"maxLength":64,"minLength":1,"nullable":true,"type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"avatarUrl":{"nullable":true,"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"displayName":{"type":"string"},"email":{"type":"string"},"emailVerifiedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"firstName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"lastLoginAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"lastName":{"type":"string"},"locale":{"enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"notifyBatchCompleted":{"type":"boolean"},"pendingEmail":{"nullable":true,"type":"string"},"status":{"enum":["PENDING_VERIFICATION","ACTIVE","SUSPENDED"],"type":"string"},"systemRole":{"enum":["USER","SUPPORT","SUPER_ADMIN"],"type":"string"},"theme":{"enum":["SYSTEM","LIGHT","DARK"],"type":"string"},"timezone":{"nullable":true,"type":"string"}},"required":["id","email","pendingEmail","firstName","lastName","displayName","avatarUrl","locale","theme","timezone","notifyBatchCompleted","systemRole","status","emailVerifiedAt","lastLoginAt","createdAt"],"type":"object"}}},"description":"OK"}},"summary":"Updates profile information","tags":["Users"]}},"/api/v1/users/me/avatar":{"post":{"operationId":"usersUpdateAvatar","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"avatarUrl":{"nullable":true,"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"displayName":{"type":"string"},"email":{"type":"string"},"emailVerifiedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"firstName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"lastLoginAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"lastName":{"type":"string"},"locale":{"enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"notifyBatchCompleted":{"type":"boolean"},"pendingEmail":{"nullable":true,"type":"string"},"status":{"enum":["PENDING_VERIFICATION","ACTIVE","SUSPENDED"],"type":"string"},"systemRole":{"enum":["USER","SUPPORT","SUPER_ADMIN"],"type":"string"},"theme":{"enum":["SYSTEM","LIGHT","DARK"],"type":"string"},"timezone":{"nullable":true,"type":"string"}},"required":["id","email","pendingEmail","firstName","lastName","displayName","avatarUrl","locale","theme","timezone","notifyBatchCompleted","systemRole","status","emailVerifiedAt","lastLoginAt","createdAt"],"type":"object"}}},"description":"The profile, with its new picture"}},"summary":"Uploads the profile picture","tags":["Users"]}},"/api/v1/users/{id}":{"delete":{"operationId":"usersRemove","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"No content"}},"summary":"Deactivates the user (soft delete)","tags":["Users"]},"get":{"operationId":"usersDetail","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"avatarUrl":{"nullable":true,"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"displayName":{"type":"string"},"email":{"type":"string"},"emailVerifiedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"firstName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"lastLoginAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"lastName":{"type":"string"},"locale":{"enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"memberships":{"items":{"additionalProperties":false,"properties":{"joinedAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"organizationClosed":{"type":"boolean"},"organizationId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"organizationName":{"type":"string"},"role":{"enum":["OWNER","ADMIN","MEMBER","VIEWER"],"type":"string"}},"required":["organizationId","organizationName","organizationClosed","role","joinedAt"],"type":"object"},"type":"array"},"mfaEnabled":{"type":"boolean"},"notifyBatchCompleted":{"type":"boolean"},"pendingEmail":{"nullable":true,"type":"string"},"recentActivity":{"items":{"additionalProperties":false,"properties":{"action":{"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"entityType":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"organizationName":{"nullable":true,"type":"string"}},"required":["id","action","entityType","organizationName","createdAt"],"type":"object"},"maxItems":20,"type":"array"},"sessions":{"items":{"additionalProperties":false,"properties":{"createdAt":{"type":"string"},"current":{"type":"boolean"},"expiresAt":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"ipAddress":{"nullable":true,"type":"string"},"lastUsedAt":{"type":"string"},"userAgent":{"nullable":true,"type":"string"}},"required":["id","createdAt","lastUsedAt","expiresAt","ipAddress","userAgent","current"],"type":"object"},"type":"array"},"status":{"enum":["PENDING_VERIFICATION","ACTIVE","SUSPENDED"],"type":"string"},"systemRole":{"enum":["USER","SUPPORT","SUPER_ADMIN"],"type":"string"},"termsAcceptedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"termsVersion":{"nullable":true,"type":"string"},"theme":{"enum":["SYSTEM","LIGHT","DARK"],"type":"string"},"timezone":{"nullable":true,"type":"string"}},"required":["id","email","pendingEmail","firstName","lastName","displayName","avatarUrl","locale","theme","timezone","notifyBatchCompleted","systemRole","status","emailVerifiedAt","lastLoginAt","createdAt","mfaEnabled","termsAcceptedAt","termsVersion","sessions","memberships","recentActivity"],"type":"object"}}},"description":"OK"}},"summary":"One user in full: organizations, devices, second step and latest activity (system administration)","tags":["Users"]},"patch":{"operationId":"usersUpdate","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"status":{"enum":["PENDING_VERIFICATION","ACTIVE","SUSPENDED"],"type":"string"},"systemRole":{"enum":["USER","SUPPORT","SUPER_ADMIN"],"type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"avatarUrl":{"nullable":true,"type":"string"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"displayName":{"type":"string"},"email":{"type":"string"},"emailVerifiedAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"firstName":{"type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"lastLoginAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"lastName":{"type":"string"},"locale":{"enum":["de","en","es","fr","pt","tr","ar"],"type":"string"},"notifyBatchCompleted":{"type":"boolean"},"pendingEmail":{"nullable":true,"type":"string"},"status":{"enum":["PENDING_VERIFICATION","ACTIVE","SUSPENDED"],"type":"string"},"systemRole":{"enum":["USER","SUPPORT","SUPER_ADMIN"],"type":"string"},"theme":{"enum":["SYSTEM","LIGHT","DARK"],"type":"string"},"timezone":{"nullable":true,"type":"string"}},"required":["id","email","pendingEmail","firstName","lastName","displayName","avatarUrl","locale","theme","timezone","notifyBatchCompleted","systemRole","status","emailVerifiedAt","lastLoginAt","createdAt"],"type":"object"}}},"description":"OK"}},"summary":"Changes the user's status or system role","tags":["Users"]}},"/api/v1/users/{id}/mfa/reset":{"post":{"description":"For someone who lost both their authenticator and their recovery codes. Asks for the administrator's password and a reason, which is kept in the audit log; the person's sessions end and they are told by e-mail.","operationId":"usersResetMfa","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"password":{"maxLength":128,"minLength":1,"type":"string"},"reason":{"maxLength":500,"minLength":10,"type":"string"}},"required":["password","reason"],"type":"object"}}},"required":true},"responses":{"204":{"description":"No content"}},"summary":"Turns off a person's two-step verification (system administration)","tags":["Users"]}},"/api/v1/users/{id}/sessions/revoke":{"post":{"operationId":"usersRevokeSessions","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"204":{"description":"No content"}},"summary":"Signs the user out on every device (system administration)","tags":["Users"]}},"/api/v1/webhooks":{"get":{"operationId":"webhooksList","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"additionalProperties":false,"properties":{"active":{"type":"boolean"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"description":{"type":"string"},"events":{"items":{"enum":["batch.completed","sheet.needs-review","project.status-changed","project.rescored","sheet.reviewed"],"type":"string"},"type":"array"},"failingSince":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"failureStreak":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"lastAttemptAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"lastStatus":{"maximum":9007199254740991,"minimum":-9007199254740991,"nullable":true,"type":"integer"},"pausedAutomaticallyAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"url":{"type":"string"}},"required":["id","url","events","active","description","lastStatus","lastAttemptAt","failureStreak","failingSince","pausedAutomaticallyAt","createdAt"],"type":"object"},"type":"array"}}},"description":"OK"}},"summary":"The registered webhook endpoints","tags":["Webhooks"]},"post":{"operationId":"webhooksCreate","parameters":[{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"description":{"default":"","maxLength":200,"type":"string"},"events":{"items":{"enum":["batch.completed","sheet.needs-review","project.status-changed","project.rescored","sheet.reviewed"],"type":"string"},"minItems":1,"type":"array"},"url":{"maxLength":2000,"type":"string"}},"required":["url","events"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"active":{"type":"boolean"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"description":{"type":"string"},"events":{"items":{"enum":["batch.completed","sheet.needs-review","project.status-changed","project.rescored","sheet.reviewed"],"type":"string"},"type":"array"},"failingSince":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"failureStreak":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"lastAttemptAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"lastStatus":{"maximum":9007199254740991,"minimum":-9007199254740991,"nullable":true,"type":"integer"},"pausedAutomaticallyAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"secret":{"type":"string"},"url":{"type":"string"}},"required":["id","url","events","active","description","lastStatus","lastAttemptAt","failureStreak","failingSince","pausedAutomaticallyAt","createdAt","secret"],"type":"object"}}},"description":"Created"}},"summary":"Adds an endpoint; the signing secret is returned here and nowhere else","tags":["Webhooks"]}},"/api/v1/webhooks/{id}":{"delete":{"operationId":"webhooksRemove","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"No content"}},"summary":"Deletes the endpoint and its delivery history","tags":["Webhooks"]},"patch":{"operationId":"webhooksUpdate","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"active":{"type":"boolean"},"description":{"maxLength":200,"type":"string"},"events":{"items":{"enum":["batch.completed","sheet.needs-review","project.status-changed","project.rescored","sheet.reviewed"],"type":"string"},"minItems":1,"type":"array"},"url":{"maxLength":2000,"type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"active":{"type":"boolean"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"description":{"type":"string"},"events":{"items":{"enum":["batch.completed","sheet.needs-review","project.status-changed","project.rescored","sheet.reviewed"],"type":"string"},"type":"array"},"failingSince":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"failureStreak":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"lastAttemptAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"lastStatus":{"maximum":9007199254740991,"minimum":-9007199254740991,"nullable":true,"type":"integer"},"pausedAutomaticallyAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"url":{"type":"string"}},"required":["id","url","events","active","description","lastStatus","lastAttemptAt","failureStreak","failingSince","pausedAutomaticallyAt","createdAt"],"type":"object"}}},"description":"OK"}},"summary":"Updates the address, the events or the active flag","tags":["Webhooks"]}},"/api/v1/webhooks/{id}/deliveries":{"get":{"operationId":"webhooksDeliveries","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"additionalProperties":false,"properties":{"attempts":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"deliveredAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"error":{"nullable":true,"type":"string"},"event":{"enum":["batch.completed","sheet.needs-review","project.status-changed","project.rescored","sheet.reviewed"],"type":"string"},"eventId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"nextAttemptAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"state":{"enum":["PENDING","RETRYING","DELIVERED","FAILED"],"type":"string"},"status":{"maximum":9007199254740991,"minimum":-9007199254740991,"nullable":true,"type":"integer"}},"required":["id","eventId","event","state","status","attempts","error","nextAttemptAt","deliveredAt","createdAt"],"type":"object"},"type":"array"}}},"description":"OK"}},"summary":"The latest deliveries and their outcomes","tags":["Webhooks"]}},"/api/v1/webhooks/{id}/deliveries/{deliveryId}/redeliver":{"post":{"operationId":"webhooksRedeliver","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"in":"path","name":"deliveryId","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"202":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"attempts":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"deliveredAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"error":{"nullable":true,"type":"string"},"event":{"enum":["batch.completed","sheet.needs-review","project.status-changed","project.rescored","sheet.reviewed"],"type":"string"},"eventId":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"nextAttemptAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"state":{"enum":["PENDING","RETRYING","DELIVERED","FAILED"],"type":"string"},"status":{"maximum":9007199254740991,"minimum":-9007199254740991,"nullable":true,"type":"integer"}},"required":["id","eventId","event","state","status","attempts","error","nextAttemptAt","deliveredAt","createdAt"],"type":"object"}}},"description":"Accepted: the work continues in the background"}},"summary":"Sends a delivery again, as a new delivery of the same event","tags":["Webhooks"]}},"/api/v1/webhooks/{id}/rotate-secret":{"post":{"operationId":"webhooksRotate","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"active":{"type":"boolean"},"createdAt":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"description":{"type":"string"},"events":{"items":{"enum":["batch.completed","sheet.needs-review","project.status-changed","project.rescored","sheet.reviewed"],"type":"string"},"type":"array"},"failingSince":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"failureStreak":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"id":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"},"lastAttemptAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"lastStatus":{"maximum":9007199254740991,"minimum":-9007199254740991,"nullable":true,"type":"integer"},"pausedAutomaticallyAt":{"format":"date-time","nullable":true,"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"},"secret":{"type":"string"},"url":{"type":"string"}},"required":["id","url","events","active","description","lastStatus","lastAttemptAt","failureStreak","failingSince","pausedAutomaticallyAt","createdAt","secret"],"type":"object"}}},"description":"OK"}},"summary":"Rotates the signing secret; the old one stops working at once","tags":["Webhooks"]}},"/api/v1/webhooks/{id}/test":{"post":{"operationId":"webhooksTest","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Organization ID the request runs against","in":"header","name":"x-organization-id","required":false,"schema":{"format":"uuid","type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"durationMs":{"maximum":9007199254740991,"minimum":0,"type":"integer"},"error":{"nullable":true,"type":"string"},"status":{"maximum":9007199254740991,"minimum":-9007199254740991,"nullable":true,"type":"integer"}},"required":["status","error","durationMs"],"type":"object"}}},"description":"OK"}},"summary":"Sends a signed ping to the endpoint now and reports the answer","tags":["Webhooks"]}}},"security":[{"access-token":[]},{"api-key":[]}],"tags":[]}
