{
    "openapi": "3.0.3",
    "info": {
        "title": "CareerByteCode ByteConnect API",
        "version": "1.4.0",
        "description": "Sell CareerByteCode programs from your website. The buyer always pays on CareerByteCode's own checkout.\n\nEvery request is signed. Send all four headers:\n\n1. X-CBC-Key: your key id (cbc_test_... or cbc_live_...).\n2. X-CBC-Timestamp: the current unix time in seconds (refused when more than 300 seconds from our clock).\n3. X-CBC-Nonce: 8 to 64 characters of A-Z a-z 0-9 _ -, new for every request (a repeat is refused with nonce_reused).\n4. X-CBC-Signature: lower-case hex of HMAC-SHA256(key secret, string_to_sign), where string_to_sign is five lines joined by \\n (no trailing newline):\n   METHOD (capitals)\n   PATH_AND_QUERY exactly as sent, starting with /api/v1/ (for example /api/v1/orders?status=paid&limit=200)\n   TIMESTAMP\n   NONCE\n   lower-case hex SHA-256 of the raw request body (the hash of an empty string for GET)\n\nWorked example (the secret is an example only): GET /api/v1/catalogue?type=course, timestamp 1791360000, nonce 6f1c2b9e0a7d4c11, empty body.\nstring_to_sign = \"GET\\n/api/v1/catalogue?type=course\\n1791360000\\n6f1c2b9e0a7d4c11\\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\"\nsecret = \"0123456789abcdef0123456789abcdef0123456789abcdef\" gives X-CBC-Signature = d1487adf163933139af86e99ad7f9e19c3de63037df84f4dc2065f82aea43fa8\n\nA generated client cannot compute these headers by itself: add a request hook (interceptor, middleware or a Postman pre-request script) that signs each call, or use the official SDKs: https://www.careerbytecode.in/byteconnect/docs/#sdks\n\nEvery signed answer carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset. Versioning and deprecation: https://www.careerbytecode.in/byteconnect/docs/#deprecation. Status: https://www.careerbytecode.in/byteconnect/status/",
        "contact": {
            "url": "https://www.careerbytecode.in/byteconnect/docs/"
        }
    },
    "servers": [
        {
            "url": "https://www.careerbytecode.in/api/v1"
        }
    ],
    "security": [
        {
            "CbcKey": [],
            "CbcTimestamp": [],
            "CbcNonce": [],
            "CbcSignature": []
        }
    ],
    "x-cbc-signing": {
        "algorithm": "HMAC-SHA256",
        "encoding": "hex (lower case)",
        "string_to_sign": [
            "METHOD",
            "PATH_AND_QUERY",
            "TIMESTAMP",
            "NONCE",
            "sha256_hex(BODY)"
        ],
        "separator": "\n",
        "max_skew_seconds": 300,
        "example": {
            "method": "GET",
            "path_and_query": "/api/v1/catalogue?type=course",
            "timestamp": "1791360000",
            "nonce": "6f1c2b9e0a7d4c11",
            "body": "",
            "body_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
            "secret": "0123456789abcdef0123456789abcdef0123456789abcdef (example only)",
            "string_to_sign": "GET\n/api/v1/catalogue?type=course\n1791360000\n6f1c2b9e0a7d4c11\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
            "signature": "d1487adf163933139af86e99ad7f9e19c3de63037df84f4dc2065f82aea43fa8"
        },
        "sdks": "https://www.careerbytecode.in/byteconnect/docs/#sdks"
    },
    "x-cbc-webhooks": {
        "signature": "X-CBC-Signature = hex HMAC-SHA256(webhook secret, X-CBC-Timestamp + \".\" + raw body); during a secret switch X-CBC-Signature-New carries the new secret",
        "events": {
            "order.paid": "data.order",
            "order.refunded": "data.order + data.refund",
            "order.created": "data.order (opt-in)",
            "order.expired": "data.order (opt-in)",
            "catalogue.updated": "data.catalogue {added, removed, changed, items} (opt-in)",
            "webhook.test": "empty data",
            "enrolment.started": "data.order + data.learner (opt-in; buyers who agreed to share progress; v1629)",
            "progress.updated": "data.order + data.learner (opt-in; v1629)",
            "certificate.issued": "data.order + data.learner (opt-in; v1629)",
            "assignment.approved": "data.order + data.learner.assignment {lesson, score, github_checked} (opt-in; v1764)",
            "campus.*": "data.campus (CampusEvent; opt-in per family: campus.plans, campus.students, campus.college, campus.learning, campus.chapters, campus.support; v1657)",
            "byteclass.attendance": "data.order + data.learner.attendance {session_id, title, starts_at, status} (opt-in; learning scope; v1796)",
            "byteclass.grade": "data.order + data.learner.grade {task_id, title, score, max} (opt-in; learning scope; v1796)",
            "byteclass.level": "data.order + data.learner.level {n, label} (opt-in; learning scope; v1796)",
            "byteclass.badge": "data.order + data.learner.badge {key, label} (opt-in; learning scope; v1796)",
            "byteclass.session": "data.session {cohort_id, session_id, title, starts_at, status} (opt-in; cohorts you sold; no learner data; v1796)",
            "byteclass.session.reminder_1h": "data.session {cohort_id, session_id, title, starts_at, status, starts_in_min} (opt-in; a class of a cohort you sold starts within the hour; once per class; no learner data; v1799)",
            "paths.updated": "data.paths [{slug, title, updated_at, url}] (opt-in; v1796)",
            "bytelabs.lab.completed": "data.order + data.learner.lab {lab_id, title} (opt-in; learning scope; v1876)",
            "bytelabs.proof.submitted": "data.order + data.learner.milestone {lab_id, position, title, check} (opt-in; learning scope; v1876)",
            "bytelabs.milestone.verified": "data.order + data.learner.milestone {lab_id, position, title, check, verified_by github|auto|review} (opt-in; learning scope; v1876)",
            "bytelabs.proof.verified": "data.order + data.learner.lab {lab_id, title, verified_by github|review} (opt-in; learning scope; v1876)",
            "bytelabs.track_certificate.issued": "data.order + data.learner.track {slug, name, certificate_id} (opt-in; learning scope; v1876)",
            "bytelabs.access.expiring": "data.order + data.learner.access {access_until, days_left} (opt-in; learning scope; v1876)"
        },
        "guide": "https://www.careerbytecode.in/byteconnect/docs/#webhooks"
    },
    "paths": {
        "/ping": {
            "get": {
                "summary": "Check key, signature and server address",
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "rate_per_min": {
                                                    "type": "integer"
                                                },
                                                "rate_scope": {
                                                    "type": "string",
                                                    "enum": [
                                                        "account"
                                                    ]
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/catalogue": {
            "get": {
                "summary": "What you may sell now",
                "parameters": [
                    {
                        "name": "type",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "course",
                                "exam",
                                "byteclass",
                                "byteplay",
                                "bytelabs"
                            ]
                        }
                    },
                    {
                        "name": "sample",
                        "in": "query",
                        "required": false,
                        "description": "Test keys only: 1 = the sandbox sample catalogue even when you have real items (v1626)",
                        "schema": {
                            "type": "integer",
                            "enum": [
                                1
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "currency": {
                                                    "type": "string"
                                                },
                                                "gst_pct": {
                                                    "type": "integer"
                                                },
                                                "items": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/Item"
                                                    }
                                                },
                                                "sample": {
                                                    "type": "boolean",
                                                    "description": "true when these are sandbox sample items (v1626)"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/bytelabs/bundles/{id}": {
            "get": {
                "summary": "The facts of a published ByteLabs bundle: labs, levels, minutes, tags, categories, free lab, outline (v1870)",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "The bundle id (the number after bytelabs: in a catalogue item id)",
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "$ref": "#/components/schemas/ByteLabsFacts"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "405": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/bytelabs/orders/{id}/progress": {
            "get": {
                "summary": "Per lab and per milestone progress of the learner of your paid ByteLabs order (v1875, learning scope, buyer consent)",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "The order id (token) from POST /checkout",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "$ref": "#/components/schemas/ByteLabsProgress"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "405": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/bytelabs/drafts": {
            "get": {
                "summary": "Your ByteLabs API draft labs with their review status (v1875, authoring scope)",
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "drafts": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/ByteLabsDraft"
                                                    }
                                                },
                                                "count": {
                                                    "type": "integer"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Send a draft lab (v1875, authoring scope). Never published without CareerByteCode review. Test keys: checked, not saved (sandbox true).",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "title"
                                ],
                                "properties": {
                                    "title": {
                                        "type": "string",
                                        "minLength": 3,
                                        "maxLength": 200
                                    },
                                    "summary": {
                                        "type": "string",
                                        "maxLength": 400
                                    },
                                    "level": {
                                        "type": "string",
                                        "enum": [
                                            "beginner",
                                            "intermediate",
                                            "advanced"
                                        ],
                                        "default": "intermediate"
                                    },
                                    "category": {
                                        "type": "string",
                                        "description": "A ByteLabs category slug (optional)"
                                    },
                                    "sections": {
                                        "type": "object",
                                        "description": "Plain text per section; a blank line starts a new paragraph",
                                        "properties": {
                                            "problem": {
                                                "type": "string"
                                            },
                                            "why": {
                                                "type": "string"
                                            },
                                            "when": {
                                                "type": "string"
                                            },
                                            "prereq": {
                                                "type": "string"
                                            },
                                            "steps": {
                                                "type": "string"
                                            },
                                            "conclusion": {
                                                "type": "string"
                                            }
                                        }
                                    },
                                    "private": {
                                        "type": "boolean",
                                        "description": "v1879: true = after review the lab shows only on your ByteLabs Brand page and to your own learners (never in the public catalogue or sitemap)"
                                    },
                                    "milestones": {
                                        "type": "array",
                                        "maxItems": 12,
                                        "items": {
                                            "type": "object",
                                            "required": [
                                                "title"
                                            ],
                                            "properties": {
                                                "title": {
                                                    "type": "string",
                                                    "maxLength": 160
                                                },
                                                "goal": {
                                                    "type": "string"
                                                },
                                                "check": {
                                                    "type": "string",
                                                    "enum": [
                                                        "github",
                                                        "browser",
                                                        "cli",
                                                        "quiz",
                                                        "screenshot",
                                                        "manual"
                                                    ]
                                                },
                                                "required": {
                                                    "type": "boolean",
                                                    "default": true
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Created",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "draft": {
                                                    "$ref": "#/components/schemas/ByteLabsDraft"
                                                },
                                                "message": {
                                                    "type": "string"
                                                },
                                                "sandbox": {
                                                    "type": "boolean"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/bytelabs/licences/{id}/seats": {
            "get": {
                "summary": "The seats of a company ByteLabs licence (v1878, checkout scope; partner linked to the company)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "licence_id": {
                                                    "type": "integer"
                                                },
                                                "bundle_id": {
                                                    "type": "integer"
                                                },
                                                "seats": {
                                                    "type": "integer"
                                                },
                                                "seats_used": {
                                                    "type": "integer"
                                                },
                                                "access_until": {
                                                    "type": "string",
                                                    "nullable": true
                                                },
                                                "renewal_due": {
                                                    "type": "boolean"
                                                },
                                                "learners": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "email": {
                                                                "type": "string"
                                                            },
                                                            "status": {
                                                                "type": "string"
                                                            },
                                                            "since": {
                                                                "type": "string"
                                                            },
                                                            "removed_at": {
                                                                "type": "string",
                                                                "nullable": true
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Add, remove or sync the seats of a company licence with your HR list (v1878; company people only; dry_run; test keys never write)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "add": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "remove": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "sync": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "remove_others": {
                                        "type": "boolean"
                                    },
                                    "dry_run": {
                                        "type": "boolean"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "added": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "removed": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "skipped": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "email": {
                                                                "type": "string"
                                                            },
                                                            "reason": {
                                                                "type": "string"
                                                            }
                                                        }
                                                    }
                                                },
                                                "dry_run": {
                                                    "type": "boolean"
                                                },
                                                "sandbox": {
                                                    "type": "boolean"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/bytelabs/grants": {
            "post": {
                "summary": "Give ONE learner a seat of your own paid ByteLabs bulk seat order (v1877, checkout scope; the same seats as POST orders/{id}/seats, no new payment)",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "order_id",
                                    "email"
                                ],
                                "properties": {
                                    "order_id": {
                                        "type": "string",
                                        "description": "The order token of a paid bytelabs order with quantity 2 or more"
                                    },
                                    "email": {
                                        "type": "string",
                                        "format": "email"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/Seats"
                                                },
                                                {
                                                    "type": "object",
                                                    "properties": {
                                                        "order_id": {
                                                            "type": "string"
                                                        },
                                                        "email": {
                                                            "type": "string"
                                                        },
                                                        "status": {
                                                            "type": "string",
                                                            "enum": [
                                                                "granted",
                                                                "failed",
                                                                "test"
                                                            ]
                                                        },
                                                        "already": {
                                                            "type": "boolean"
                                                        },
                                                        "note": {
                                                            "type": "string"
                                                        },
                                                        "access_months": {
                                                            "type": "integer"
                                                        },
                                                        "sandbox": {
                                                            "type": "boolean"
                                                        }
                                                    }
                                                }
                                            ]
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "405": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/bytelabs/pass": {
            "get": {
                "summary": "The ByteLabs Pass: on, plans with prices and perks, your resale link (v1874; on false until CareerByteCode switches it on)",
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "$ref": "#/components/schemas/ByteLabsPass"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "405": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/consulting/services": {
            "get": {
                "summary": "Consulting services a partner may offer, never prices (v1928, catalogue scope, partners CareerByteCode allows)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "services": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "slug": {
                                                                "type": "string"
                                                            },
                                                            "name": {
                                                                "type": "string"
                                                            },
                                                            "summary": {
                                                                "type": "string"
                                                            },
                                                            "domain": {
                                                                "type": "string"
                                                            }
                                                        }
                                                    }
                                                },
                                                "budget_bands": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "timelines": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "industries": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "statuses": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                },
                                                "blocked_countries": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    },
                                                    "description": "v2059"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "405": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/consulting/requests": {
            "post": {
                "summary": "Send a client consulting request (v1928, checkout scope, partners CareerByteCode allows)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "name",
                                    "email",
                                    "company",
                                    "problem",
                                    "budget_band",
                                    "consent"
                                ],
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "email": {
                                        "type": "string",
                                        "format": "email"
                                    },
                                    "company": {
                                        "type": "string"
                                    },
                                    "phone": {
                                        "type": "string"
                                    },
                                    "role": {
                                        "type": "string"
                                    },
                                    "country_code": {
                                        "type": "string",
                                        "minLength": 2,
                                        "maxLength": 2,
                                        "description": "v2059"
                                    },
                                    "country": {
                                        "type": "string"
                                    },
                                    "region": {
                                        "type": "string"
                                    },
                                    "city": {
                                        "type": "string"
                                    },
                                    "postcode": {
                                        "type": "string"
                                    },
                                    "phone_cc": {
                                        "type": "string"
                                    },
                                    "time_zone": {
                                        "type": "string"
                                    },
                                    "tax_id": {
                                        "type": "string"
                                    },
                                    "problem": {
                                        "type": "string",
                                        "minLength": 30
                                    },
                                    "services": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "budget_band": {
                                        "type": "string"
                                    },
                                    "timeline": {
                                        "type": "string"
                                    },
                                    "industry": {
                                        "type": "string"
                                    },
                                    "partner_ref": {
                                        "type": "string",
                                        "maxLength": 80
                                    },
                                    "consent": {
                                        "type": "boolean"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "request": {
                                                    "$ref": "#/components/schemas/ConsultingRequest"
                                                },
                                                "message": {
                                                    "type": "string"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "201": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "request": {
                                                    "$ref": "#/components/schemas/ConsultingRequest"
                                                },
                                                "message": {
                                                    "type": "string"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "get": {
                "summary": "Your own consulting requests (v1928, orders scope)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "requests": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/ConsultingRequest"
                                                    }
                                                },
                                                "count": {
                                                    "type": "integer"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/consulting/requests/{ref}": {
            "get": {
                "summary": "One of your consulting requests (v1928, orders scope)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "ref",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "request": {
                                                    "$ref": "#/components/schemas/ConsultingRequest"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/bytelabs/challenges": {
            "get": {
                "summary": "Open ByteLabs challenges and past judged ones with winners (v1880, catalogue scope)",
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "current": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/ByteLabsChallenge"
                                                    }
                                                },
                                                "past": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/ByteLabsChallenge"
                                                    }
                                                },
                                                "count": {
                                                    "type": "integer"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "405": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/bytelabs/leaderboard": {
            "get": {
                "summary": "The public ByteLabs leaderboard, learners (first name only) or colleges (v1880, catalogue scope)",
                "parameters": [
                    {
                        "name": "period",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "week",
                                "month",
                                "all"
                            ]
                        }
                    },
                    {
                        "name": "scope",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "learners",
                                "colleges"
                            ]
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 50
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "$ref": "#/components/schemas/ByteLabsLeaderboard"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "405": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/bytelabs/paths": {
            "get": {
                "summary": "The published ByteLabs career paths (v1872; empty until career paths are switched on)",
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "paths": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/ByteLabsPath"
                                                    }
                                                },
                                                "count": {
                                                    "type": "integer"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "405": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/bytelabs/paths/{slug}": {
            "get": {
                "summary": "One published ByteLabs career path with its ladder items (v1872)",
                "parameters": [
                    {
                        "name": "slug",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "$ref": "#/components/schemas/ByteLabsPath"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "405": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/byteclass/cohorts/{id}/syllabus": {
            "get": {
                "summary": "A ByteClass cohort's modules and lesson titles (v1786)",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "The cohort id (the number after byteclass: in a catalogue item id)",
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "cohort_id": {
                                                    "type": "integer"
                                                },
                                                "title": {
                                                    "type": "string"
                                                },
                                                "modules": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "module_ref": {
                                                                "type": "integer",
                                                                "description": "1-based syllabus row"
                                                            },
                                                            "type": {
                                                                "type": "string",
                                                                "enum": [
                                                                    "module",
                                                                    "project"
                                                                ]
                                                            },
                                                            "title": {
                                                                "type": "string"
                                                            },
                                                            "lessons": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "object",
                                                                    "properties": {
                                                                        "title": {
                                                                            "type": "string"
                                                                        },
                                                                        "kind": {
                                                                            "type": "string",
                                                                            "description": "text, video, pdf, quiz, task, live or lab (v1787); more kinds may be added"
                                                                        },
                                                                        "is_preview": {
                                                                            "type": "integer",
                                                                            "enum": [
                                                                                0,
                                                                                1
                                                                            ]
                                                                        },
                                                                        "id": {
                                                                            "type": "integer",
                                                                            "description": "Only on a free preview lesson (is_preview 1, kind text or video): use it with GET /byteclass/lessons/{id} (v1787)"
                                                                        },
                                                                        "release": {
                                                                            "type": "object",
                                                                            "description": "When the lesson opens for a learner (v1787)",
                                                                            "properties": {
                                                                                "mode": {
                                                                                    "type": "string",
                                                                                    "enum": [
                                                                                        "now",
                                                                                        "date",
                                                                                        "days",
                                                                                        "after_live"
                                                                                    ]
                                                                                },
                                                                                "value": {
                                                                                    "type": "string",
                                                                                    "description": "empty for now; YYYY-MM-DD for date; days after joining for days; the live class id for after_live"
                                                                                }
                                                                            }
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                },
                                                "lessons_total": {
                                                    "type": "integer"
                                                },
                                                "updated_at": {
                                                    "type": "string",
                                                    "nullable": true
                                                },
                                                "landing": {
                                                    "type": "object",
                                                    "description": "v1797: only when the trainer saved a landing page; read it as optional",
                                                    "properties": {
                                                        "outcomes": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "faq": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "q": {
                                                                        "type": "string"
                                                                    },
                                                                    "a": {
                                                                        "type": "string"
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "intro_video_url": {
                                                            "type": "string",
                                                            "nullable": true,
                                                            "description": "A YouTube or Vimeo link"
                                                        },
                                                        "preview_url": {
                                                            "type": "string",
                                                            "nullable": true,
                                                            "description": "The public free preview lesson page"
                                                        }
                                                    }
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "405": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/byteclass/cohorts/{id}/reviews": {
            "get": {
                "summary": "Reviews of a public ByteClass cohort that students agreed to show publicly (v1797)",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "The cohort id (the number after byteclass: in a catalogue item id)",
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "description": "How many reviews (default 50)",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 50
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "cohort_id": {
                                                    "type": "integer"
                                                },
                                                "title": {
                                                    "type": "string"
                                                },
                                                "reviews": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "name": {
                                                                "type": "string",
                                                                "description": "First name and last initial"
                                                            },
                                                            "stars": {
                                                                "type": "integer",
                                                                "nullable": true,
                                                                "minimum": 1,
                                                                "maximum": 5
                                                            },
                                                            "text": {
                                                                "type": "string"
                                                            },
                                                            "date": {
                                                                "type": "string",
                                                                "nullable": true,
                                                                "description": "YYYY-MM-DD"
                                                            }
                                                        }
                                                    }
                                                },
                                                "count": {
                                                    "type": "integer"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "405": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/byteclass/lessons/{id}": {
            "get": {
                "summary": "A free preview ByteClass lesson (v1787)",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "The id of a lesson with is_preview 1 from the cohort syllabus",
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "integer"
                                                },
                                                "cohort_id": {
                                                    "type": "integer"
                                                },
                                                "title": {
                                                    "type": "string"
                                                },
                                                "kind": {
                                                    "type": "string",
                                                    "enum": [
                                                        "text",
                                                        "video"
                                                    ]
                                                },
                                                "module_ref": {
                                                    "type": "integer"
                                                },
                                                "module_title": {
                                                    "type": "string"
                                                },
                                                "body": {
                                                    "type": "string",
                                                    "description": "Plain text, 2000 characters max"
                                                },
                                                "embed": {
                                                    "type": "object",
                                                    "nullable": true,
                                                    "properties": {
                                                        "type": {
                                                            "type": "string",
                                                            "enum": [
                                                                "youtube",
                                                                "vimeo"
                                                            ]
                                                        },
                                                        "src": {
                                                            "type": "string"
                                                        }
                                                    }
                                                },
                                                "url": {
                                                    "type": "string",
                                                    "description": "The lesson page anyone can open"
                                                },
                                                "updated_at": {
                                                    "type": "string",
                                                    "nullable": true
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "405": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/byteclass/paths": {
            "get": {
                "summary": "Published ByteClass career paths with hourly numbers (v1794)",
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "paths": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "slug": {
                                                                "type": "string"
                                                            },
                                                            "title": {
                                                                "type": "string"
                                                            },
                                                            "tagline": {
                                                                "type": "string"
                                                            },
                                                            "category": {
                                                                "type": "string"
                                                            },
                                                            "colour": {
                                                                "type": "string"
                                                            },
                                                            "icon": {
                                                                "type": "string"
                                                            },
                                                            "weeks": {
                                                                "type": "integer"
                                                            },
                                                            "url": {
                                                                "type": "string"
                                                            },
                                                            "numbers": {
                                                                "type": "object",
                                                                "description": "Refreshed every hour",
                                                                "properties": {
                                                                    "live_count": {
                                                                        "type": "integer"
                                                                    },
                                                                    "next_start": {
                                                                        "type": "string",
                                                                        "nullable": true,
                                                                        "description": "YYYY-MM-DD"
                                                                    },
                                                                    "seats_left": {
                                                                        "type": "integer",
                                                                        "nullable": true,
                                                                        "description": "null = no seat limit"
                                                                    },
                                                                    "price_from_inr": {
                                                                        "type": "integer",
                                                                        "description": "Lowest item price before GST, 0 = none"
                                                                    },
                                                                    "learners": {
                                                                        "type": "integer"
                                                                    },
                                                                    "open_jobs": {
                                                                        "type": "integer"
                                                                    },
                                                                    "new_this_week": {
                                                                        "type": "array",
                                                                        "items": {
                                                                            "type": "object",
                                                                            "nullable": true,
                                                                            "properties": {
                                                                                "title": {
                                                                                    "type": "string"
                                                                                },
                                                                                "kind": {
                                                                                    "type": "string"
                                                                                },
                                                                                "url": {
                                                                                    "type": "string"
                                                                                }
                                                                            }
                                                                        }
                                                                    },
                                                                    "top_pick": {
                                                                        "type": "object",
                                                                        "nullable": true,
                                                                        "properties": {
                                                                            "title": {
                                                                                "type": "string"
                                                                            },
                                                                            "kind": {
                                                                                "type": "string"
                                                                            },
                                                                            "url": {
                                                                                "type": "string"
                                                                            }
                                                                        }
                                                                    },
                                                                    "updated_at": {
                                                                        "type": "string",
                                                                        "nullable": true,
                                                                        "description": "IST"
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                },
                                                "count": {
                                                    "type": "integer"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "405": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/byteclass/paths/{slug}": {
            "get": {
                "summary": "One published career path with its steps and items (v1794)",
                "parameters": [
                    {
                        "name": "slug",
                        "in": "path",
                        "required": true,
                        "description": "A slug from GET /byteclass/paths",
                        "schema": {
                            "type": "string",
                            "pattern": "^[A-Za-z0-9][A-Za-z0-9-]*$"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "slug": {
                                                    "type": "string"
                                                },
                                                "title": {
                                                    "type": "string"
                                                },
                                                "tagline": {
                                                    "type": "string"
                                                },
                                                "category": {
                                                    "type": "string"
                                                },
                                                "colour": {
                                                    "type": "string"
                                                },
                                                "icon": {
                                                    "type": "string"
                                                },
                                                "weeks": {
                                                    "type": "integer"
                                                },
                                                "url": {
                                                    "type": "string"
                                                },
                                                "numbers": {
                                                    "type": "object",
                                                    "description": "Refreshed every hour",
                                                    "properties": {
                                                        "live_count": {
                                                            "type": "integer"
                                                        },
                                                        "next_start": {
                                                            "type": "string",
                                                            "nullable": true,
                                                            "description": "YYYY-MM-DD"
                                                        },
                                                        "seats_left": {
                                                            "type": "integer",
                                                            "nullable": true,
                                                            "description": "null = no seat limit"
                                                        },
                                                        "price_from_inr": {
                                                            "type": "integer",
                                                            "description": "Lowest item price before GST, 0 = none"
                                                        },
                                                        "learners": {
                                                            "type": "integer"
                                                        },
                                                        "open_jobs": {
                                                            "type": "integer"
                                                        },
                                                        "new_this_week": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "nullable": true,
                                                                "properties": {
                                                                    "title": {
                                                                        "type": "string"
                                                                    },
                                                                    "kind": {
                                                                        "type": "string"
                                                                    },
                                                                    "url": {
                                                                        "type": "string"
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "top_pick": {
                                                            "type": "object",
                                                            "nullable": true,
                                                            "properties": {
                                                                "title": {
                                                                    "type": "string"
                                                                },
                                                                "kind": {
                                                                    "type": "string"
                                                                },
                                                                "url": {
                                                                    "type": "string"
                                                                }
                                                            }
                                                        },
                                                        "updated_at": {
                                                            "type": "string",
                                                            "nullable": true,
                                                            "description": "IST"
                                                        }
                                                    }
                                                },
                                                "steps": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "pos": {
                                                                "type": "integer"
                                                            },
                                                            "kind": {
                                                                "type": "string",
                                                                "enum": [
                                                                    "learn",
                                                                    "live",
                                                                    "build",
                                                                    "prove",
                                                                    "hired"
                                                                ]
                                                            },
                                                            "kind_label": {
                                                                "type": "string"
                                                            },
                                                            "title": {
                                                                "type": "string"
                                                            },
                                                            "note": {
                                                                "type": "string"
                                                            },
                                                            "items": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "object",
                                                                    "properties": {
                                                                        "kind": {
                                                                            "type": "string",
                                                                            "description": "byteplay, byteclass, bytelabs, bundle, exam, jobs or link"
                                                                        },
                                                                        "kind_label": {
                                                                            "type": "string"
                                                                        },
                                                                        "title": {
                                                                            "type": "string"
                                                                        },
                                                                        "url": {
                                                                            "type": "string"
                                                                        },
                                                                        "top_pick": {
                                                                            "type": "boolean"
                                                                        },
                                                                        "new": {
                                                                            "type": "boolean",
                                                                            "description": "Added or published in the last 7 days"
                                                                        },
                                                                        "facts": {
                                                                            "type": "object",
                                                                            "description": "Live facts when known: next_start, seats_left, price_inr (before GST), rating, ratings, learners, labs, open_jobs, level, enrolling, running"
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "405": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/byteclass/orders/{id}/progress": {
            "get": {
                "summary": "One learner's progress on a ByteClass seat you sold (v1796, learning scope)",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "Your order id (as in GET orders); a paid byteclass order of yours in the key mode, with learner consent",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "$ref": "#/components/schemas/ByteClassProgress"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/byteclass/orders/{id}/grades": {
            "get": {
                "summary": "The learner's tasks and quizzes with scores (v1796, learning scope; no feedback text, no files)",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "Your order id (as in GET orders); a paid byteclass order of yours in the key mode, with learner consent",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "items": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/ByteClassGrade"
                                                    }
                                                },
                                                "sandbox": {
                                                    "type": "boolean"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/byteclass/orders/{id}/attendance": {
            "get": {
                "summary": "The learner's attendance per live class (v1796, learning scope)",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "Your order id (as in GET orders); a paid byteclass order of yours in the key mode, with learner consent",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "items": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/ByteClassAttendance"
                                                    }
                                                },
                                                "sandbox": {
                                                    "type": "boolean"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/byteclass/orders/{id}/preferences": {
            "get": {
                "summary": "The learner's choices (v1796, learning scope; v1799: + five email choices)",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "Your order id (as in GET orders); a paid byteclass order of yours in the key mode, with learner consent",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "$ref": "#/components/schemas/ByteClassPreferences"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "put": {
                "summary": "Change the learner's choices (v1796, learning scope; v1799: any of leaderboard_visible and the five email choices; WhatsApp never)",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "Your order id (as in GET orders); a paid byteclass order of yours in the key mode, with learner consent",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ByteClassPreferences"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "$ref": "#/components/schemas/ByteClassPreferences"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/byteclass/orders/{id}/wrapped": {
            "get": {
                "summary": "The learner's Cohort Wrapped once the cohort ended (v1800, learning scope; 404 not_ready before that)",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "Your order id (as in GET orders); a paid byteclass order of yours in the key mode, with learner consent",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "$ref": "#/components/schemas/ByteClassWrapped"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/byteclass/orders/{id}/classroom-link": {
            "post": {
                "summary": "A plain link to the learner's classroom (v1796, learning scope). Not a sign-in link: the learner signs in with Google using the email they paid with.",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "Your order id (as in GET orders); a paid byteclass order of yours in the key mode, with learner consent",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "url": {
                                                    "type": "string"
                                                },
                                                "sign_in": {
                                                    "type": "string",
                                                    "enum": [
                                                        "google"
                                                    ]
                                                },
                                                "note": {
                                                    "type": "string"
                                                },
                                                "sandbox": {
                                                    "type": "boolean"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/byteclass/cohorts/{id}/sessions": {
            "get": {
                "summary": "Live classes of a public cohort in your catalogue (v1796, catalogue or learning scope; never join or recording links)",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "The cohort id (the number after byteclass: in a catalogue item id)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "items": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/ByteClassSession"
                                                    }
                                                },
                                                "sandbox": {
                                                    "type": "boolean"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/byteclass/cohorts/{id}/calendar": {
            "get": {
                "summary": "The cohort calendar file address (v1796, catalogue scope)",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "description": "The cohort id (the number after byteclass: in a catalogue item id)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "ics_url": {
                                                    "type": "string"
                                                },
                                                "sandbox": {
                                                    "type": "boolean"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/byteclass/brand": {
            "get": {
                "summary": "Your ByteClass brand state, page address and who emails your learners (v1801, catalogue scope)",
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "$ref": "#/components/schemas/ByteClassBrand"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "put": {
                "summary": "Change who emails your learners (v1801, catalogue scope; notify_mode only, the other switches are admin_only)",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "notify_mode"
                                ],
                                "properties": {
                                    "notify_mode": {
                                        "type": "string",
                                        "enum": [
                                            "cbc",
                                            "webhooks"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "$ref": "#/components/schemas/ByteClassBrand"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/bytelabs/brand": {
            "get": {
                "summary": "Your ByteLabs brand state, page and guide addresses, who emails your learners and whether your own retail price is on (v1879, catalogue scope)",
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "$ref": "#/components/schemas/ByteLabsBrand"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "put": {
                "summary": "Change who emails your ByteLabs learners (v1879, catalogue scope; notify_mode only, the other switches are admin_only)",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "notify_mode"
                                ],
                                "properties": {
                                    "notify_mode": {
                                        "type": "string",
                                        "enum": [
                                            "cbc",
                                            "webhooks"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "$ref": "#/components/schemas/ByteLabsBrand"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/byteclass/drafts": {
            "get": {
                "summary": "Your ByteClass draft cohorts with their review status (v1801, authoring scope)",
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "drafts": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/ByteClassDraft"
                                                    }
                                                },
                                                "count": {
                                                    "type": "integer"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Send a draft cohort for CareerByteCode review (v1801, authoring scope). Never published, no batch starts without CareerByteCode approval. Test keys: checked, not saved (sandbox true).",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "title",
                                    "summary",
                                    "modules"
                                ],
                                "properties": {
                                    "title": {
                                        "type": "string",
                                        "minLength": 3,
                                        "maxLength": 200
                                    },
                                    "summary": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 500
                                    },
                                    "level": {
                                        "type": "string",
                                        "enum": [
                                            "beginner",
                                            "intermediate",
                                            "advanced"
                                        ],
                                        "default": "intermediate"
                                    },
                                    "modules": {
                                        "type": "array",
                                        "minItems": 1,
                                        "maxItems": 24,
                                        "items": {
                                            "type": "object",
                                            "required": [
                                                "title"
                                            ],
                                            "properties": {
                                                "title": {
                                                    "type": "string",
                                                    "maxLength": 200
                                                },
                                                "summary": {
                                                    "type": "string",
                                                    "maxLength": 1000
                                                }
                                            }
                                        }
                                    },
                                    "price_inr": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 500000,
                                        "description": "A suggestion in rupees before GST; CareerByteCode sets the final price"
                                    },
                                    "starts_on": {
                                        "type": "string",
                                        "format": "date",
                                        "description": "A suggestion; CareerByteCode approves the batch start"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Created",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "draft": {
                                                    "$ref": "#/components/schemas/ByteClassDraft"
                                                },
                                                "message": {
                                                    "type": "string"
                                                },
                                                "sandbox": {
                                                    "type": "boolean"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/checkout": {
            "post": {
                "summary": "Make an order and get the checkout link",
                "parameters": [
                    {
                        "name": "X-CBC-Idempotency-Key",
                        "in": "header",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "minLength": 8,
                            "maxLength": 80
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "item"
                                ],
                                "properties": {
                                    "item": {
                                        "type": "string"
                                    },
                                    "partner_ref": {
                                        "type": "string",
                                        "maxLength": 64
                                    },
                                    "quantity": {
                                        "type": "integer",
                                        "minimum": 1,
                                        "default": 1,
                                        "description": "Above 1 = a bulk seat order (v1629; only while bulk seats are on for your account)"
                                    },
                                    "retail_inr": {
                                        "type": "integer",
                                        "minimum": 1,
                                        "description": "byteclass items (v1795) and bytelabs items (v1879): your retail price before GST (per seat on a seat order), from base_inr up to the highest markup allowed; ignored while partner markup for that product is switched off"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Created",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "order": {
                                                    "$ref": "#/components/schemas/Order"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/orders": {
            "get": {
                "summary": "Your orders, newest first (page with cursor)",
                "parameters": [
                    {
                        "name": "status",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "created",
                                "paid",
                                "refunded",
                                "expired"
                            ]
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 200,
                            "default": 50
                        }
                    },
                    {
                        "name": "cursor",
                        "in": "query",
                        "required": false,
                        "description": "next_cursor from the previous page (v1626); send the same filters again",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "since",
                        "in": "query",
                        "required": false,
                        "description": "Unix seconds: only orders created, paid or refunded at or after this time (v1626)",
                        "schema": {
                            "type": "integer",
                            "minimum": 0
                        }
                    },
                    {
                        "name": "channel",
                        "in": "query",
                        "required": false,
                        "description": "api (default: the orders your server made), widget, link, page or all",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "api",
                                "widget",
                                "link",
                                "page",
                                "all"
                            ],
                            "default": "api"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "orders": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/Order"
                                                    }
                                                },
                                                "has_more": {
                                                    "type": "boolean",
                                                    "description": "v1626"
                                                },
                                                "next_cursor": {
                                                    "type": "string",
                                                    "nullable": true,
                                                    "description": "v1626; null when there is no more"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/orders/{id}": {
            "get": {
                "summary": "One order",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "order": {
                                                    "$ref": "#/components/schemas/Order"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/orders/{id}/seats": {
            "get": {
                "summary": "Seats of a bulk seat order and who has them (v1629)",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "$ref": "#/components/schemas/Seats"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Give seats of a PAID bulk seat order to learners by email (v1629)",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "emails"
                                ],
                                "properties": {
                                    "emails": {
                                        "type": "array",
                                        "maxItems": 500,
                                        "items": {
                                            "type": "string",
                                            "format": "email"
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "allOf": [
                                                {
                                                    "$ref": "#/components/schemas/Seats"
                                                },
                                                {
                                                    "type": "object",
                                                    "properties": {
                                                        "message": {
                                                            "type": "string"
                                                        },
                                                        "results": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "email": {
                                                                        "type": "string"
                                                                    },
                                                                    "status": {
                                                                        "type": "string",
                                                                        "enum": [
                                                                            "granted",
                                                                            "test",
                                                                            "failed"
                                                                        ]
                                                                    },
                                                                    "note": {
                                                                        "type": "string"
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            ]
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/ip-check": {
            "get": {
                "summary": "Server proof for an address change request",
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "your_ip": {
                                                    "type": "string"
                                                },
                                                "on_whitelist": {
                                                    "type": "boolean"
                                                },
                                                "request_id": {
                                                    "type": "integer",
                                                    "nullable": true
                                                },
                                                "recorded_for_request": {
                                                    "type": "boolean"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/jobs": {
            "get": {
                "summary": "Open ByteJobs jobs (data feed, scope jobs; added 8 Oct 2026)",
                "parameters": [
                    {
                        "name": "category",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "city",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "mode",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "onsite",
                                "remote",
                                "hybrid"
                            ]
                        }
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "fulltime",
                                "parttime",
                                "contract",
                                "internship",
                                "freelance"
                            ]
                        }
                    },
                    {
                        "name": "since",
                        "in": "query",
                        "required": false,
                        "description": "Unix seconds",
                        "schema": {
                            "type": "integer",
                            "minimum": 0
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100,
                            "default": 20
                        }
                    },
                    {
                        "name": "cursor",
                        "in": "query",
                        "required": false,
                        "description": "next_cursor of the previous jobs page",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "jobs": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/Job"
                                                    }
                                                },
                                                "has_more": {
                                                    "type": "boolean"
                                                },
                                                "next_cursor": {
                                                    "type": "string",
                                                    "nullable": true
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/jobs/{id}": {
            "get": {
                "summary": "One open job (data feed, scope jobs; added 8 Oct 2026)",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "job": {
                                                    "$ref": "#/components/schemas/Job"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/credentials/{id}": {
            "get": {
                "summary": "Check a certificate (data feed, scope credentials; added 8 Oct 2026)",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "maxLength": 64
                        }
                    },
                    {
                        "name": "code",
                        "in": "query",
                        "required": false,
                        "description": "The 4-character verification code printed next to the id: shows the full holder name",
                        "schema": {
                            "type": "string",
                            "minLength": 4,
                            "maxLength": 4
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "credential": {
                                                    "$ref": "#/components/schemas/Credential"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/creator-growth/levels": {
            "get": {
                "summary": "Creator Growth levels and special awards (scope credentials; added 15 Oct 2026)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "program": {
                                                    "type": "string"
                                                },
                                                "url": {
                                                    "type": "string"
                                                },
                                                "award_prefix": {
                                                    "type": "string"
                                                },
                                                "levels": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "level": {
                                                                "type": "integer"
                                                            },
                                                            "name": {
                                                                "type": "string"
                                                            },
                                                            "seal": {
                                                                "type": "string"
                                                            },
                                                            "credential_prefix": {
                                                                "type": "string"
                                                            },
                                                            "min_months": {
                                                                "type": "integer"
                                                            },
                                                            "members": {
                                                                "type": "integer"
                                                            },
                                                            "pass_mark": {
                                                                "type": "integer"
                                                            },
                                                            "achievement": {
                                                                "type": "string"
                                                            }
                                                        }
                                                    }
                                                },
                                                "awards": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "key": {
                                                                "type": "string"
                                                            },
                                                            "name": {
                                                                "type": "string"
                                                            },
                                                            "for": {
                                                                "type": "string"
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "405": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/creator-growth/certificates/{id}": {
            "get": {
                "summary": "One Creator Growth certificate, CBC-CGI1..4 or CBC-CGA (scope credentials; added 15 Oct 2026)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^CBC-(CGI[1-4]|CGA)-[0-9]{4}-[0-9]{4}$"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string"
                                                },
                                                "holder": {
                                                    "type": "string"
                                                },
                                                "kind": {
                                                    "type": "string"
                                                },
                                                "level": {
                                                    "type": "integer",
                                                    "nullable": true
                                                },
                                                "level_name": {
                                                    "type": "string",
                                                    "nullable": true
                                                },
                                                "award": {
                                                    "type": "string",
                                                    "nullable": true
                                                },
                                                "issued": {
                                                    "type": "string"
                                                },
                                                "status": {
                                                    "type": "string",
                                                    "enum": [
                                                        "valid",
                                                        "revoked"
                                                    ]
                                                },
                                                "verify_url": {
                                                    "type": "string"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "405": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/events": {
            "get": {
                "summary": "Public upcoming events (data feed, scope events; added 8 Oct 2026)",
                "parameters": [
                    {
                        "name": "mode",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "online",
                                "in_person",
                                "hybrid"
                            ]
                        }
                    },
                    {
                        "name": "series",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100,
                            "default": 20
                        }
                    },
                    {
                        "name": "cursor",
                        "in": "query",
                        "required": false,
                        "description": "next_cursor of the previous events page",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "events": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/Event"
                                                    }
                                                },
                                                "has_more": {
                                                    "type": "boolean"
                                                },
                                                "next_cursor": {
                                                    "type": "string",
                                                    "nullable": true
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/blog/posts": {
            "get": {
                "summary": "Published ByteBlog posts (data feed, scope blog; added 8 Oct 2026)",
                "parameters": [
                    {
                        "name": "tag",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "author",
                        "in": "query",
                        "required": false,
                        "description": "Writer handle",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "since",
                        "in": "query",
                        "required": false,
                        "description": "Unix seconds",
                        "schema": {
                            "type": "integer",
                            "minimum": 0
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100,
                            "default": 20
                        }
                    },
                    {
                        "name": "cursor",
                        "in": "query",
                        "required": false,
                        "description": "next_cursor of the previous posts page",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "posts": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/BlogPost"
                                                    }
                                                },
                                                "has_more": {
                                                    "type": "boolean"
                                                },
                                                "next_cursor": {
                                                    "type": "string",
                                                    "nullable": true
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/payouts/statements": {
            "get": {
                "summary": "Your payout statement, last 12 months (scope payouts; added 10 Oct 2026)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "months": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/PayoutMonth"
                                                    }
                                                },
                                                "sandbox": {
                                                    "type": "boolean"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/payouts/statements/{month}": {
            "get": {
                "summary": "One month of your payout statement (streams + bank payments)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "month",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^[0-9]{4}-[0-9]{2}$"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "statement": {
                                                    "$ref": "#/components/schemas/PayoutMonth"
                                                },
                                                "sandbox": {
                                                    "type": "boolean"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges": {
            "get": {
                "summary": "Your colleges (scope campus; added 9 Oct 2026; ?kind=college|company|training_center from 13 Oct 2026)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "kind",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "college",
                                "company",
                                "training_center"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "colleges": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/CampusCollege"
                                                    }
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges/{id}/roster": {
            "get": {
                "summary": "The roster (allow-list) with invitation status",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "new",
                                "queued",
                                "invited",
                                "opened",
                                "signed_in",
                                "bounced",
                                "removed"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "roster": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/CampusRosterRow"
                                                    }
                                                },
                                                "counts": {
                                                    "type": "object"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Add or update students on the roster; optionally queue invitations",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "students": {
                                        "type": "array",
                                        "maxItems": 1000,
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "college_email": {
                                                    "type": "string"
                                                },
                                                "name": {
                                                    "type": "string"
                                                },
                                                "personal_email": {
                                                    "type": "string"
                                                },
                                                "department": {
                                                    "type": "string"
                                                },
                                                "year": {
                                                    "type": "integer"
                                                },
                                                "section": {
                                                    "type": "string"
                                                },
                                                "roll_no": {
                                                    "type": "string"
                                                },
                                                "under_18": {
                                                    "type": "boolean"
                                                }
                                            }
                                        }
                                    },
                                    "invite": {
                                        "type": "boolean"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "added": {
                                                    "type": "integer"
                                                },
                                                "updated": {
                                                    "type": "integer"
                                                },
                                                "restored": {
                                                    "type": "integer"
                                                },
                                                "skipped": {
                                                    "type": "object"
                                                },
                                                "invitations_queued": {
                                                    "type": "integer"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges/{id}/roster/{rid}/remove": {
            "post": {
                "summary": "Remove one student from the roster",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "rid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "removed": {
                                                    "type": "boolean"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges/{id}/invitations": {
            "post": {
                "summary": "Queue invitation mails (no ids = everyone not invited yet)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "ids": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "queued": {
                                                    "type": "integer"
                                                },
                                                "per_hour": {
                                                    "type": "integer"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges/{id}/students": {
            "get": {
                "summary": "The student register (never personal email, date of birth or payments)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "students": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/CampusStudent"
                                                    }
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Add students straight into a department-year (v1647)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "students"
                                ],
                                "properties": {
                                    "students": {
                                        "type": "array",
                                        "maxItems": 1000,
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "college_email": {
                                                    "type": "string"
                                                },
                                                "name": {
                                                    "type": "string"
                                                },
                                                "roll_no": {
                                                    "type": "string"
                                                },
                                                "date_of_birth": {
                                                    "type": "string",
                                                    "format": "date"
                                                }
                                            }
                                        }
                                    },
                                    "department_id": {
                                        "type": "string"
                                    },
                                    "year": {
                                        "type": "integer"
                                    },
                                    "section": {
                                        "type": "string"
                                    },
                                    "invite": {
                                        "type": "boolean"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "added": {
                                                    "type": "integer"
                                                },
                                                "updated": {
                                                    "type": "integer"
                                                },
                                                "restored": {
                                                    "type": "integer"
                                                },
                                                "skipped": {
                                                    "type": "object"
                                                },
                                                "invitations_queued": {
                                                    "type": "integer"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges/{id}/access-requests": {
            "get": {
                "summary": "Pending access requests",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "requests": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object"
                                                    }
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/access-requests/{id}": {
            "post": {
                "summary": "Approve or reject an access request",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "decision": {
                                        "type": "string",
                                        "enum": [
                                            "approved",
                                            "rejected"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "decision": {
                                                    "type": "string"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/currencies": {
            "get": {
                "summary": "Plan currencies (added 10 Oct 2026)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "currencies": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "code": {
                                                                "type": "string"
                                                            },
                                                            "name": {
                                                                "type": "string"
                                                            },
                                                            "symbol": {
                                                                "type": "string"
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/partner/statement": {
            "get": {
                "summary": "Your own Campus college plan statement: shares, TDS, payouts, plans you pay (v1666; ByteConnect-only accounts; read-only)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "responses": {
                    "200": {
                        "description": "statement: share_pct, tds_pct, paid_by_hand, shares, payouts, partner_paid_plans, totals"
                    },
                    "404": {
                        "description": "no_statement"
                    }
                }
            }
        },
        "/campus/colleges/{id}/plans": {
            "get": {
                "summary": "Plans of a college",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "plans": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/CampusPlan"
                                                    }
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Propose a plan (price approved by CareerByteCode)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "seats",
                                    "currency",
                                    "per_seat",
                                    "country",
                                    "address",
                                    "billing_name",
                                    "billing_email"
                                ],
                                "properties": {
                                    "seats": {
                                        "type": "integer",
                                        "minimum": 1
                                    },
                                    "currency": {
                                        "type": "string"
                                    },
                                    "per_seat": {
                                        "type": "string"
                                    },
                                    "tier": {
                                        "type": "string",
                                        "enum": [
                                            "gold",
                                            "silver"
                                        ]
                                    },
                                    "country": {
                                        "type": "string"
                                    },
                                    "state": {
                                        "type": "string"
                                    },
                                    "gstin": {
                                        "type": "string"
                                    },
                                    "buyer_name": {
                                        "type": "string"
                                    },
                                    "address": {
                                        "type": "string"
                                    },
                                    "billing_name": {
                                        "type": "string"
                                    },
                                    "billing_email": {
                                        "type": "string"
                                    },
                                    "billing_phone": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Created",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "plan": {
                                                    "$ref": "#/components/schemas/CampusPlan"
                                                },
                                                "message": {
                                                    "type": "string"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/plans/{pid}": {
            "get": {
                "summary": "One plan with proformas and payment records",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "pid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "plan": {
                                                    "$ref": "#/components/schemas/CampusPlan"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/proformas/{fid}": {
            "get": {
                "summary": "One proforma with the bank account to pay to",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "fid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "proforma": {
                                                    "$ref": "#/components/schemas/CampusProforma"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/plans/{pid}/payments": {
            "post": {
                "summary": "Record a bank payment against the open proforma",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "pid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "po_number",
                                    "bank_ref",
                                    "transfer_date",
                                    "payer_name",
                                    "amount"
                                ],
                                "properties": {
                                    "po_number": {
                                        "type": "string"
                                    },
                                    "po_date": {
                                        "type": "string"
                                    },
                                    "bank_ref": {
                                        "type": "string"
                                    },
                                    "transfer_date": {
                                        "type": "string"
                                    },
                                    "payer_name": {
                                        "type": "string"
                                    },
                                    "amount": {
                                        "type": "string"
                                    },
                                    "proof": {
                                        "type": "object",
                                        "properties": {
                                            "name": {
                                                "type": "string"
                                            },
                                            "content_base64": {
                                                "type": "string"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Created",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "payment": {
                                                    "$ref": "#/components/schemas/CampusPayment"
                                                },
                                                "message": {
                                                    "type": "string"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/payments/{payid}/confirm": {
            "post": {
                "summary": "Confirm a payment CareerByteCode recorded for you",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "payid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "confirmed": {
                                                    "type": "boolean"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges/{id}/payments": {
            "get": {
                "summary": "Payment records of a college (never your share)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "payments": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/CampusPayment"
                                                    }
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges/{id}/invoices": {
            "get": {
                "summary": "GST tax invoices of the approved payments",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "invoices": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object"
                                                    }
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges/{id}/departments": {
            "get": {
                "summary": "Departments, sections and college settings (added 10 Oct 2026)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "settings": {
                                                    "$ref": "#/components/schemas/CampusCollegeSettings"
                                                },
                                                "departments": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/CampusDepartment"
                                                    }
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Create a department",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "code": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "done": {
                                                    "type": "boolean"
                                                },
                                                "message": {
                                                    "type": "string"
                                                },
                                                "id": {
                                                    "type": "string"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/departments/{did}": {
            "post": {
                "summary": "Rename or archive / restore a department",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "did",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "code": {
                                        "type": "string"
                                    },
                                    "status": {
                                        "type": "string",
                                        "enum": [
                                            "active",
                                            "archived"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "done": {
                                                    "type": "boolean"
                                                },
                                                "message": {
                                                    "type": "string"
                                                },
                                                "id": {
                                                    "type": "string"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/departments/{did}/sections": {
            "post": {
                "summary": "Create a section of a department-year",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "did",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "year": {
                                        "type": "integer"
                                    },
                                    "name": {
                                        "type": "string"
                                    },
                                    "batch": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "done": {
                                                    "type": "boolean"
                                                },
                                                "message": {
                                                    "type": "string"
                                                },
                                                "id": {
                                                    "type": "string"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/departments/{did}/teams": {
            "post": {
                "summary": "Name a team of a business unit (companies only, added 12 Oct 2026)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "did",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "team": {
                                        "type": "integer"
                                    },
                                    "name": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "done": {
                                                    "type": "boolean"
                                                },
                                                "message": {
                                                    "type": "string"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/sections/{sid}": {
            "post": {
                "summary": "Rename or archive / restore a section",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "sid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "batch": {
                                        "type": "string"
                                    },
                                    "status": {
                                        "type": "string",
                                        "enum": [
                                            "active",
                                            "archived"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "done": {
                                                    "type": "boolean"
                                                },
                                                "message": {
                                                    "type": "string"
                                                },
                                                "id": {
                                                    "type": "string"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges/{id}/staff": {
            "get": {
                "summary": "College staff with their mapped groups",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "staff": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/CampusStaff"
                                                    }
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Appoint staff (a college lead is a nomination)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "email": {
                                        "type": "string"
                                    },
                                    "name": {
                                        "type": "string"
                                    },
                                    "role": {
                                        "type": "string",
                                        "enum": [
                                            "lead",
                                            "tpo",
                                            "hod",
                                            "faculty"
                                        ]
                                    },
                                    "department_id": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "done": {
                                                    "type": "boolean"
                                                },
                                                "message": {
                                                    "type": "string"
                                                },
                                                "id": {
                                                    "type": "string"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/staff/{sid}/groups": {
            "post": {
                "summary": "Map a faculty member to department-years or sections (replaces)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "sid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "groups": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "department_id": {
                                                    "type": "string"
                                                },
                                                "year": {
                                                    "type": "integer"
                                                },
                                                "section_id": {
                                                    "type": "string"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "done": {
                                                    "type": "boolean"
                                                },
                                                "message": {
                                                    "type": "string"
                                                },
                                                "id": {
                                                    "type": "string"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/staff/{sid}/replace": {
            "post": {
                "summary": "Hand a staff role over to a new person",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "sid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "email": {
                                        "type": "string"
                                    },
                                    "name": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "done": {
                                                    "type": "boolean"
                                                },
                                                "message": {
                                                    "type": "string"
                                                },
                                                "id": {
                                                    "type": "string"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/staff/{sid}/remove": {
            "post": {
                "summary": "Remove a staff member",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "sid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "done": {
                                                    "type": "boolean"
                                                },
                                                "message": {
                                                    "type": "string"
                                                },
                                                "id": {
                                                    "type": "string"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/students/{stid}/group": {
            "post": {
                "summary": "Set the department, year and section of a student",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "stid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "department_id": {
                                        "type": "string"
                                    },
                                    "year": {
                                        "type": "integer"
                                    },
                                    "section_id": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "done": {
                                                    "type": "boolean"
                                                },
                                                "message": {
                                                    "type": "string"
                                                },
                                                "id": {
                                                    "type": "string"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/students/{stid}/student-lead": {
            "post": {
                "summary": "Appoint or remove a student lead (seated, 18 or older)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "stid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "on": {
                                        "type": "boolean"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "done": {
                                                    "type": "boolean"
                                                },
                                                "message": {
                                                    "type": "string"
                                                },
                                                "id": {
                                                    "type": "string"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges/{id}/corrections": {
            "get": {
                "summary": "Pending department / year correction requests",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "corrections": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object"
                                                    }
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/corrections/{rid}": {
            "post": {
                "summary": "Apply or reject a correction request",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "rid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "decision": {
                                        "type": "string",
                                        "enum": [
                                            "approved",
                                            "rejected"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "done": {
                                                    "type": "boolean"
                                                },
                                                "message": {
                                                    "type": "string"
                                                },
                                                "id": {
                                                    "type": "string"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges/{id}/settings": {
            "get": {
                "summary": "Country, time zone, academic-year start, years of study",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "settings": {
                                                    "$ref": "#/components/schemas/CampusCollegeSettings"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Save the college settings",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "country": {
                                        "type": "string"
                                    },
                                    "timezone": {
                                        "type": "string"
                                    },
                                    "academic_year_start": {
                                        "type": "string"
                                    },
                                    "years": {
                                        "type": "integer"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "settings": {
                                                    "$ref": "#/components/schemas/CampusCollegeSettings"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/onboarding": {
            "get": {
                "summary": "Your college onboardings (v1671)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "onboardings": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/CampusOnboarding"
                                                    }
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Step 1: create the college (in review) with domains, country, time zone, academic year (v1671)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "name",
                                    "domains"
                                ],
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "kind": {
                                        "type": "string"
                                    },
                                    "domains": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "country": {
                                        "type": "string"
                                    },
                                    "timezone": {
                                        "type": "string"
                                    },
                                    "academic_year_start": {
                                        "type": "string"
                                    },
                                    "years": {
                                        "type": "integer"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "onboarding": {
                                                    "$ref": "#/components/schemas/CampusOnboarding"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/onboarding/{oid}": {
            "get": {
                "summary": "One onboarding: everything sent, what waits, the approval result per step (v1671)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "oid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "onboarding": {
                                                    "$ref": "#/components/schemas/CampusOnboarding"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/onboarding/{oid}/{step}": {
            "post": {
                "summary": "Steps: college | plan | lead | structure | students | submit (v1671)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "oid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "step",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "college",
                                "plan",
                                "lead",
                                "structure",
                                "students",
                                "submit"
                            ]
                        }
                    }
                ],
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "message": {
                                                    "type": "string"
                                                },
                                                "onboarding": {
                                                    "$ref": "#/components/schemas/CampusOnboarding"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges/{id}/catalog": {
            "get": {
                "summary": "Content you can assign (kind, q; paged with page, per_page and group from v1668; sub and kind=class from v1669) (added 10 Oct 2026)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "kind",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "q",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "group",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "sub",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "maximum": 200
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges/{id}/assignments": {
            "get": {
                "summary": "Assignments of a college",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "assignments": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/CampusAssignment"
                                                    }
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Assign work (kind, content_id or item_id, due in the college time zone, targets; v1669: content_ids, item_ids, mode, all_in_group, bundle_id, task details, dry_run; answers ids)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/assignments/{aid}": {
            "get": {
                "summary": "The live tracker of one assignment",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "aid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Edit, close, cancel or reopen",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "aid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/assignments/{aid}/edit": {
            "get": {
                "summary": "What can change on one assignment (v1673)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "aid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Fix a wrong assignment: swap the item, who, dates, details (v1673)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "aid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "patch": {
                "summary": "Same as POST (v1673)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "aid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/assignments/{aid}/remove": {
            "post": {
                "summary": "Remove an assignment for every student, with a reason (v1673)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "aid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/assignments/{aid}/history": {
            "get": {
                "summary": "The change history of one assignment (v1673)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "aid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges/{id}/student-cards": {
            "get": {
                "summary": "Public student cards of one college, never mobile or email (v1673)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/assignments/{aid}/nudge": {
            "post": {
                "summary": "Remind everyone who has not done it",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "aid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/assignment-members/{mid}/grade": {
            "post": {
                "summary": "Grade a task (score 0-100, feedback; v1669: rubric points or points)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "mid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges/{id}/content": {
            "get": {
                "summary": "College-only challenges, exams and tasks (never the answers)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "content": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/CampusCollegeItem"
                                                    }
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Author college-only content (v1669: csv = the sample CSV of a college exam or a challenge pool)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/content/{iid}": {
            "post": {
                "summary": "Edit, archive or ask for the exam review",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "iid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges/{id}/batches": {
            "get": {
                "summary": "Named batches of students",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Create or replace a batch",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges/{id}/lab-gradebook": {
            "get": {
                "summary": "The ByteLabs lab gradebook of the college (v1878, read-only; ?semester=; never an email)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "semester",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "college_id": {
                                                    "type": "string"
                                                },
                                                "semester": {
                                                    "type": "string",
                                                    "nullable": true
                                                },
                                                "columns": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "assignment_id": {
                                                                "type": "string"
                                                            },
                                                            "title": {
                                                                "type": "string"
                                                            },
                                                            "due_local": {
                                                                "type": "string"
                                                            }
                                                        }
                                                    }
                                                },
                                                "students": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "student_id": {
                                                                "type": "string",
                                                                "nullable": true
                                                            },
                                                            "name": {
                                                                "type": "string"
                                                            },
                                                            "group": {
                                                                "type": "string"
                                                            },
                                                            "labs": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "object"
                                                                }
                                                            },
                                                            "labs_verified": {
                                                                "type": "integer"
                                                            },
                                                            "labs_total": {
                                                                "type": "integer"
                                                            },
                                                            "average_score": {
                                                                "type": "integer"
                                                            },
                                                            "verified_builds": {
                                                                "type": "integer"
                                                            }
                                                        }
                                                    }
                                                },
                                                "semesters": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object"
                                                    }
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges/{id}/progress": {
            "get": {
                "summary": "The progress drill-down (department_id, year, section_id, range, product)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "$ref": "#/components/schemas/CampusProgress"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/students/{stid}/progress": {
            "get": {
                "summary": "One student: measures and assignments",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "stid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges/{id}/chapter": {
            "get": {
                "summary": "The college chapter (v1649)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "chapter": {
                                                    "$ref": "#/components/schemas/CampusChapter"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Create the college chapter (first launch approved by CareerByteCode) or edit it",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges/{id}/chapter/leaders": {
            "get": {
                "summary": "Chapter leaders and invitations",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Appoint a chapter lead or organiser by email",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges/{id}/chapter/events": {
            "get": {
                "summary": "Chapter events with department tags and attendance counts",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Link an event with a department tag",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges/{id}/chapter/members": {
            "get": {
                "summary": "Chapter members: names, role, department-year, events attended (no contact details)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges/{id}/chapter/announcements": {
            "get": {
                "summary": "Chapter announcements (active or pending)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Post an announcement",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/privacy-rules": {
            "get": {
                "summary": "Privacy rules by country (v1650)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "rules": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/CampusPrivacyRule"
                                                    }
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges/{id}/privacy": {
            "get": {
                "summary": "The college rule, agreement state and region (v1650)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Set the state or region {\"region\"}",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "region": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges/{id}/ranking": {
            "get": {
                "summary": "College and national rank of the college students (handles; never emails)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "period",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "year",
                                "month",
                                "week",
                                "all"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/students/{stid}/visibility": {
            "get": {
                "summary": "A student visibility (v1650)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "stid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "visibility": {
                                                    "$ref": "#/components/schemas/CampusVisibility"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Hide a profile or a ranking (a partner may only hide)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "stid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "profile": {
                                        "type": "string",
                                        "enum": [
                                            "hidden"
                                        ]
                                    },
                                    "ranking": {
                                        "type": "string",
                                        "enum": [
                                            "hidden"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "student_only: only the student publishes"
                    }
                }
            }
        },
        "/campus/colleges/{id}/transfers": {
            "get": {
                "summary": "Transfers into (in) or out of (out) the college",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "direction",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "in",
                                "out"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/transfers/{tid}": {
            "post": {
                "summary": "Approve or reject a transfer into your college",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "tid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "decision": {
                                        "type": "string",
                                        "enum": [
                                            "approve",
                                            "reject"
                                        ]
                                    },
                                    "note": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges/{id}/data-requests": {
            "get": {
                "summary": "Deletion requests of the college students (state and deadline only)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges/{id}/coverage": {
            "get": {
                "summary": "What the college plan covers right now (v1651)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "coverage": {
                                                    "$ref": "#/components/schemas/CampusCoverage"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges/{id}/seats": {
            "get": {
                "summary": "The sticky seat list (seated, waiting in order, released; never an email)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "seated",
                                "waiting",
                                "released"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "seats": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/CampusSeat"
                                                    }
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges/{id}/waiting-order": {
            "post": {
                "summary": "Order the waiting list (seated students never move)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "order": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/seats/{seat_id}/release": {
            "post": {
                "summary": "Free a seat with a reason (the next waiting student gets it)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "seat_id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "reason": {
                                        "type": "string",
                                        "enum": [
                                            "left",
                                            "dropped",
                                            "roster_error",
                                            "other"
                                        ]
                                    },
                                    "note": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges/{id}/renewal": {
            "get": {
                "summary": "This year seats and price, plan end, reminders, the renewal plan (v1651)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Propose the renewal into the bank flow",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "seats": {
                                        "type": "integer"
                                    },
                                    "per_seat": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "plan_id": {
                                                    "type": "string"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges/{id}/free-plans": {
            "get": {
                "summary": "Free trials and free plans of the college, and requests (v1651)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Ask for a free trial or free plan (an admin decides)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "kind": {
                                        "type": "string",
                                        "enum": [
                                            "trial",
                                            "free"
                                        ]
                                    },
                                    "seats": {
                                        "type": "integer"
                                    },
                                    "unit": {
                                        "type": "string",
                                        "enum": [
                                            "days",
                                            "months",
                                            "end"
                                        ]
                                    },
                                    "value": {
                                        "type": "integer"
                                    },
                                    "end": {
                                        "type": "string"
                                    },
                                    "reason": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "plan_id": {
                                                    "type": "string"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges/{id}/classes": {
            "get": {
                "summary": "College cohorts of the college (v1652; never public)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "classes": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/CampusClass"
                                                    }
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Create a college cohort (draft)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "title",
                                    "starts_on",
                                    "ends_on",
                                    "seats"
                                ],
                                "properties": {
                                    "title": {
                                        "type": "string"
                                    },
                                    "summary": {
                                        "type": "string"
                                    },
                                    "starts_on": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "ends_on": {
                                        "type": "string",
                                        "format": "date"
                                    },
                                    "seats": {
                                        "type": "integer"
                                    },
                                    "auto_approve": {
                                        "type": "boolean"
                                    },
                                    "trainer_email": {
                                        "type": "string"
                                    },
                                    "groups": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "department_id": {
                                                    "type": "string"
                                                },
                                                "year": {
                                                    "type": "integer"
                                                },
                                                "section_id": {
                                                    "type": "string"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/classes/{cid}": {
            "get": {
                "summary": "One college cohort (v1652)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "cid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "class": {
                                                    "$ref": "#/components/schemas/CampusClass"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Edit, or start / decline the start",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "cid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "action": {
                                        "type": "string",
                                        "enum": [
                                            "start",
                                            "decline"
                                        ]
                                    },
                                    "note": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/classes/{cid}/students": {
            "get": {
                "summary": "Students of the cohort (never an email)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "cid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Bulk seats covered by the college plan",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "cid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "emails": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "groups": {
                                        "type": "boolean"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/classes/{cid}/students/{student_id}/remove": {
            "post": {
                "summary": "Take a student out of the cohort (work kept)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "cid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "student_id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "reason"
                                ],
                                "properties": {
                                    "reason": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/classes/{cid}/joins": {
            "get": {
                "summary": "Join requests of the cohort",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "cid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "pending",
                                "approved",
                                "auto",
                                "rejected",
                                "withdrawn",
                                "moved"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "requests": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/CampusClassJoin"
                                                    }
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/joins/{jid}": {
            "post": {
                "summary": "Approve or reject a join request (the first decision wins)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "jid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "decision"
                                ],
                                "properties": {
                                    "decision": {
                                        "type": "string",
                                        "enum": [
                                            "approve",
                                            "reject"
                                        ]
                                    },
                                    "note": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/classes/{cid}/sessions": {
            "get": {
                "summary": "Live classes of the cohort",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "cid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Add a live class (returns overlapping sessions of the trainer)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "cid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "title",
                                    "starts_at"
                                ],
                                "properties": {
                                    "title": {
                                        "type": "string"
                                    },
                                    "starts_at": {
                                        "type": "string"
                                    },
                                    "minutes": {
                                        "type": "integer"
                                    },
                                    "join_url": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/classes/{cid}/progress": {
            "get": {
                "summary": "Per student: attendance, classwork, weekly posts, Campus measures (never an email)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "cid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges/{id}/placement": {
            "get": {
                "summary": "The placement board of the college (v1798, read-only; first name + last initial; never an email, date of birth, payment or salary)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "looking",
                                "interviewing",
                                "placed",
                                "higher_studies",
                                "not_looking"
                            ]
                        }
                    },
                    {
                        "name": "class",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "college_id": {
                                                    "type": "string"
                                                },
                                                "total": {
                                                    "type": "integer"
                                                },
                                                "counts": {
                                                    "type": "object"
                                                },
                                                "placement": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "class_id": {
                                                                "type": "string"
                                                            },
                                                            "class_title": {
                                                                "type": "string"
                                                            },
                                                            "learner": {
                                                                "type": "string"
                                                            },
                                                            "job_ready": {
                                                                "type": "integer",
                                                                "nullable": true
                                                            },
                                                            "certificate": {
                                                                "type": "object",
                                                                "nullable": true,
                                                                "properties": {
                                                                    "id": {
                                                                        "type": "string"
                                                                    },
                                                                    "verify_url": {
                                                                        "type": "string"
                                                                    }
                                                                }
                                                            },
                                                            "status": {
                                                                "type": "string"
                                                            },
                                                            "employer": {
                                                                "type": "string"
                                                            },
                                                            "role": {
                                                                "type": "string"
                                                            },
                                                            "placed_on": {
                                                                "type": "string",
                                                                "nullable": true
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/classes/{cid}/attendance": {
            "get": {
                "summary": "Attendance of every class: present (confirmed), prefilled (Join click), absent (v1653)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "cid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Save a class attendance (confirmed) or confirm the prefilled rows",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "cid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "session_id"
                                ],
                                "properties": {
                                    "session_id": {
                                        "type": "integer"
                                    },
                                    "present": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    },
                                    "confirm_prefilled": {
                                        "type": "boolean"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/classes/{cid}/grades": {
            "get": {
                "summary": "Graded items, graded work, average score and the score per item per student (never answers)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "cid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Enter, change or clear one grade by hand, or add a graded item (v1668)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "cid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "student_id": {
                                        "type": "string"
                                    },
                                    "item_id": {
                                        "type": "integer"
                                    },
                                    "score": {
                                        "type": "integer",
                                        "nullable": true
                                    },
                                    "feedback": {
                                        "type": "string"
                                    },
                                    "action": {
                                        "type": "string",
                                        "enum": [
                                            "add_item"
                                        ]
                                    },
                                    "title": {
                                        "type": "string"
                                    },
                                    "points": {
                                        "type": "integer"
                                    },
                                    "kind": {
                                        "type": "string",
                                        "enum": [
                                            "assignment",
                                            "project"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "201": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "item_id": {
                                                    "type": "integer"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/classes/{cid}/certificates": {
            "get": {
                "summary": "Certificate rules and every student's steps",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "cid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "students": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/CampusClassCertificate"
                                                    }
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Sign off a student (or withdraw the sign-off)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "cid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "student_id",
                                    "action"
                                ],
                                "properties": {
                                    "student_id": {
                                        "type": "string"
                                    },
                                    "action": {
                                        "type": "string",
                                        "enum": [
                                            "sign_off",
                                            "withdraw"
                                        ]
                                    },
                                    "note": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/classes/{cid}/weeks": {
            "post": {
                "summary": "Waive (or un-waive) one week of the weekly post for one student",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "cid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "student_id",
                                    "week",
                                    "action"
                                ],
                                "properties": {
                                    "student_id": {
                                        "type": "string"
                                    },
                                    "week": {
                                        "type": "integer"
                                    },
                                    "action": {
                                        "type": "string",
                                        "enum": [
                                            "waive",
                                            "unwaive"
                                        ]
                                    },
                                    "reason": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/classes/{cid}/trainer": {
            "post": {
                "summary": "Hand the cohort to another trainer of your team",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "cid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "trainer_email",
                                    "reason"
                                ],
                                "properties": {
                                    "trainer_email": {
                                        "type": "string"
                                    },
                                    "reason": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges/{id}/arena": {
            "get": {
                "summary": "Arena leaderboard, paths and contests of one of your colleges (v1654)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/students/{stid}/arena": {
            "get": {
                "summary": "One student Arena progress (never answers)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "stid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "arena": {
                                                    "$ref": "#/components/schemas/CampusArenaProgress"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges/{id}/paths": {
            "get": {
                "summary": "College paths",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Write a college path from approved library items",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "title"
                                ],
                                "properties": {
                                    "title": {
                                        "type": "string"
                                    },
                                    "track": {
                                        "type": "string"
                                    },
                                    "description": {
                                        "type": "string"
                                    },
                                    "steps": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "kind": {
                                                    "type": "string",
                                                    "enum": [
                                                        "challenge",
                                                        "project",
                                                        "lab"
                                                    ]
                                                },
                                                "id": {
                                                    "type": "integer"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/brand": {
            "get": {
                "summary": "Your white-label brand and Brand tier state (v1664)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "responses": {
                    "200": {
                        "description": "brand, brand_tier, data"
                    }
                }
            },
            "post": {
                "summary": "Save your white-label brand (v1664)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "responses": {
                    "200": {
                        "description": "saved, brand"
                    },
                    "400": {
                        "description": "bad_brand"
                    }
                }
            }
        },
        "/campus/brand/logo": {
            "post": {
                "summary": "Upload your brand logo, PNG or JPG as base64 (v1664, waits for approval)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "responses": {
                    "200": {
                        "description": "logo_status pending"
                    },
                    "400": {
                        "description": "bad_logo"
                    }
                }
            }
        },
        "/campus/brand/domain": {
            "post": {
                "summary": "Ask for (or withdraw) your own domain, white-label level 3 (v1665; set up by hand, only live domains answer)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "responses": {
                    "200": {
                        "description": "saved, domain, domain_status, domain_dns_target"
                    },
                    "400": {
                        "description": "bad_domain"
                    },
                    "409": {
                        "description": "no_brand"
                    }
                }
            }
        },
        "/campus/brand/colleges": {
            "get": {
                "summary": "Colleges your branded partner page lists (v1664)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "responses": {
                    "200": {
                        "description": "colleges"
                    }
                }
            }
        },
        "/campus/hq": {
            "get": {
                "summary": "Vendor Campus HQ overview of your colleges (v1656, never earnings)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "responses": {
                    "200": {
                        "description": "totals, attention, progress, colleges"
                    }
                }
            }
        },
        "/campus/hq/colleges": {
            "get": {
                "summary": "Your colleges (v1656)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "responses": {
                    "200": {
                        "description": "colleges",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/CampusHqCollege"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/hq/colleges/{id}": {
            "get": {
                "summary": "One of your colleges with staff roles, departments, cohorts and progress (v1656)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "college"
                    },
                    "404": {
                        "description": "not yours"
                    }
                }
            }
        },
        "/campus/hq/students": {
            "get": {
                "summary": "Students across your colleges (v1656, never personal emails)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "q",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "college_id",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "students"
                    }
                }
            }
        },
        "/campus/hq/digest": {
            "get": {
                "summary": "This week Monday digest numbers (v1656, no mail sent)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "responses": {
                    "200": {
                        "description": "week, colleges"
                    }
                }
            }
        },
        "/campus/colleges/{id}/trainers": {
            "get": {
                "summary": "Trainers of one college and its classes (v1672)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "ok"
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Add a team member as trainer or invite someone new (v1672)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "email": {
                                        "type": "string"
                                    },
                                    "name": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "ok"
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/team": {
            "get": {
                "summary": "Team stats of the vendor team command center: counts, ranks, goals and alerts, never an amount (v1675)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "period",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "this",
                                "last",
                                "all"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "period, months, members, alerts"
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/team/suggestions": {
            "get": {
                "summary": "Suggestions the vendor team sent and the answers (v1675)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "status",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "new",
                                "replied",
                                "done",
                                "not_now"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "suggestions"
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/trainers": {
            "get": {
                "summary": "My trainers: the vendor team and the colleges each one is main trainer of (v1674)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "responses": {
                    "200": {
                        "description": "ok"
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Add a trainer once and tick their colleges (v1674)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "email": {
                                        "type": "string"
                                    },
                                    "name": {
                                        "type": "string"
                                    },
                                    "colleges": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "ok"
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/trainers/{member_id}/colleges": {
            "post": {
                "summary": "Tick exactly these colleges for one trainer (v1674)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "member_id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "colleges": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "ok"
                    },
                    "403": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges/{id}/trainers/{member_id}/remove": {
            "post": {
                "summary": "Remove a trainer from one college (v1672)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "member_id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "ok"
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/classes/{cid}/main-trainer": {
            "post": {
                "summary": "Set the main trainer of a college class (v1672)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "cid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "trainer_email": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "ok"
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/classes/{cid}/co-trainers": {
            "post": {
                "summary": "Add or remove a co-trainer of a college class (v1672)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "cid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "email": {
                                        "type": "string"
                                    },
                                    "action": {
                                        "type": "string",
                                        "enum": [
                                            "add",
                                            "remove"
                                        ]
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "ok"
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/students/{sid}/account": {
            "get": {
                "summary": "A student account: emails masked by the privacy rule, merge, change requests (v1672)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "sid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "ok"
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Fix a student account: clear_personal, set_email, undo_merge, remove (v1672)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "sid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "action": {
                                        "type": "string",
                                        "enum": [
                                            "clear_personal",
                                            "set_email",
                                            "undo_merge",
                                            "remove"
                                        ]
                                    },
                                    "email": {
                                        "type": "string"
                                    },
                                    "reason": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "ok"
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/colleges/{id}/email-requests": {
            "get": {
                "summary": "Student personal email change requests (v1672)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "ok"
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/email-requests/{rid}": {
            "post": {
                "summary": "Approve or reject a personal email change (v1672)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "rid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "decision": {
                                        "type": "string",
                                        "enum": [
                                            "approve",
                                            "reject"
                                        ]
                                    },
                                    "note": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "ok"
                    },
                    "400": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/hq/team": {
            "get": {
                "summary": "Vendor team members with Campus permissions (v1656, default-deny)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "responses": {
                    "200": {
                        "description": "members",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/CampusHqMember"
                                    }
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "not a vendor account"
                    }
                }
            }
        },
        "/campus/hq/team/{member_id}": {
            "post": {
                "summary": "Set a team member Campus permissions and colleges (v1656)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "member_id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "member"
                    },
                    "404": {
                        "description": "not yours"
                    }
                }
            }
        },
        "/campus/colleges/{id}/project-reviews": {
            "get": {
                "summary": "Practice project hand-ins of your college students (v1656)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "submitted",
                                "changes",
                                "approved",
                                "all"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "reviews"
                    }
                }
            }
        },
        "/campus/project-reviews/{id}": {
            "post": {
                "summary": "Approve a practice project hand-in or ask for changes (v1656)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "done"
                    },
                    "404": {
                        "description": "not yours"
                    }
                }
            }
        },
        "/campus/webhook-events": {
            "get": {
                "summary": "Campus webhook families you may tick and the ones you ticked (v1657)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "responses": {
                    "200": {
                        "description": "families, ticked, webhook_url_set, naming"
                    }
                }
            }
        },
        "/campus/events": {
            "get": {
                "summary": "Campus events of your colleges as a feed (v1657)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "since",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "college_id",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "maximum": 500
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "events",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/CampusEvent"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/tickets": {
            "get": {
                "summary": "Help tickets of your colleges (v1657)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "responses": {
                    "200": {
                        "description": "tickets",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/CampusTicket"
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Open a help ticket for one of your colleges (v1657)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "responses": {
                    "201": {
                        "description": "ticket"
                    },
                    "404": {
                        "description": "not your college"
                    },
                    "409": {
                        "description": "not saved (rate limit or missing fields)"
                    }
                }
            }
        },
        "/campus/tickets/{id}": {
            "get": {
                "summary": "One help ticket with its messages (v1657)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "ticket"
                    },
                    "404": {
                        "description": "not found"
                    }
                }
            }
        },
        "/campus/tickets/{id}/reply": {
            "post": {
                "summary": "Answer a help ticket (v1657)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "sent"
                    }
                }
            }
        },
        "/campus/tickets/{id}/resolve": {
            "post": {
                "summary": "Mark a help ticket resolved (v1657)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "resolved"
                    }
                }
            }
        },
        "/campus/roster": {
            "get": {
                "summary": "One roster across all your colleges, paged (v1661, never a personal email)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "page",
                        "in": "query",
                        "schema": {
                            "type": "integer"
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "maximum": 1000
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "students, page, per_page, total, waiting_for_agreement"
                    }
                }
            }
        },
        "/campus/colleges/{id}/certificates": {
            "get": {
                "summary": "Certificates of one of your colleges (v1661)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "certificates"
                    },
                    "404": {
                        "description": "not your college"
                    }
                }
            }
        },
        "/campus/colleges/{id}/stories": {
            "get": {
                "summary": "Stories of one of your colleges with their state (v1662)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "stories"
                    },
                    "404": {
                        "description": "not your college"
                    }
                }
            },
            "post": {
                "summary": "Send a college story (a student story waits for the student; CareerByteCode publishes) (v1662)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "story"
                    },
                    "400": {
                        "description": "bad_story"
                    },
                    "404": {
                        "description": "not your college"
                    }
                }
            }
        },
        "/campus/colleges/{id}/report": {
            "get": {
                "summary": "The private college report (v1662)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "report"
                    },
                    "404": {
                        "description": "not your college"
                    }
                }
            }
        },
        "/campus/colleges/{id}/certificates/check": {
            "post": {
                "summary": "Run the certificate rules now for one of your colleges (v1661; dry_run counts only)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "checked, issued or would_issue, dry_run"
                    },
                    "404": {
                        "description": "not your college"
                    }
                }
            }
        },
        "/campus/jobs": {
            "get": {
                "summary": "Campus jobs of your companies with applicant counts (v1658)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "responses": {
                    "200": {
                        "description": "jobs",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/CampusJob"
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Post a role under one of your companies; it goes to review (v1658)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "responses": {
                    "201": {
                        "description": "job (review_status pending)"
                    },
                    "404": {
                        "description": "not your company"
                    },
                    "400": {
                        "description": "no title"
                    }
                }
            }
        },
        "/campus/jobs/{id}/applicants": {
            "get": {
                "summary": "Applicants of one of your jobs (v1658)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "job + applicants"
                    },
                    "404": {
                        "description": "not your job"
                    }
                }
            }
        },
        "/campus/applications/{id}": {
            "post": {
                "summary": "Move an applicant: applied, shortlisted, rejected, hired (v1658)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "saved"
                    },
                    "400": {
                        "description": "bad status"
                    },
                    "404": {
                        "description": "not your application"
                    }
                }
            }
        },
        "/campus/colleges/{id}/changes": {
            "get": {
                "summary": "CareerByteCode changes on your college with before and after values (v1657)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "changes"
                    }
                }
            }
        },
        "/campus/colleges/{id}/exam-results": {
            "get": {
                "summary": "CBC exam and college exam results of one of your colleges (v1655, never answers)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "student_id",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "$ref": "#/components/schemas/CampusExamResults"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/students/{stid}/exam-results": {
            "get": {
                "summary": "One student exam results (v1655, never answers)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "stid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "$ref": "#/components/schemas/CampusExamResults"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/assignments/{aid}/exam-results": {
            "get": {
                "summary": "Results of one exam assignment (v1655)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "aid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "assignment_id": {
                                                    "type": "string"
                                                },
                                                "kind": {
                                                    "type": "string"
                                                },
                                                "results": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object"
                                                    }
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/paths/{pid}": {
            "get": {
                "summary": "One college path: steps and who finished",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "pid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Edit a college path, add or remove steps, retire it",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "pid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/students/{student_id}/coverage": {
            "get": {
                "summary": "Is this student covered, and why not (v1651)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "parameters": [
                    {
                        "name": "student_id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object"
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/campus/sso-link": {
            "post": {
                "summary": "A signed sign-in link for a roster student (works once, for 60 seconds)",
                "security": [
                    {
                        "CbcKey": [],
                        "CbcTimestamp": [],
                        "CbcNonce": [],
                        "CbcSignature": []
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "college_id",
                                    "email"
                                ],
                                "properties": {
                                    "college_id": {
                                        "type": "string"
                                    },
                                    "email": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Created",
                        "headers": {
                            "X-RateLimit-Limit": {
                                "$ref": "#/components/headers/X-RateLimit-Limit"
                            },
                            "X-RateLimit-Remaining": {
                                "$ref": "#/components/headers/X-RateLimit-Remaining"
                            },
                            "X-RateLimit-Reset": {
                                "$ref": "#/components/headers/X-RateLimit-Reset"
                            },
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "ok": {
                                            "type": "boolean"
                                        },
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "url": {
                                                    "type": "string",
                                                    "format": "uri"
                                                },
                                                "expires_in": {
                                                    "type": "integer"
                                                },
                                                "single_use": {
                                                    "type": "boolean"
                                                }
                                            }
                                        },
                                        "request_id": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Error",
                        "headers": {
                            "X-Request-Id": {
                                "$ref": "#/components/headers/X-Request-Id"
                            }
                        },
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "components": {
        "securitySchemes": {
            "CbcKey": {
                "type": "apiKey",
                "in": "header",
                "name": "X-CBC-Key",
                "description": "Your key id (cbc_test_... or cbc_live_...). Always sent together with X-CBC-Timestamp, X-CBC-Nonce and X-CBC-Signature.\n\nEvery request is signed. Send all four headers:\n\n1. X-CBC-Key: your key id (cbc_test_... or cbc_live_...).\n2. X-CBC-Timestamp: the current unix time in seconds (refused when more than 300 seconds from our clock).\n3. X-CBC-Nonce: 8 to 64 characters of A-Z a-z 0-9 _ -, new for every request (a repeat is refused with nonce_reused).\n4. X-CBC-Signature: lower-case hex of HMAC-SHA256(key secret, string_to_sign), where string_to_sign is five lines joined by \\n (no trailing newline):\n   METHOD (capitals)\n   PATH_AND_QUERY exactly as sent, starting with /api/v1/ (for example /api/v1/orders?status=paid&limit=200)\n   TIMESTAMP\n   NONCE\n   lower-case hex SHA-256 of the raw request body (the hash of an empty string for GET)\n\nWorked example (the secret is an example only): GET /api/v1/catalogue?type=course, timestamp 1791360000, nonce 6f1c2b9e0a7d4c11, empty body.\nstring_to_sign = \"GET\\n/api/v1/catalogue?type=course\\n1791360000\\n6f1c2b9e0a7d4c11\\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\"\nsecret = \"0123456789abcdef0123456789abcdef0123456789abcdef\" gives X-CBC-Signature = d1487adf163933139af86e99ad7f9e19c3de63037df84f4dc2065f82aea43fa8\n\nA generated client cannot compute these headers by itself: add a request hook (interceptor, middleware or a Postman pre-request script) that signs each call, or use the official SDKs: https://www.careerbytecode.in/byteconnect/docs/#sdks"
            },
            "CbcTimestamp": {
                "type": "apiKey",
                "in": "header",
                "name": "X-CBC-Timestamp",
                "description": "Current unix time in seconds, within 300 seconds of our clock. Line 3 of the string to sign."
            },
            "CbcNonce": {
                "type": "apiKey",
                "in": "header",
                "name": "X-CBC-Nonce",
                "description": "New for every request: 8 to 64 of A-Z a-z 0-9 _ -. Line 4 of the string to sign."
            },
            "CbcSignature": {
                "type": "apiKey",
                "in": "header",
                "name": "X-CBC-Signature",
                "description": "Computed per request, never a fixed value: lower-case hex HMAC-SHA256(secret, METHOD\\nPATH_AND_QUERY\\nTIMESTAMP\\nNONCE\\nsha256_hex(BODY)). Example: d1487adf163933139af86e99ad7f9e19c3de63037df84f4dc2065f82aea43fa8 for the worked example in CbcKey and x-cbc-signing."
            }
        },
        "headers": {
            "X-RateLimit-Limit": {
                "description": "Requests a minute for your account in this mode (v1626)",
                "schema": {
                    "type": "integer"
                }
            },
            "X-RateLimit-Remaining": {
                "description": "Requests left in the current minute, this one included (v1626)",
                "schema": {
                    "type": "integer"
                }
            },
            "X-RateLimit-Reset": {
                "description": "Unix time the current minute window ends (v1626)",
                "schema": {
                    "type": "integer"
                }
            },
            "X-Request-Id": {
                "description": "The request_id of the answer",
                "schema": {
                    "type": "string"
                }
            }
        },
        "schemas": {
            "Item": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string",
                        "example": "course:kubernetes-bootcamp"
                    },
                    "type": {
                        "type": "string",
                        "enum": [
                            "course",
                            "exam",
                            "byteclass",
                            "byteplay",
                            "bytelabs",
                            "creator"
                        ],
                        "description": "creator = another creator's ByteStore product (v1629, only while creator items are on for you)"
                    },
                    "ref": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "base_inr": {
                        "type": "integer"
                    },
                    "gst_inr": {
                        "type": "integer"
                    },
                    "total_inr": {
                        "type": "integer"
                    },
                    "summary": {
                        "type": "string"
                    },
                    "highlights": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "image": {
                        "type": "string"
                    },
                    "creator": {
                        "type": "string"
                    },
                    "detail_url": {
                        "type": "string"
                    },
                    "byteplay": {
                        "type": "object",
                        "description": "v1733: BytePlay items only; course facts (keys are only ever added)",
                        "properties": {
                            "modules": {
                                "type": "integer"
                            },
                            "lessons": {
                                "type": "integer"
                            },
                            "video_minutes": {
                                "type": "integer"
                            },
                            "preview_lessons": {
                                "type": "integer"
                            },
                            "resources": {
                                "type": "integer"
                            },
                            "exams": {
                                "type": "integer"
                            },
                            "certificate": {
                                "type": "string",
                                "enum": [
                                    "completion",
                                    "completion_and_exam",
                                    "completion_and_quizzes"
                                ]
                            },
                            "language": {
                                "type": "string"
                            },
                            "caption_languages": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "target_roles": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "last_updated": {
                                "type": "string",
                                "description": "YYYY-MM-DD or empty"
                            },
                            "faq": {
                                "type": "array",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "q": {
                                            "type": "string"
                                        },
                                        "a": {
                                            "type": "string"
                                        }
                                    }
                                }
                            },
                            "top_quality": {
                                "type": "boolean"
                            },
                            "lesson_types": {
                                "type": "object",
                                "additionalProperties": {
                                    "type": "integer"
                                },
                                "description": "v1738: video, article, pdf, code, link, lab, assignment"
                            },
                            "captioned_lessons": {
                                "type": "integer"
                            },
                            "quizzes": {
                                "type": "object",
                                "description": "v1739",
                                "properties": {
                                    "lessons": {
                                        "type": "integer"
                                    },
                                    "questions": {
                                        "type": "integer"
                                    },
                                    "pass_mark": {
                                        "type": "integer"
                                    },
                                    "required_for_certificate": {
                                        "type": "boolean"
                                    }
                                }
                            },
                            "sale": {
                                "type": "object",
                                "nullable": true,
                                "description": "v1741: information only; partner checkout prices are unchanged",
                                "properties": {
                                    "price_inr": {
                                        "type": "integer"
                                    },
                                    "ends": {
                                        "type": "string"
                                    }
                                }
                            },
                            "announcements": {
                                "type": "array",
                                "description": "v1743: up to 3 live announcements of the last 60 days, newest first",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "title": {
                                            "type": "string"
                                        },
                                        "date": {
                                            "type": "string"
                                        }
                                    }
                                }
                            },
                            "skills": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                },
                                "description": "v1747"
                            },
                            "tools": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                },
                                "description": "v1747"
                            },
                            "labs": {
                                "type": "boolean",
                                "description": "v1747: hands-on ByteLabs labs come with the course"
                            },
                            "staff_pick": {
                                "type": "boolean",
                                "description": "v1755: featured on the BytePlay hub"
                            },
                            "free_first_module": {
                                "type": "boolean",
                                "description": "v1756: the first module is free for signed-in learners"
                            },
                            "discussion_topics": {
                                "type": "integer",
                                "description": "v1757: visible discussion topics"
                            },
                            "bytes": {
                                "type": "integer",
                                "description": "v1758: free Bytes from the course"
                            },
                            "sprint": {
                                "type": "object",
                                "nullable": true,
                                "description": "v1758: the open sprint {title, starts_on, days, url}"
                            },
                            "capstone": {
                                "type": "boolean",
                                "description": "v1759: trainer-reviewed capstone"
                            },
                            "video_reviews": {
                                "type": "integer",
                                "description": "v1759: published learner video reviews"
                            },
                            "related_course_ids": {
                                "type": "array",
                                "items": {
                                    "type": "integer"
                                },
                                "description": "v1762: up to 2 related live courses"
                            },
                            "assignments": {
                                "type": "integer",
                                "description": "v1764: assignment lessons"
                            },
                            "github_checked": {
                                "type": "boolean",
                                "description": "v1764: hand-ins checked on GitHub automatically"
                            },
                            "giftable": {
                                "type": "boolean",
                                "description": "v1771: can be bought as a gift on careerbytecode.in"
                            },
                            "live_upgrade": {
                                "type": "boolean",
                                "description": "v1773: the same trainer runs an open ByteClass cohort with a credit for buyers"
                            },
                            "team_seats": {
                                "type": "integer",
                                "description": "v1774: price of one team seat in INR, 0 = not offered"
                            },
                            "creator_level": {
                                "type": "string",
                                "description": "v1776: Bronze, Silver, Gold, Platinum or empty"
                            },
                            "team_seat_months": {
                                "type": "integer",
                                "description": "v1778: team seat term in months, 0 = for life"
                            }
                        }
                    },
                    "bytelabs": {
                        "$ref": "#/components/schemas/ByteLabsFacts",
                        "description": "v1870: ByteLabs items only; bundle facts (keys are only ever added)"
                    },
                    "sample": {
                        "type": "boolean",
                        "description": "v1626: present and true only on sandbox sample items (test keys)"
                    }
                }
            },
            "Order": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "created",
                            "paid",
                            "refunded",
                            "expired"
                        ]
                    },
                    "mode": {
                        "type": "string",
                        "enum": [
                            "test",
                            "live"
                        ]
                    },
                    "item": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "base_inr": {
                        "type": "integer"
                    },
                    "gst_inr": {
                        "type": "integer"
                    },
                    "total_inr": {
                        "type": "integer"
                    },
                    "partner_ref": {
                        "type": "string"
                    },
                    "checkout_url": {
                        "type": "string",
                        "format": "uri"
                    },
                    "paid_inr": {
                        "type": "integer"
                    },
                    "created_at": {
                        "type": "integer",
                        "nullable": true
                    },
                    "expires_at": {
                        "type": "integer",
                        "nullable": true
                    },
                    "paid_at": {
                        "type": "integer",
                        "nullable": true
                    },
                    "refunded_at": {
                        "type": "integer",
                        "nullable": true
                    },
                    "refunded_inr": {
                        "type": "integer",
                        "description": "Rupees refunded so far (v1612)"
                    },
                    "refund_kind": {
                        "type": "string",
                        "enum": [
                            "none",
                            "partial",
                            "full"
                        ],
                        "description": "v1612; a partial refund keeps status paid"
                    },
                    "channel": {
                        "type": "string",
                        "enum": [
                            "api",
                            "widget",
                            "link",
                            "page"
                        ],
                        "description": "Where the order came from (api = POST checkout; added 8 Oct 2026)"
                    },
                    "seats": {
                        "type": "integer",
                        "description": "Bulk seat orders only: seats bought (v1629)"
                    },
                    "seats_used": {
                        "type": "integer",
                        "description": "Bulk seat orders only: seats given to learners (v1629)"
                    },
                    "unit_base_inr": {
                        "type": "integer",
                        "description": "Bulk seat orders only: price of one seat before GST (v1629)"
                    },
                    "bulk_discount_inr": {
                        "type": "integer",
                        "description": "Bulk seat orders only: bulk discount (v1629)"
                    },
                    "coupon": {
                        "type": "object",
                        "description": "Seat orders paid with your partner code (v1629)",
                        "properties": {
                            "code": {
                                "type": "string"
                            },
                            "discount_inr": {
                                "type": "integer"
                            }
                        }
                    },
                    "cbc_base_inr": {
                        "type": "integer",
                        "description": "Markup orders only: the CareerByteCode price before GST; shares are of this (v1795)"
                    },
                    "markup_inr": {
                        "type": "integer",
                        "description": "Markup orders only: retail minus the CareerByteCode price, all yours (v1795)"
                    },
                    "learner_events": {
                        "type": "boolean",
                        "description": "Orders whose buyer agreed to share progress: true while consent stands (v1629)"
                    },
                    "buyer": {
                        "type": "object",
                        "description": "Paid live orders whose buyer ticked the contact consent on your checkout link (absent otherwise; v1784)",
                        "properties": {
                            "name": {
                                "type": "string"
                            },
                            "email": {
                                "type": "string"
                            },
                            "mobile": {
                                "type": "string"
                            }
                        }
                    }
                }
            },
            "Job": {
                "type": "object",
                "description": "An open ByteJobs job. Public fields only; never applicants.",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "title": {
                        "type": "string"
                    },
                    "company": {
                        "type": "string"
                    },
                    "company_url": {
                        "type": "string",
                        "nullable": true
                    },
                    "verified_employer": {
                        "type": "boolean"
                    },
                    "category": {
                        "type": "object",
                        "properties": {
                            "slug": {
                                "type": "string"
                            },
                            "name": {
                                "type": "string"
                            }
                        }
                    },
                    "type": {
                        "type": "string",
                        "enum": [
                            "fulltime",
                            "parttime",
                            "contract",
                            "internship",
                            "freelance"
                        ]
                    },
                    "type_label": {
                        "type": "string"
                    },
                    "mode": {
                        "type": "string",
                        "enum": [
                            "onsite",
                            "remote",
                            "hybrid"
                        ]
                    },
                    "mode_label": {
                        "type": "string"
                    },
                    "location": {
                        "type": "object",
                        "properties": {
                            "city": {
                                "type": "string",
                                "nullable": true
                            },
                            "state": {
                                "type": "string",
                                "nullable": true
                            },
                            "country": {
                                "type": "string"
                            },
                            "remote": {
                                "type": "boolean"
                            }
                        }
                    },
                    "experience": {
                        "type": "object",
                        "properties": {
                            "min_years": {
                                "type": "number"
                            },
                            "max_years": {
                                "type": "number"
                            }
                        }
                    },
                    "salary": {
                        "type": "object",
                        "nullable": true,
                        "properties": {
                            "min_inr": {
                                "type": "integer"
                            },
                            "max_inr": {
                                "type": "integer"
                            },
                            "period": {
                                "type": "string",
                                "enum": [
                                    "year",
                                    "month"
                                ]
                            }
                        }
                    },
                    "skills": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "openings": {
                        "type": "integer"
                    },
                    "summary": {
                        "type": "string"
                    },
                    "posted_at": {
                        "type": "integer",
                        "nullable": true
                    },
                    "expires_on": {
                        "type": "string",
                        "nullable": true
                    },
                    "url": {
                        "type": "string",
                        "description": "The job page with your partner reference (utm_source=byteconnect, bc); link to it as it is"
                    }
                }
            },
            "Credential": {
                "type": "object",
                "description": "A certificate check: what the public verify page shows, with its name rules. Fields after verify_url depend on type; a revoked certificate stops at verify_url.",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "type": {
                        "type": "string",
                        "enum": [
                            "course",
                            "assessment",
                            "participation",
                            "speaker"
                        ]
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "valid",
                            "expired",
                            "revoked"
                        ]
                    },
                    "holder": {
                        "type": "string"
                    },
                    "holder_masked": {
                        "type": "boolean"
                    },
                    "title": {
                        "type": "string"
                    },
                    "issuer": {
                        "type": "string"
                    },
                    "verify_url": {
                        "type": "string"
                    },
                    "code_matched": {
                        "type": "boolean",
                        "description": "Present when you sent ?code="
                    },
                    "category": {
                        "type": "string"
                    },
                    "role": {
                        "type": "string"
                    },
                    "skill": {
                        "type": "string"
                    },
                    "score_pct": {
                        "type": "integer"
                    },
                    "session_date": {
                        "type": "string",
                        "nullable": true
                    },
                    "mode": {
                        "type": "string"
                    },
                    "delivered_by": {
                        "type": "string"
                    },
                    "issued_on": {
                        "type": "string",
                        "nullable": true
                    },
                    "valid_until": {
                        "type": "string",
                        "nullable": true
                    },
                    "showcase_url": {
                        "type": "string"
                    }
                }
            },
            "Event": {
                "type": "object",
                "description": "A public upcoming event. Never registrants.",
                "properties": {
                    "slug": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "summary": {
                        "type": "string"
                    },
                    "starts_at": {
                        "type": "string",
                        "nullable": true
                    },
                    "ends_at": {
                        "type": "string",
                        "nullable": true
                    },
                    "timezone": {
                        "type": "string"
                    },
                    "mode": {
                        "type": "string",
                        "enum": [
                            "online",
                            "in_person",
                            "hybrid"
                        ]
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "scheduled",
                            "rescheduled",
                            "cancelled"
                        ]
                    },
                    "previous_start": {
                        "type": "string",
                        "nullable": true
                    },
                    "venue": {
                        "type": "object",
                        "nullable": true,
                        "properties": {
                            "name": {
                                "type": "string",
                                "nullable": true
                            },
                            "area": {
                                "type": "string",
                                "nullable": true
                            },
                            "address": {
                                "type": "string",
                                "nullable": true
                            }
                        }
                    },
                    "series": {
                        "type": "object",
                        "nullable": true,
                        "properties": {
                            "name": {
                                "type": "string"
                            },
                            "slug": {
                                "type": "string"
                            }
                        }
                    },
                    "speakers": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "name": {
                                    "type": "string"
                                },
                                "role": {
                                    "type": "string"
                                },
                                "linkedin": {
                                    "type": "string",
                                    "nullable": true
                                }
                            }
                        }
                    },
                    "free": {
                        "type": "boolean"
                    },
                    "registration": {
                        "type": "string",
                        "enum": [
                            "open",
                            "full",
                            "closed"
                        ]
                    },
                    "image": {
                        "type": "string"
                    },
                    "url": {
                        "type": "string"
                    }
                }
            },
            "BlogPost": {
                "type": "object",
                "description": "A ByteBlog post. content_html, attribution_html and canonical_link_tag only when full_text_allowed; teaser_html only when members_only (v1983).",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "slug": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "subtitle": {
                        "type": "string"
                    },
                    "excerpt": {
                        "type": "string"
                    },
                    "author": {
                        "type": "object",
                        "properties": {
                            "name": {
                                "type": "string"
                            },
                            "handle": {
                                "type": "string"
                            },
                            "url": {
                                "type": "string",
                                "nullable": true
                            }
                        }
                    },
                    "tags": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "slug": {
                                    "type": "string"
                                },
                                "name": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "published_at": {
                        "type": "integer",
                        "nullable": true
                    },
                    "updated_at": {
                        "type": "integer",
                        "nullable": true
                    },
                    "read_minutes": {
                        "type": "integer"
                    },
                    "word_count": {
                        "type": "integer"
                    },
                    "image": {
                        "type": "string"
                    },
                    "url": {
                        "type": "string"
                    },
                    "canonical_url": {
                        "type": "string"
                    },
                    "full_text_allowed": {
                        "type": "boolean"
                    },
                    "content_html": {
                        "type": "string"
                    },
                    "attribution_html": {
                        "type": "string"
                    },
                    "canonical_link_tag": {
                        "type": "string"
                    },
                    "members_only": {
                        "type": "boolean"
                    },
                    "teaser_html": {
                        "type": "string"
                    }
                }
            },
            "ByteClassProgress": {
                "type": "object",
                "description": "v1796: one learner of your own ByteClass order (learning scope, consent). Times ISO 8601 +05:30.",
                "properties": {
                    "order_id": {
                        "type": "string",
                        "description": "The order id (as in GET orders)"
                    },
                    "cohort_id": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "enrolled",
                            "learning",
                            "completed"
                        ]
                    },
                    "progress_pct": {
                        "type": "integer"
                    },
                    "attendance": {
                        "type": "object",
                        "properties": {
                            "attended": {
                                "type": "integer"
                            },
                            "total": {
                                "type": "integer"
                            },
                            "pct": {
                                "type": "integer"
                            }
                        }
                    },
                    "tasks": {
                        "type": "object",
                        "properties": {
                            "done": {
                                "type": "integer"
                            },
                            "total": {
                                "type": "integer"
                            },
                            "graded_avg": {
                                "type": "number",
                                "nullable": true,
                                "description": "Average graded score in percent"
                            }
                        }
                    },
                    "quizzes": {
                        "type": "object",
                        "properties": {
                            "taken": {
                                "type": "integer"
                            },
                            "avg_pct": {
                                "type": "number",
                                "nullable": true
                            }
                        }
                    },
                    "lessons": {
                        "type": "object",
                        "properties": {
                            "done": {
                                "type": "integer"
                            },
                            "total": {
                                "type": "integer"
                            }
                        }
                    },
                    "catch_up_open": {
                        "type": "integer",
                        "description": "Open catch-up tasks"
                    },
                    "points": {
                        "type": "integer"
                    },
                    "level": {
                        "type": "object",
                        "properties": {
                            "n": {
                                "type": "integer"
                            },
                            "label": {
                                "type": "string"
                            }
                        }
                    },
                    "badges": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "key": {
                                    "type": "string"
                                },
                                "label": {
                                    "type": "string"
                                },
                                "earned_at": {
                                    "type": "string",
                                    "nullable": true
                                }
                            }
                        }
                    },
                    "certificate": {
                        "type": "object",
                        "nullable": true,
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "verify_url": {
                                "type": "string"
                            }
                        }
                    },
                    "module_credentials": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "title": {
                                    "type": "string"
                                },
                                "id": {
                                    "type": "string"
                                },
                                "verify_url": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "updated_at": {
                        "type": "string",
                        "nullable": true
                    },
                    "sandbox": {
                        "type": "boolean",
                        "description": "true on test-key sample data"
                    },
                    "job_ready": {
                        "type": "object",
                        "nullable": true,
                        "description": "v1798: the job-ready score",
                        "properties": {
                            "score": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 100
                            }
                        }
                    },
                    "placement": {
                        "type": "object",
                        "nullable": true,
                        "description": "v1798: placement status only (never employer, role or pay)",
                        "properties": {
                            "status": {
                                "type": "string",
                                "enum": [
                                    "looking",
                                    "interviewing",
                                    "placed",
                                    "higher_studies",
                                    "not_looking",
                                    "not_reported"
                                ]
                            }
                        }
                    }
                }
            },
            "ByteClassGrade": {
                "type": "object",
                "description": "v1796: one task or quiz of the learner (no feedback text, no files)",
                "properties": {
                    "task_id": {
                        "type": "integer"
                    },
                    "title": {
                        "type": "string"
                    },
                    "kind": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "submitted",
                            "graded",
                            "missing"
                        ]
                    },
                    "score": {
                        "type": "number",
                        "nullable": true
                    },
                    "max": {
                        "type": "number",
                        "nullable": true
                    },
                    "graded_at": {
                        "type": "string",
                        "nullable": true
                    }
                }
            },
            "ByteClassAttendance": {
                "type": "object",
                "description": "v1796: one live class of the cohort for the learner",
                "properties": {
                    "session_id": {
                        "type": "integer"
                    },
                    "title": {
                        "type": "string"
                    },
                    "starts_at": {
                        "type": "string",
                        "description": "ISO 8601 with +05:30"
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "present",
                            "late",
                            "absent",
                            "unmarked"
                        ]
                    }
                }
            },
            "ByteClassSession": {
                "type": "object",
                "description": "v1796: a live class of a public cohort (never the join link or the recording link)",
                "properties": {
                    "session_id": {
                        "type": "integer"
                    },
                    "title": {
                        "type": "string"
                    },
                    "starts_at": {
                        "type": "string",
                        "nullable": true
                    },
                    "duration_min": {
                        "type": "integer"
                    },
                    "status": {
                        "type": "string",
                        "description": "scheduled, live, done or cancelled"
                    },
                    "recording_available": {
                        "type": "boolean"
                    }
                }
            },
            "ByteClassPreferences": {
                "type": "object",
                "description": "v1796: the learner's choices (more fields later; ignore unknown ones). v1799: + five email choices (true = the learner gets them; default true). On PUT send any of them; WhatsApp alerts are never settable here.",
                "properties": {
                    "leaderboard_visible": {
                        "type": "boolean"
                    },
                    "class_1h_email": {
                        "type": "boolean",
                        "description": "v1799: class-in-1-hour email reminder"
                    },
                    "grades": {
                        "type": "boolean",
                        "description": "v1799: grade released emails"
                    },
                    "announcements": {
                        "type": "boolean",
                        "description": "v1799: trainer announcement emails"
                    },
                    "feed_digest": {
                        "type": "boolean",
                        "description": "v1799: weekly class digest"
                    },
                    "catch_up": {
                        "type": "boolean",
                        "description": "v1799: catch-up plan emails"
                    }
                }
            },
            "ByteLabsChallenge": {
                "type": "object",
                "description": "v1880: a ByteLabs build-in-public challenge (free; no cash prize)",
                "properties": {
                    "slug": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "summary": {
                        "type": "string"
                    },
                    "starts_on": {
                        "type": "string",
                        "format": "date"
                    },
                    "ends_on": {
                        "type": "string",
                        "format": "date"
                    },
                    "goal_labs": {
                        "type": "integer"
                    },
                    "hashtag": {
                        "type": "string"
                    },
                    "judged": {
                        "type": "boolean"
                    },
                    "prize": {
                        "type": "string",
                        "enum": [
                            "recognition",
                            "badge_showcase",
                            "badge_showcase_pass_month"
                        ]
                    },
                    "url": {
                        "type": "string"
                    },
                    "winners": {
                        "type": "array",
                        "description": "past challenges only",
                        "items": {
                            "type": "object",
                            "properties": {
                                "place": {
                                    "type": "integer"
                                },
                                "name": {
                                    "type": "string"
                                },
                                "score_pct": {
                                    "type": "integer"
                                }
                            }
                        }
                    }
                }
            },
            "ByteLabsLeaderboard": {
                "type": "object",
                "description": "v1880: learners rows {rank, name, xp, labs} or colleges rows {rank, college, learners, labs}",
                "properties": {
                    "scope": {
                        "type": "string",
                        "enum": [
                            "learners",
                            "colleges"
                        ]
                    },
                    "period": {
                        "type": "string",
                        "enum": [
                            "week",
                            "month",
                            "all"
                        ]
                    },
                    "url": {
                        "type": "string"
                    },
                    "rows": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "rank": {
                                    "type": "integer"
                                },
                                "name": {
                                    "type": "string"
                                },
                                "xp": {
                                    "type": "integer"
                                },
                                "labs": {
                                    "type": "integer"
                                },
                                "college": {
                                    "type": "string"
                                },
                                "learners": {
                                    "type": "integer"
                                }
                            }
                        }
                    }
                }
            },
            "ByteLabsBrand": {
                "type": "object",
                "description": "v1879: your ByteLabs brand state (never an email)",
                "properties": {
                    "brand_on": {
                        "type": "boolean"
                    },
                    "active": {
                        "type": "boolean"
                    },
                    "notify_mode": {
                        "type": "string",
                        "enum": [
                            "cbc",
                            "webhooks"
                        ]
                    },
                    "certificate_cobrand": {
                        "type": "boolean"
                    },
                    "page_indexable": {
                        "type": "boolean"
                    },
                    "page_url": {
                        "type": "string",
                        "nullable": true
                    },
                    "guide_url": {
                        "type": "string",
                        "nullable": true
                    },
                    "display_name": {
                        "type": "string",
                        "nullable": true
                    },
                    "logo_url": {
                        "type": "string",
                        "nullable": true
                    },
                    "colour": {
                        "type": "string",
                        "nullable": true
                    },
                    "markup_on": {
                        "type": "boolean"
                    }
                }
            },
            "ByteClassBrand": {
                "type": "object",
                "description": "v1801: your ByteClass brand state (never an email)",
                "properties": {
                    "brand_on": {
                        "type": "boolean"
                    },
                    "active": {
                        "type": "boolean",
                        "description": "Switched on AND your brand is set up and active"
                    },
                    "notify_mode": {
                        "type": "string",
                        "enum": [
                            "cbc",
                            "webhooks"
                        ]
                    },
                    "certificate_cobrand": {
                        "type": "boolean"
                    },
                    "page_indexable": {
                        "type": "boolean"
                    },
                    "page_url": {
                        "type": "string",
                        "nullable": true
                    },
                    "display_name": {
                        "type": "string",
                        "nullable": true
                    },
                    "logo_url": {
                        "type": "string",
                        "nullable": true
                    },
                    "colour": {
                        "type": "string",
                        "nullable": true
                    }
                }
            },
            "ByteClassDraft": {
                "type": "object",
                "description": "v1801: a draft cohort you sent (authoring scope)",
                "properties": {
                    "draft_id": {
                        "type": "integer"
                    },
                    "title": {
                        "type": "string"
                    },
                    "level": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "draft",
                            "pending",
                            "published",
                            "rejected",
                            "archived"
                        ]
                    },
                    "modules_count": {
                        "type": "integer",
                        "nullable": true
                    },
                    "price_inr_suggested": {
                        "type": "integer",
                        "nullable": true
                    },
                    "starts_on_suggested": {
                        "type": "string",
                        "nullable": true
                    },
                    "review_note": {
                        "type": "string",
                        "nullable": true
                    },
                    "created_at": {
                        "type": "string",
                        "nullable": true
                    },
                    "updated_at": {
                        "type": "string",
                        "nullable": true
                    }
                }
            },
            "ByteClassWrapped": {
                "type": "object",
                "description": "v1800: the learner's Cohort Wrapped (made when the cohort ends; never a name or email)",
                "properties": {
                    "stats": {
                        "type": "object",
                        "properties": {
                            "cohort_title": {
                                "type": "string"
                            },
                            "classes": {
                                "type": "object",
                                "properties": {
                                    "attended": {
                                        "type": "integer"
                                    },
                                    "total": {
                                        "type": "integer"
                                    },
                                    "pct": {
                                        "type": "integer"
                                    }
                                }
                            },
                            "best_task": {
                                "type": "object",
                                "nullable": true,
                                "properties": {
                                    "title": {
                                        "type": "string"
                                    },
                                    "score": {
                                        "type": "integer"
                                    },
                                    "max": {
                                        "type": "integer"
                                    },
                                    "pct": {
                                        "type": "integer"
                                    }
                                }
                            },
                            "helped": {
                                "type": "integer",
                                "description": "Answers in class Q&A plus replies in the class feed"
                            },
                            "points": {
                                "type": "integer"
                            },
                            "level": {
                                "type": "object",
                                "properties": {
                                    "n": {
                                        "type": "integer"
                                    },
                                    "label": {
                                        "type": "string"
                                    }
                                }
                            },
                            "streak_best": {
                                "type": "integer"
                            },
                            "badges": {
                                "type": "object",
                                "properties": {
                                    "count": {
                                        "type": "integer"
                                    },
                                    "labels": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    }
                                }
                            },
                            "lessons": {
                                "type": "object",
                                "properties": {
                                    "done": {
                                        "type": "integer"
                                    },
                                    "total": {
                                        "type": "integer"
                                    }
                                }
                            },
                            "made_at": {
                                "type": "string"
                            }
                        }
                    },
                    "share_card_url": {
                        "type": "string",
                        "description": "1200x630 PNG"
                    },
                    "wrapped_url": {
                        "type": "string"
                    },
                    "sandbox": {
                        "type": "boolean"
                    }
                }
            },
            "ByteLabsFacts": {
                "type": "object",
                "description": "v1870: published labs only; titles, never lab content (keys are only ever added)",
                "properties": {
                    "bundle_id": {
                        "type": "integer"
                    },
                    "title": {
                        "type": "string"
                    },
                    "labs": {
                        "type": "integer",
                        "description": "Published labs in the bundle"
                    },
                    "levels": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "enum": [
                                "beginner",
                                "intermediate",
                                "advanced"
                            ]
                        }
                    },
                    "total_minutes": {
                        "type": "integer",
                        "description": "The build-time estimates of the creators added up (0 when not set)"
                    },
                    "tags": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "slug": {
                                    "type": "string"
                                },
                                "name": {
                                    "type": "string"
                                },
                                "kind": {
                                    "type": "string",
                                    "enum": [
                                        "role",
                                        "tech"
                                    ]
                                }
                            }
                        }
                    },
                    "categories": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "slug": {
                                    "type": "string"
                                },
                                "name": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "first_free_lab": {
                        "type": "object",
                        "nullable": true,
                        "description": "The lab anyone can open before buying",
                        "properties": {
                            "slug": {
                                "type": "string"
                            },
                            "title": {
                                "type": "string"
                            },
                            "url": {
                                "type": "string"
                            }
                        }
                    },
                    "outline": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        },
                        "description": "Lab titles in bundle order"
                    },
                    "url": {
                        "type": "string",
                        "description": "The public bundle page"
                    },
                    "updated_at": {
                        "type": "string",
                        "nullable": true
                    },
                    "paths": {
                        "type": "array",
                        "description": "v1872: the published career paths that contain this bundle",
                        "items": {
                            "type": "object",
                            "properties": {
                                "slug": {
                                    "type": "string"
                                },
                                "name": {
                                    "type": "string"
                                },
                                "url": {
                                    "type": "string"
                                }
                            }
                        }
                    }
                }
            },
            "ByteLabsProgress": {
                "type": "object",
                "description": "v1875: per lab and per milestone progress of one learner (never a name, email or evidence)",
                "properties": {
                    "order_id": {
                        "type": "string"
                    },
                    "bundle_id": {
                        "type": "integer"
                    },
                    "sandbox": {
                        "type": "boolean"
                    },
                    "labs_total": {
                        "type": "integer"
                    },
                    "labs_completed": {
                        "type": "integer"
                    },
                    "progress_pct": {
                        "type": "integer"
                    },
                    "labs": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "lab_id": {
                                    "type": "integer"
                                },
                                "title": {
                                    "type": "string"
                                },
                                "url": {
                                    "type": "string"
                                },
                                "completed": {
                                    "type": "boolean"
                                },
                                "milestones_total": {
                                    "type": "integer"
                                },
                                "milestones_complete": {
                                    "type": "integer"
                                },
                                "milestones": {
                                    "type": "array",
                                    "items": {
                                        "type": "object",
                                        "properties": {
                                            "position": {
                                                "type": "integer"
                                            },
                                            "title": {
                                                "type": "string"
                                            },
                                            "check": {
                                                "type": "string",
                                                "enum": [
                                                    "github",
                                                    "browser",
                                                    "cli",
                                                    "quiz",
                                                    "screenshot",
                                                    "manual"
                                                ]
                                            },
                                            "required": {
                                                "type": "boolean"
                                            },
                                            "status": {
                                                "type": "string",
                                                "enum": [
                                                    "not_started",
                                                    "submitted",
                                                    "verified",
                                                    "rejected"
                                                ]
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "ByteLabsDraft": {
                "type": "object",
                "description": "v1875: a draft lab you sent (authoring scope)",
                "properties": {
                    "draft_id": {
                        "type": "integer"
                    },
                    "private": {
                        "type": "boolean",
                        "description": "v1879: present (true) only on a private lab you just sent"
                    },
                    "title": {
                        "type": "string"
                    },
                    "level": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "draft",
                            "pending",
                            "published",
                            "rejected"
                        ]
                    },
                    "milestones_count": {
                        "type": "integer"
                    },
                    "review_note": {
                        "type": "string",
                        "nullable": true
                    },
                    "url": {
                        "type": "string",
                        "nullable": true
                    },
                    "created_at": {
                        "type": "string",
                        "nullable": true
                    },
                    "updated_at": {
                        "type": "string",
                        "nullable": true
                    }
                }
            },
            "ByteLabsPass": {
                "type": "object",
                "description": "v1874: the ByteLabs Pass as a partner sees it (keys are only ever added)",
                "properties": {
                    "on": {
                        "type": "boolean"
                    },
                    "plans": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "key": {
                                    "type": "string",
                                    "enum": [
                                        "monthly",
                                        "quarterly",
                                        "yearly"
                                    ]
                                },
                                "name": {
                                    "type": "string"
                                },
                                "months": {
                                    "type": "integer"
                                },
                                "price_inr": {
                                    "type": "integer",
                                    "description": "Base before GST"
                                },
                                "gst_inr": {
                                    "type": "integer"
                                },
                                "total_inr": {
                                    "type": "integer"
                                },
                                "perks": {
                                    "type": "array",
                                    "items": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    },
                    "url": {
                        "type": "string",
                        "nullable": true,
                        "description": "The Pass page with your resale code"
                    },
                    "gift": {
                        "type": "boolean"
                    },
                    "pool_pct": {
                        "type": "integer"
                    },
                    "seats": {
                        "type": "boolean",
                        "description": "Prepaid Pass seats for partners are on (v1897; false while off)"
                    },
                    "seat_items": {
                        "type": "array",
                        "description": "v1897: only while seats is true; send item with quantity to POST checkout",
                        "items": {
                            "type": "object",
                            "properties": {
                                "item": {
                                    "type": "string",
                                    "example": "bytelabs_pass:quarterly"
                                },
                                "name": {
                                    "type": "string"
                                },
                                "months": {
                                    "type": "integer"
                                },
                                "seat_price_inr": {
                                    "type": "integer",
                                    "description": "One seat, base before GST"
                                }
                            }
                        }
                    }
                }
            },
            "ByteLabsPath": {
                "type": "object",
                "description": "v1872: a published ByteLabs career path; titles and links only (keys are only ever added)",
                "properties": {
                    "slug": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "summary": {
                        "type": "string"
                    },
                    "colour": {
                        "type": "string",
                        "example": "#ff6b35"
                    },
                    "icon": {
                        "type": "string"
                    },
                    "tools": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "cert_map": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "ladder": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        },
                        "description": "Step names, 2 to 5"
                    },
                    "projects": {
                        "type": "integer",
                        "description": "Published labs on the path"
                    },
                    "steps": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "no": {
                                    "type": "integer"
                                },
                                "name": {
                                    "type": "string"
                                },
                                "labs": {
                                    "type": "integer"
                                },
                                "items": {
                                    "type": "array",
                                    "description": "Only on GET bytelabs/paths/{slug}",
                                    "items": {
                                        "type": "object",
                                        "properties": {
                                            "kind": {
                                                "type": "string",
                                                "enum": [
                                                    "lab",
                                                    "bundle"
                                                ]
                                            },
                                            "title": {
                                                "type": "string"
                                            },
                                            "url": {
                                                "type": "string"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "url": {
                        "type": "string"
                    },
                    "skill_check_url": {
                        "type": "string"
                    },
                    "updated_at": {
                        "type": "string",
                        "nullable": true
                    }
                }
            },
            "PayoutMonth": {
                "type": "object",
                "description": "v1643: your own payout statement for one month (whole rupees)",
                "properties": {
                    "month": {
                        "type": "string"
                    },
                    "gross": {
                        "type": "integer"
                    },
                    "tds": {
                        "type": "integer"
                    },
                    "net": {
                        "type": "integer"
                    },
                    "paid": {
                        "type": "integer"
                    },
                    "clawback": {
                        "type": "integer"
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "nothing",
                            "held",
                            "due",
                            "queued",
                            "paying",
                            "paid"
                        ]
                    },
                    "streams": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "stream": {
                                    "type": "string"
                                },
                                "gross": {
                                    "type": "integer"
                                },
                                "tds": {
                                    "type": "integer"
                                },
                                "net": {
                                    "type": "integer"
                                },
                                "status": {
                                    "type": "string"
                                },
                                "hold_reason": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "payments": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "amount": {
                                    "type": "integer"
                                },
                                "mode": {
                                    "type": "string"
                                },
                                "date": {
                                    "type": "string"
                                },
                                "reference_last4": {
                                    "type": "string"
                                },
                                "clawback": {
                                    "type": "integer"
                                },
                                "returned": {
                                    "type": "boolean"
                                }
                            }
                        }
                    }
                }
            },
            "CampusCollege": {
                "type": "object",
                "description": "v1642",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "kind": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string"
                    },
                    "paid_active": {
                        "type": "boolean"
                    },
                    "sign_in_open": {
                        "type": "boolean"
                    },
                    "roster": {
                        "type": "integer"
                    },
                    "signed_in": {
                        "type": "integer"
                    },
                    "students_linked": {
                        "type": "integer"
                    },
                    "org_kind": {
                        "type": "string",
                        "description": "v1676: college | university | company | training_center"
                    },
                    "org_type_label": {
                        "type": "string"
                    },
                    "labels": {
                        "type": "object",
                        "description": "v1676: the words to show for this organisation (organisation, member, members, verify_email, lead, hod, faculty, department, year, section, period, chapter_page, people_cards, ranking)"
                    },
                    "yearly_promotion": {
                        "type": "boolean"
                    }
                }
            },
            "CampusRosterRow": {
                "type": "object",
                "description": "v1642",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "college_email": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "department": {
                        "type": "string"
                    },
                    "year": {
                        "type": "integer"
                    },
                    "section": {
                        "type": "string"
                    },
                    "roll_no": {
                        "type": "string"
                    },
                    "under_18": {
                        "type": "boolean"
                    },
                    "invite_status": {
                        "type": "string"
                    },
                    "invited_at": {
                        "type": "integer",
                        "nullable": true
                    },
                    "signed_in_at": {
                        "type": "integer",
                        "nullable": true
                    }
                }
            },
            "CampusPlan": {
                "type": "object",
                "description": "v1646: a college plan (amounts in the plan currency, never a share or earning)",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "state": {
                        "type": "string",
                        "enum": [
                            "proposed",
                            "rejected",
                            "awaiting_payment",
                            "active",
                            "grant",
                            "expired",
                            "cancelled",
                            "pending"
                        ]
                    },
                    "tier": {
                        "type": "string"
                    },
                    "currency": {
                        "type": "string"
                    },
                    "seats": {
                        "type": "integer"
                    },
                    "seats_paid": {
                        "type": "integer"
                    },
                    "per_seat": {
                        "type": "number"
                    },
                    "price": {
                        "type": "number"
                    },
                    "credit": {
                        "type": "number"
                    },
                    "pay_mode": {
                        "type": "string"
                    },
                    "is_grant": {
                        "type": "boolean"
                    },
                    "country": {
                        "type": "string"
                    },
                    "decision_note": {
                        "type": "string",
                        "nullable": true
                    },
                    "starts_at": {
                        "type": "string",
                        "nullable": true
                    },
                    "ends_at": {
                        "type": "string",
                        "nullable": true
                    },
                    "proformas": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/CampusProforma"
                        }
                    },
                    "payments": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/CampusPayment"
                        }
                    }
                }
            },
            "CampusProforma": {
                "type": "object",
                "description": "v1646",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "number": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "issued",
                            "part_paid",
                            "paid",
                            "expired",
                            "cancelled"
                        ]
                    },
                    "currency": {
                        "type": "string"
                    },
                    "seats": {
                        "type": "integer"
                    },
                    "per_seat": {
                        "type": "number"
                    },
                    "base": {
                        "type": "number"
                    },
                    "gst_pct": {
                        "type": "integer"
                    },
                    "gst": {
                        "type": "number"
                    },
                    "total": {
                        "type": "number"
                    },
                    "export_lut": {
                        "type": "boolean"
                    },
                    "issued_at": {
                        "type": "string"
                    },
                    "expires_at": {
                        "type": "string"
                    },
                    "pay_to": {
                        "type": "object"
                    }
                }
            },
            "CampusPayment": {
                "type": "object",
                "description": "v1646: a payment record (what the college paid; never a share)",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "pending",
                            "approved",
                            "rejected",
                            "reversed"
                        ]
                    },
                    "stage": {
                        "type": "string"
                    },
                    "po_number": {
                        "type": "string"
                    },
                    "po_date": {
                        "type": "string",
                        "nullable": true
                    },
                    "bank_ref": {
                        "type": "string"
                    },
                    "transfer_date": {
                        "type": "string"
                    },
                    "payer_name": {
                        "type": "string"
                    },
                    "currency": {
                        "type": "string"
                    },
                    "claimed": {
                        "type": "number"
                    },
                    "proof_attached": {
                        "type": "boolean"
                    },
                    "received_inr": {
                        "type": "integer",
                        "nullable": true
                    },
                    "college_tds_inr": {
                        "type": "integer",
                        "nullable": true
                    },
                    "gst_tds_inr": {
                        "type": "integer",
                        "nullable": true
                    },
                    "base_inr": {
                        "type": "integer",
                        "nullable": true
                    },
                    "gst_inr": {
                        "type": "integer",
                        "nullable": true
                    },
                    "seats_added": {
                        "type": "integer",
                        "nullable": true
                    },
                    "invoice_no": {
                        "type": "string",
                        "nullable": true
                    },
                    "invoice_at": {
                        "type": "string",
                        "nullable": true
                    },
                    "reject_reason": {
                        "type": "string",
                        "nullable": true
                    },
                    "credit_note": {
                        "type": "string",
                        "nullable": true
                    },
                    "tds_certificate": {
                        "type": "boolean"
                    }
                }
            },
            "CampusDepartment": {
                "type": "object",
                "description": "v1647 (v1679: team_names on companies)",
                "properties": {
                    "team_names": {
                        "type": "object",
                        "description": "Companies only: team number to team name",
                        "additionalProperties": {
                            "type": "string"
                        }
                    },
                    "id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "code": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "active",
                            "archived"
                        ]
                    },
                    "sections": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "id": {
                                    "type": "string"
                                },
                                "year": {
                                    "type": "integer"
                                },
                                "name": {
                                    "type": "string"
                                },
                                "batch": {
                                    "type": "string"
                                },
                                "status": {
                                    "type": "string"
                                }
                            }
                        }
                    }
                }
            },
            "CampusStaff": {
                "type": "object",
                "description": "v1647",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "email": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "role": {
                        "type": "string",
                        "enum": [
                            "lead",
                            "tpo",
                            "hod",
                            "faculty"
                        ]
                    },
                    "department_id": {
                        "type": "string",
                        "nullable": true
                    },
                    "state": {
                        "type": "string",
                        "enum": [
                            "active",
                            "nominated",
                            "invited"
                        ]
                    },
                    "groups": {
                        "type": "array",
                        "items": {
                            "type": "object"
                        }
                    }
                }
            },
            "CampusCollegeSettings": {
                "type": "object",
                "description": "v1647",
                "properties": {
                    "country": {
                        "type": "string"
                    },
                    "timezone": {
                        "type": "string"
                    },
                    "academic_year_start": {
                        "type": "string"
                    },
                    "years": {
                        "type": "integer"
                    },
                    "next_promotion": {
                        "type": "string"
                    },
                    "promotion_reviewed": {
                        "type": "boolean"
                    },
                    "promotion_due": {
                        "type": "boolean"
                    }
                }
            },
            "CampusAssignment": {
                "type": "object",
                "description": "v1648 (v1669: kind class, task, set_id, items)",
                "properties": {
                    "task": {
                        "type": "object",
                        "nullable": true,
                        "description": "v1669: type, accept, max_mb, marks, rubric, late, penalty_pct, material_url"
                    },
                    "set_id": {
                        "type": "string",
                        "nullable": true
                    },
                    "items": {
                        "type": "array",
                        "items": {
                            "type": "object"
                        }
                    },
                    "id": {
                        "type": "string"
                    },
                    "kind": {
                        "type": "string",
                        "enum": [
                            "challenge",
                            "path",
                            "exam",
                            "lab",
                            "course",
                            "project",
                            "contest",
                            "task",
                            "college_challenge",
                            "college_exam",
                            "class"
                        ]
                    },
                    "title": {
                        "type": "string"
                    },
                    "content_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "item_id": {
                        "type": "string",
                        "nullable": true
                    },
                    "start_at": {
                        "type": "integer"
                    },
                    "due_at": {
                        "type": "integer"
                    },
                    "due_local": {
                        "type": "string"
                    },
                    "timezone": {
                        "type": "string"
                    },
                    "pass_pct": {
                        "type": "integer"
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "open",
                            "closed",
                            "cancelled"
                        ]
                    },
                    "students": {
                        "type": "integer",
                        "nullable": true
                    },
                    "passed": {
                        "type": "integer",
                        "nullable": true
                    }
                }
            },
            "CampusOnboarding": {
                "type": "object",
                "description": "v1671: one college onboarding (wizard)",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "state": {
                        "type": "string",
                        "enum": [
                            "draft",
                            "submitted",
                            "approved",
                            "partial",
                            "rejected"
                        ]
                    },
                    "steps_done": {
                        "type": "array",
                        "items": {
                            "type": "integer"
                        }
                    },
                    "college": {
                        "type": "object"
                    },
                    "domains": {
                        "type": "array",
                        "items": {
                            "type": "object"
                        }
                    },
                    "plan": {
                        "type": "object",
                        "nullable": true
                    },
                    "lead": {
                        "type": "object",
                        "nullable": true
                    },
                    "staff": {
                        "type": "array",
                        "items": {
                            "type": "object"
                        }
                    },
                    "departments": {
                        "type": "integer"
                    },
                    "sections": {
                        "type": "integer"
                    },
                    "students": {
                        "type": "integer"
                    },
                    "invite": {
                        "type": "string"
                    },
                    "status": {
                        "type": "array",
                        "items": {
                            "type": "object"
                        }
                    },
                    "decision": {
                        "type": "object"
                    }
                }
            },
            "CampusCollegeItem": {
                "type": "object",
                "description": "v1648: college-only content (never the right answers)",
                "properties": {
                    "source": {
                        "type": "string",
                        "enum": [
                            "manual",
                            "csv"
                        ],
                        "description": "v1669"
                    },
                    "id": {
                        "type": "string"
                    },
                    "kind": {
                        "type": "string",
                        "enum": [
                            "challenge",
                            "exam",
                            "task"
                        ]
                    },
                    "title": {
                        "type": "string"
                    },
                    "questions": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "q": {
                                    "type": "string"
                                },
                                "options": {
                                    "type": "array",
                                    "items": {
                                        "type": "string"
                                    }
                                },
                                "multi": {
                                    "type": "boolean"
                                }
                            }
                        }
                    },
                    "pass_pct": {
                        "type": "integer"
                    },
                    "review_state": {
                        "type": "string",
                        "enum": [
                            "none",
                            "pending",
                            "approved",
                            "rejected"
                        ]
                    },
                    "certificate_ready": {
                        "type": "boolean"
                    },
                    "status": {
                        "type": "string"
                    }
                }
            },
            "CampusPrivacyRule": {
                "type": "object",
                "description": "v1650: the privacy rule of a country",
                "properties": {
                    "country": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "law": {
                        "type": "string"
                    },
                    "age_of_consent": {
                        "type": "integer"
                    },
                    "consent_text": {
                        "type": "string"
                    },
                    "export_and_delete_within_days": {
                        "type": "integer"
                    },
                    "data_processing_agreement_required": {
                        "type": "boolean"
                    },
                    "partner_sees_personal_email": {
                        "type": "boolean"
                    },
                    "source": {
                        "type": "string"
                    }
                }
            },
            "CampusVisibility": {
                "type": "object",
                "description": "v1650: never a date of birth or an email",
                "properties": {
                    "student_id": {
                        "type": "string"
                    },
                    "profile": {
                        "type": "string",
                        "enum": [
                            "public",
                            "hidden",
                            "private_under_18"
                        ]
                    },
                    "ranking": {
                        "type": "string",
                        "enum": [
                            "shown",
                            "hidden"
                        ]
                    },
                    "ranking_name": {
                        "type": "string"
                    },
                    "under_18": {
                        "type": "boolean"
                    },
                    "asked_at_18": {
                        "type": "boolean"
                    },
                    "country": {
                        "type": "string"
                    },
                    "consent": {
                        "type": "string",
                        "nullable": true
                    }
                }
            },
            "CampusCoverage": {
                "type": "object",
                "description": "v1651: what the college plan covers right now",
                "properties": {
                    "state": {
                        "type": "string",
                        "enum": [
                            "active",
                            "grace",
                            "read_only",
                            "none"
                        ]
                    },
                    "paid_seats": {
                        "type": "integer",
                        "nullable": true
                    },
                    "seated": {
                        "type": "integer"
                    },
                    "waiting": {
                        "type": "integer"
                    },
                    "plan_ends_at": {
                        "type": "string",
                        "nullable": true
                    },
                    "grace_until": {
                        "type": "string",
                        "nullable": true
                    },
                    "covers": {
                        "type": "string"
                    }
                }
            },
            "CampusClass": {
                "type": "object",
                "description": "v1652: a college cohort (never on a public page)",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "summary": {
                        "type": "string"
                    },
                    "college_id": {
                        "type": "string"
                    },
                    "linked_colleges": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "trainer": {
                        "type": "string"
                    },
                    "state": {
                        "type": "string",
                        "enum": [
                            "draft",
                            "requested",
                            "running",
                            "completed",
                            "archived",
                            "read_only",
                            "suspended"
                        ]
                    },
                    "starts_on": {
                        "type": "string",
                        "nullable": true
                    },
                    "ends_on": {
                        "type": "string",
                        "nullable": true
                    },
                    "seats": {
                        "type": "integer"
                    },
                    "seats_taken": {
                        "type": "integer"
                    },
                    "auto_approve": {
                        "type": "boolean"
                    },
                    "read_only": {
                        "type": "boolean"
                    },
                    "plan_ends_on": {
                        "type": "string",
                        "nullable": true
                    },
                    "groups": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "department_id": {
                                    "type": "string"
                                },
                                "year": {
                                    "type": "integer",
                                    "nullable": true
                                },
                                "section_id": {
                                    "type": "string",
                                    "nullable": true
                                }
                            }
                        }
                    }
                }
            },
            "CampusClassCertificate": {
                "type": "object",
                "description": "v1653: one student's certificate steps in a college cohort (never an email)",
                "properties": {
                    "student_id": {
                        "type": "string",
                        "nullable": true
                    },
                    "name": {
                        "type": "string"
                    },
                    "group": {
                        "type": "string"
                    },
                    "eligible": {
                        "type": "boolean"
                    },
                    "signed_off": {
                        "type": "boolean"
                    },
                    "certificate_issued": {
                        "type": "boolean"
                    },
                    "credential_id": {
                        "type": "string",
                        "nullable": true
                    },
                    "steps": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "step": {
                                    "type": "string",
                                    "enum": [
                                        "weekly",
                                        "finish",
                                        "attendance",
                                        "work",
                                        "signoff",
                                        "end"
                                    ]
                                },
                                "label": {
                                    "type": "string"
                                },
                                "done": {
                                    "type": "boolean"
                                },
                                "detail": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "weeks": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "week": {
                                    "type": "integer"
                                },
                                "state": {
                                    "type": "string",
                                    "enum": [
                                        "done",
                                        "waived",
                                        "missing"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "CampusHqCollege": {
                "type": "object",
                "description": "v1656: one of your colleges in Vendor Campus HQ (never earnings)",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string"
                    },
                    "country": {
                        "type": "string"
                    },
                    "currency": {
                        "type": "string"
                    },
                    "roster": {
                        "type": "integer"
                    },
                    "signed_in": {
                        "type": "integer"
                    },
                    "verified": {
                        "type": "integer"
                    },
                    "seats": {
                        "type": "integer"
                    },
                    "seated": {
                        "type": "integer"
                    },
                    "waiting": {
                        "type": "integer"
                    },
                    "staff": {
                        "type": "integer"
                    },
                    "has_lead": {
                        "type": "boolean"
                    },
                    "plan_state": {
                        "type": "string"
                    },
                    "chapter": {
                        "type": "string"
                    }
                }
            },
            "CampusEvent": {
                "type": "object",
                "description": "v1657: one Campus event (webhook data.campus and GET campus/events)",
                "properties": {
                    "event_id": {
                        "type": "string"
                    },
                    "event": {
                        "type": "string",
                        "example": "campus.plan.approved"
                    },
                    "family": {
                        "type": "string"
                    },
                    "college_id": {
                        "type": "string",
                        "nullable": true
                    },
                    "occurred_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "data": {
                        "type": "object"
                    }
                }
            },
            "CampusJob": {
                "type": "object",
                "description": "v1658: a Campus job of your company",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "company": {
                        "type": "string"
                    },
                    "kind": {
                        "type": "string",
                        "enum": [
                            "job",
                            "internship"
                        ]
                    },
                    "work_mode": {
                        "type": "string"
                    },
                    "location": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "open",
                            "closed"
                        ]
                    },
                    "review_status": {
                        "type": "string",
                        "enum": [
                            "pending",
                            "approved",
                            "rejected"
                        ]
                    },
                    "applicants": {
                        "type": "integer"
                    },
                    "url": {
                        "type": "string",
                        "nullable": true
                    }
                }
            },
            "CampusTicket": {
                "type": "object",
                "description": "v1657: a Campus help ticket",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "ref": {
                        "type": "string"
                    },
                    "college_id": {
                        "type": "string"
                    },
                    "category": {
                        "type": "string"
                    },
                    "urgency": {
                        "type": "string",
                        "enum": [
                            "normal",
                            "urgent"
                        ]
                    },
                    "subject": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "open",
                            "answered",
                            "resolved"
                        ]
                    },
                    "with": {
                        "type": "string",
                        "enum": [
                            "partner",
                            "careerbytecode"
                        ]
                    },
                    "answer_due": {
                        "type": "string",
                        "nullable": true
                    },
                    "escalated": {
                        "type": "boolean"
                    },
                    "messages": {
                        "type": "array",
                        "items": {
                            "type": "object"
                        }
                    }
                }
            },
            "CampusHqMember": {
                "type": "object",
                "description": "v1656: a vendor team member with Campus permissions (default-deny)",
                "properties": {
                    "member_id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "email": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string"
                    },
                    "teaching_only": {
                        "type": "boolean"
                    },
                    "permissions": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "enum": [
                                "challenges",
                                "classes",
                                "colleges",
                                "jobs",
                                "events",
                                "reviews"
                            ]
                        }
                    },
                    "colleges": {
                        "type": "array",
                        "items": {
                            "type": "object"
                        }
                    }
                }
            },
            "CampusExamResults": {
                "type": "object",
                "description": "v1655: exam results of your college students (never an answer, never an email)",
                "properties": {
                    "cbc_exams": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "student_id": {
                                    "type": "string"
                                },
                                "exam_id": {
                                    "type": "string"
                                },
                                "exam": {
                                    "type": "string"
                                },
                                "score_pct": {
                                    "type": "integer"
                                },
                                "passed": {
                                    "type": "boolean"
                                },
                                "held": {
                                    "type": "boolean"
                                },
                                "late": {
                                    "type": "boolean"
                                },
                                "certificate_id": {
                                    "type": "string",
                                    "nullable": true
                                },
                                "at": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "college_exams": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "student_id": {
                                    "type": "string",
                                    "nullable": true
                                },
                                "assignment_id": {
                                    "type": "string"
                                },
                                "content_id": {
                                    "type": "string"
                                },
                                "reviewed": {
                                    "type": "boolean"
                                },
                                "score_pct": {
                                    "type": "integer",
                                    "nullable": true
                                },
                                "passed": {
                                    "type": "boolean"
                                },
                                "certificate_id": {
                                    "type": "string",
                                    "nullable": true
                                },
                                "certificate_note": {
                                    "type": "string",
                                    "nullable": true
                                }
                            }
                        }
                    }
                }
            },
            "ConsultingRequest": {
                "type": "object",
                "description": "v1928: a consulting request a partner sent (never a price or a share)",
                "properties": {
                    "ref": {
                        "type": "string"
                    },
                    "partner_ref": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "received",
                            "in_discussion",
                            "proposal",
                            "won",
                            "closed"
                        ]
                    },
                    "test": {
                        "type": "boolean"
                    },
                    "company": {
                        "type": "string"
                    },
                    "country_code": {
                        "type": "string",
                        "description": "v2059: ISO two letters; empty until known"
                    },
                    "country": {
                        "type": "string"
                    },
                    "region": {
                        "type": "string"
                    },
                    "created_at": {
                        "type": "integer",
                        "nullable": true
                    },
                    "updated_at": {
                        "type": "integer",
                        "nullable": true
                    }
                }
            },
            "CampusArenaProgress": {
                "type": "object",
                "description": "v1654: one student Arena progress (never an answer, never an email)",
                "properties": {
                    "xp": {
                        "type": "integer",
                        "description": "ranked XP (the leaderboard figure)"
                    },
                    "practice_xp": {
                        "type": "integer"
                    },
                    "streak": {
                        "type": "integer"
                    },
                    "solved": {
                        "type": "integer"
                    },
                    "solved_practice": {
                        "type": "integer"
                    },
                    "solved_by_track": {
                        "type": "object"
                    },
                    "rating": {
                        "type": "integer"
                    },
                    "contests": {
                        "type": "integer"
                    },
                    "paths": {
                        "type": "array",
                        "items": {
                            "type": "object"
                        }
                    },
                    "tracks_completed": {
                        "type": "integer"
                    },
                    "projects": {
                        "type": "object"
                    }
                }
            },
            "CampusClassJoin": {
                "type": "object",
                "description": "v1652: a join request (never an email)",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "student_id": {
                        "type": "string",
                        "nullable": true
                    },
                    "name": {
                        "type": "string"
                    },
                    "department": {
                        "type": "string"
                    },
                    "year": {
                        "type": "integer",
                        "nullable": true
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "pending",
                            "approved",
                            "auto",
                            "rejected",
                            "withdrawn",
                            "moved"
                        ]
                    },
                    "message": {
                        "type": "string"
                    },
                    "decided_by": {
                        "type": "string",
                        "nullable": true
                    },
                    "requested_at": {
                        "type": "string",
                        "nullable": true
                    },
                    "decided_at": {
                        "type": "string",
                        "nullable": true
                    }
                }
            },
            "CampusSeat": {
                "type": "object",
                "description": "v1651: one row of the sticky seat list (never an email)",
                "properties": {
                    "seat_id": {
                        "type": "string"
                    },
                    "student_id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "department": {
                        "type": "string"
                    },
                    "year": {
                        "type": "integer"
                    },
                    "section": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "seated",
                            "waiting",
                            "released"
                        ]
                    },
                    "position": {
                        "type": "integer",
                        "nullable": true
                    },
                    "joined_at": {
                        "type": "string",
                        "nullable": true
                    },
                    "seated_at": {
                        "type": "string",
                        "nullable": true
                    },
                    "released_at": {
                        "type": "string",
                        "nullable": true
                    },
                    "release_reason": {
                        "type": "string",
                        "nullable": true
                    }
                }
            },
            "CampusChapter": {
                "type": "object",
                "description": "v1649: the public college chapter (one per college)",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "slug": {
                        "type": "string"
                    },
                    "url": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "pending",
                            "active",
                            "suspended"
                        ]
                    },
                    "launch_state": {
                        "type": "string",
                        "enum": [
                            "requested",
                            "approved",
                            "declined"
                        ]
                    },
                    "launch_note": {
                        "type": "string"
                    },
                    "city": {
                        "type": "string"
                    },
                    "state": {
                        "type": "string"
                    },
                    "blurb": {
                        "type": "string"
                    },
                    "members": {
                        "type": "integer"
                    },
                    "events": {
                        "type": "integer"
                    },
                    "announcements_waiting": {
                        "type": "integer"
                    },
                    "logo": {
                        "type": "boolean"
                    },
                    "socials": {
                        "type": "object"
                    }
                }
            },
            "CampusProgress": {
                "type": "object",
                "description": "v1648: the drill-down (never payments, phone numbers, emails or exam answers)",
                "properties": {
                    "level": {
                        "type": "string",
                        "enum": [
                            "college",
                            "dept",
                            "year",
                            "section",
                            "student"
                        ]
                    },
                    "path": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "summary": {
                        "type": "object"
                    },
                    "groups": {
                        "type": "array",
                        "items": {
                            "type": "object"
                        }
                    },
                    "students": {
                        "type": "array",
                        "items": {
                            "type": "object"
                        }
                    },
                    "funnel": {
                        "type": "object"
                    },
                    "trend": {
                        "type": "array",
                        "items": {
                            "type": "object"
                        }
                    },
                    "skills": {
                        "type": "object"
                    },
                    "benchmark": {
                        "type": "array",
                        "items": {
                            "type": "object"
                        }
                    },
                    "at_risk": {
                        "type": "integer"
                    },
                    "not_tracked_yet": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    }
                }
            },
            "CampusStudent": {
                "type": "object",
                "description": "v1642: never personal email, date of birth or payments",
                "properties": {
                    "student_id": {
                        "type": "string",
                        "nullable": true
                    },
                    "college_email": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "department": {
                        "type": "string"
                    },
                    "year": {
                        "type": "integer"
                    },
                    "section": {
                        "type": "string"
                    },
                    "on_roster": {
                        "type": "boolean"
                    },
                    "state": {
                        "type": "string",
                        "enum": [
                            "seated",
                            "waiting",
                            "no_plan",
                            "not_signed_in",
                            "unlinked"
                        ]
                    },
                    "under_18": {
                        "type": "boolean"
                    },
                    "consent": {
                        "type": "string",
                        "nullable": true
                    },
                    "personal_email_verified": {
                        "type": "boolean"
                    }
                }
            },
            "Seats": {
                "type": "object",
                "description": "The seats of a bulk seat order (v1629)",
                "properties": {
                    "seats": {
                        "type": "integer"
                    },
                    "seats_used": {
                        "type": "integer"
                    },
                    "learners": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "email": {
                                    "type": "string"
                                },
                                "status": {
                                    "type": "string",
                                    "enum": [
                                        "granted",
                                        "test",
                                        "failed"
                                    ]
                                },
                                "assigned_at": {
                                    "type": "integer",
                                    "nullable": true
                                }
                            }
                        }
                    }
                }
            },
            "Learner": {
                "type": "object",
                "description": "data.learner of enrolment.started / progress.updated / certificate.issued (v1629): never a name, email or answers",
                "properties": {
                    "status": {
                        "type": "string",
                        "enum": [
                            "enrolled",
                            "learning",
                            "completed"
                        ]
                    },
                    "progress_pct": {
                        "type": "integer"
                    },
                    "completed": {
                        "type": "boolean"
                    },
                    "certificate_id": {
                        "type": "string",
                        "nullable": true
                    }
                }
            },
            "Refund": {
                "type": "object",
                "description": "data.refund of an order.refunded notification (v1612; reason v1644)",
                "properties": {
                    "amount_inr": {
                        "type": "integer"
                    },
                    "refunded_inr": {
                        "type": "integer"
                    },
                    "full": {
                        "type": "boolean"
                    },
                    "reason": {
                        "type": "string",
                        "enum": [
                            "refund",
                            "chargeback"
                        ]
                    }
                }
            },
            "CatalogueChange": {
                "type": "object",
                "description": "data.catalogue of a catalogue.updated notification (v1626)",
                "properties": {
                    "added": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "removed": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "changed": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "id": {
                                    "type": "string"
                                },
                                "old_total_inr": {
                                    "type": "integer"
                                },
                                "total_inr": {
                                    "type": "integer"
                                }
                            }
                        }
                    },
                    "items": {
                        "type": "integer"
                    }
                }
            },
            "Error": {
                "type": "object",
                "properties": {
                    "ok": {
                        "type": "boolean"
                    },
                    "error": {
                        "type": "object",
                        "properties": {
                            "code": {
                                "type": "string"
                            },
                            "message": {
                                "type": "string"
                            }
                        }
                    },
                    "request_id": {
                        "type": "string"
                    }
                }
            }
        }
    }
}