{"openapi":"3.2.0","info":{"title":"MitWare API","description":"MitWare is the operations platform festivals run their crews, artists, and wiki on. This is the\npartner-facing API of **one MitWare instance** — every festival runs its own, so the base URL is the\nfestival's instance address (for example `https://<festival>.mitware.app`) and every id and every\nresponse is scoped to that festival.\n\n## Authentication\n\nEvery call carries a personal or service-account API key: `Authorization: Bearer mw_…`. Keys are\nissued by the festival's MitWare administrator (API keys page) — for a person or for a service account. A missing or\ninvalid key answers `401`.\n\n## Authorization\n\nA key acts as the person it belongs to and can do exactly what that person can do in the app.\nPermissions are never granted to a person directly — they come with **memberships**: a role, in a\nteam, for an event. A permission held in a team also counts in every team below it in the team\nhierarchy. Each operation states which permission it requires and in which team and event of the\nrequest it must be held. A call without it answers `403` with `Code: \"MissingPermission\"` and the\npermission's dotted name (for example `Team.Administrate`).\n\n## Errors\n\nFailed calls return JSON with a stable `Code` and a human-readable `Description`, plus structured\nfields where useful: `403` for authorization denials, `422` for everything the request itself makes\nimpossible (unknown ids, closed teams, validation failures).\n\n## Identifiers\n\nEvery entity id is a MongoDB ObjectId: 24 hexadecimal characters, for example\n`665f2e8a1b2c3d4e5f601234`. Ids are stable within an instance and never reused.","version":"1.10.784"},"servers":[{"url":"https://{organisation}.mitware.app","description":"Die Instanz deiner Organisation — jede Organisation hat ihre eigene","variables":{"organisation":{"default":"mitdir","description":"Slug der Organisation (Subdomain der Instanz)"}}}],"paths":{"/api/team/create":{"post":{"tags":["Team"],"summary":"Create team","description":"Creates a new team and registers it for the given event.\n\n**Authorization:** requires\n- **Team → Administrate** in the global (root) team, for the event named by `EventId` or for all events — *Team name, open admission, max members, parent team, remove from event, delete, create*\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTeamRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTeamResponse"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Team → Administrate'. Team name, open admission, max members, parent team, remove from event, delete, create.","RequiredPermission":{"Name":"Team.Administrate"}}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Team.Administrate","scope":"GlobalTeam"}]}},"/api/team/delete":{"post":{"tags":["Team"],"summary":"Delete team","description":"Deletes a team. Members lose the membership; the team's shifts and notes are removed with it.\n\n**Authorization:** requires\n- **Team → Administrate** in the team named by `TeamId`, for any event — *Team name, open admission, max members, parent team, remove from event, delete, create*\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteTeamRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteTeamResponse"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Team → Administrate'. Team name, open admission, max members, parent team, remove from event, delete, create.","RequiredPermission":{"Name":"Team.Administrate"},"TeamId":"665f2e8a1b2c3d4e5f60aaaa","TeamName":"Bar crew"}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Team.Administrate","scope":"Team"}]}},"/api/team/add-member":{"post":{"tags":["Team"],"summary":"Add person to teams","description":"Adds a person to one or more teams for an event, assigning the given roles in each team. Adds the event to the person on their first team in it. Partial success: a team the caller may not administrate, a closed team, or a full team is reported in `Failures` while the other teams are still processed.\n\n**Authorization:** requires\n- **Team → Administrate** in the team named by `Memberships[].TeamId` for the event named by `EventId` — *Team name, open admission, max members, parent team, remove from event, delete, create*\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddPersonToTeamsRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddPersonToTeamsResponse"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Team → Administrate'. Team name, open admission, max members, parent team, remove from event, delete, create.","RequiredPermission":{"Name":"Team.Administrate"},"TeamId":"665f2e8a1b2c3d4e5f60aaaa","TeamName":"Bar crew","EventId":"665f2e8a1b2c3d4e5f601234","EventName":"Summer Festival 2026"}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Team.Administrate","scope":"TeamInEvent"}]}},"/api/team/remove-member":{"post":{"tags":["Team"],"summary":"Remove team member","description":"Removes a person from a team for an event. Their roles in that team go with the membership.\n\n**Authorization:** requires\n- **Team → Administrate** in the team named by `TeamId` for the event named by `EventId` — *Team name, open admission, max members, parent team, remove from event, delete, create*\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveTeamMemberRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Team → Administrate'. Team name, open admission, max members, parent team, remove from event, delete, create.","RequiredPermission":{"Name":"Team.Administrate"},"TeamId":"665f2e8a1b2c3d4e5f60aaaa","TeamName":"Bar crew","EventId":"665f2e8a1b2c3d4e5f601234","EventName":"Summer Festival 2026"}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Team.Administrate","scope":"TeamInEvent"}]}},"/api/team/set-setting":{"post":{"tags":["Team"],"summary":"Set team setting","description":"Patches a team's self-service settings for an event (applications open, admission open, shift swaps, max shifts); null fields stay unchanged. Toggling `IsApplicationOpen` or `IsAdmissionOpen` requires Team → Administrate instead of Manage.\n\n**Authorization:** requires\n- **Team → Manage** in the team named by `TeamId` for the event named by `EventId` — *Manage the team, e.g., unlock the shift plan*\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","requestBody":{"description":"The team, event scope, and the settings to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetTeamSettingRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetTeamSettingResponse"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Team → Manage'. Manage the team, e.g., unlock the shift plan.","RequiredPermission":{"Name":"Team.Manage"},"TeamId":"665f2e8a1b2c3d4e5f60aaaa","TeamName":"Bar crew","EventId":"665f2e8a1b2c3d4e5f601234","EventName":"Summer Festival 2026"}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Team.Manage","scope":"TeamInEvent"}]}},"/api/team-note/set-status":{"post":{"tags":["Team note"],"summary":"Set team note status","description":"Sets a team note's kanban status (Open / InProgress / Done). Members of the note's own team may always move it; other callers need Team → Manage for that team and event.\n\n**Authorization:** requires\n- **Team → Manage** in the team the request refers to for the event the request refers to — *Manage the team, e.g., unlock the shift plan*\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","requestBody":{"description":"The note and its new status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetTeamNoteStatusRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetTeamNoteStatusResponse"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Team → Manage'. Manage the team, e.g., unlock the shift plan.","RequiredPermission":{"Name":"Team.Manage"},"TeamId":"665f2e8a1b2c3d4e5f60aaaa","TeamName":"Bar crew","EventId":"665f2e8a1b2c3d4e5f601234","EventName":"Summer Festival 2026"}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Team.Manage","scope":"TeamInEvent"}]}},"/api/shift/set-confirmation":{"post":{"tags":["Shift"],"summary":"Set shift confirmation","description":"Records the assigned person's own answer to their shift (on my way / can't make it). Only the assignee can answer: the key's account must be the person the shift is assigned to — no permission lets anyone answer for someone else.","requestBody":{"description":"The shift and the answer to record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetShiftConfirmationRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetShiftConfirmationResponse"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Category → Permission'.","RequiredPermission":{"Name":"Category.Permission"}}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public"}},"/api/chat/send-message":{"post":{"tags":["Chat"],"summary":"Send chat message","description":"Sends a text message into an in-app conversation as the calling person. The conversation must be one the account can read: its own direct conversations, or an event room whose audience it belongs to.","requestBody":{"description":"The conversation and the text to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendChatMessageRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendChatMessageResponse"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Category → Permission'.","RequiredPermission":{"Name":"Category.Permission"}}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public"}},"/api/chat/send-voice":{"post":{"tags":["Chat"],"summary":"Send chat voice message","description":"Uploads a recorded voice message (multipart form field 'file') and posts it into an in-app conversation as the calling person. Same conversation rules as sending a text message.","requestBody":{"description":"Length of the recording in seconds (form field).","content":{"multipart/form-data":{"schema":{"required":["file","conversationId","durationSeconds"],"type":"object","allOf":[{"type":"object","properties":{"file":{"$ref":"#/components/schemas/IFormFile"}}},{"type":"object","properties":{"conversationId":{"type":"string"}}},{"type":"object","properties":{"durationSeconds":{"pattern":"^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$","type":["number","string"],"format":"double"}}}]}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendChatMessageResponse"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Category → Permission'.","RequiredPermission":{"Name":"Category.Permission"}}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public"}},"/api/act/add-member":{"post":{"tags":["Act"],"summary":"Add person to acts","description":"Adds a person to one or more acts as a member (artist, crew). Partial success: an act the caller may not edit is reported in `Failures` while the others are processed. The event is each act's own event.\n\n**Authorization:** requires\n- **Booking → Edit** in any team for the event the request refers to — *Create and edit acts, stages, timeslots, timetable assignments*\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddPersonToActsRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddPersonToActsResponse"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Booking → Edit'. Create and edit acts, stages, timeslots, timetable assignments.","RequiredPermission":{"Name":"Booking.Edit"},"EventId":"665f2e8a1b2c3d4e5f601234","EventName":"Summer Festival 2026"}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Booking.Edit","scope":"Event"}]}},"/api/role/create":{"post":{"tags":["Role"],"summary":"Create role","description":"Creates a new role with no permissions. Grant permissions afterwards with set-permission-bit.\n\n**Authorization:** requires\n- **Administrator** — the key's account must hold the admin role\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRoleRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRoleResponse"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Category → Permission'.","RequiredPermission":{"Name":"Category.Permission"}}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Administrator","scope":"Global"}]}},"/api/role/delete":{"post":{"tags":["Role"],"summary":"Delete role","description":"Deletes a role. Memberships that carried it lose it.\n\n**Authorization:** requires\n- **Administrator** — the key's account must hold the admin role\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteRoleRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteRoleResponse"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Category → Permission'.","RequiredPermission":{"Name":"Category.Permission"}}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Administrator","scope":"Global"}]}},"/api/role/set-permission":{"post":{"tags":["Role"],"summary":"Set role permission","description":"Sets one of the legacy boolean permissions on a role by property name. Prefer set-permission-bit for registry permissions.\n\n**Authorization:** requires\n- **Administrator** — the key's account must hold the admin role\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetRolePermissionRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetRolePermissionResponse"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Category → Permission'.","RequiredPermission":{"Name":"Category.Permission"}}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Administrator","scope":"Global"}]}},"/api/role/set-permission-bit":{"post":{"tags":["Role"],"summary":"Set role permission bit","description":"Grants or revokes one registry permission on a role by its dotted name (e.g. \"Team.Manage\") — the PermissionBits path the Roles page writes\n\n**Authorization:** requires\n- **Administrator** — the key's account must hold the admin role\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","requestBody":{"description":"The role, the permission's dotted name, and the new grant state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetRolePermissionBitRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetRolePermissionResponse"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Category → Permission'.","RequiredPermission":{"Name":"Category.Permission"}}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Administrator","scope":"Global"}]}},"/api/person/create":{"post":{"tags":["Person"],"summary":"Create person","description":"Creates a new person record. Team memberships and event registration are separate calls.\n\n**Authorization:** requires\n- **Person → Administrate** in any team for any event — *Delete people, create people with name & email only*\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePersonRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePersonResponse"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Person → Administrate'. Delete people, create people with name & email only.","RequiredPermission":{"Name":"Person.Administrate"}}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Person.Administrate","scope":"Global"}]}},"/api/person/delete":{"post":{"tags":["Person"],"summary":"Delete person (everywhere)","description":"Deletes a person from all teams, roles, shifts, and the database. Irreversible.\n\n**Authorization:** requires\n- **Administrator** — the key's account must hold the admin role\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletePersonRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Category → Permission'.","RequiredPermission":{"Name":"Category.Permission"}}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Administrator","scope":"Global"}]}},"/api/person/block":{"post":{"tags":["Person"],"summary":"Block / unblock person","description":"Blocks a person with a reason, or unblocks them (null reason = unblock). A blocked person cannot sign in or be scheduled.\n\n**Authorization:** requires\n- **Administrator** — the key's account must hold the admin role\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockPersonRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockPersonResponse"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Category → Permission'.","RequiredPermission":{"Name":"Category.Permission"}}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Administrator","scope":"Global"}]}},"/api/person/send-mail":{"post":{"tags":["Person"],"summary":"Send mail","description":"Sends one of the instance's mail templates to a person, rendered for the given event.\n\n**Authorization:** requires\n- **Mail → Send** in at least one team the person named by `PersonId` is a member of, for the event named by `EventId` — *Send emails to people via the person menu*\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendMailRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Mail → Send'. Send emails to people via the person menu.","RequiredPermission":{"Name":"Mail.Send"}}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Mail.Send","scope":"SubjectPersonTeamsInEvent"}]}},"/api/person/remove-from-event":{"post":{"tags":["Person"],"summary":"Remove from event","description":"Removes a person from an event: their memberships, shifts, and applications for that event are dropped; the person record stays.\n\n**Authorization:** requires\n- **Person → Administrate** in at least one team the person named by `PersonId` is a member of, for the event named by `EventId` — *Delete people, create people with name & email only*\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemovePersonFromEventRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Person → Administrate'. Delete people, create people with name & email only.","RequiredPermission":{"Name":"Person.Administrate"}}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Person.Administrate","scope":"SubjectPersonTeamsInEvent"}]}},"/api/person/set-data":{"post":{"tags":["Person"],"summary":"Set person data","description":"Patches a person's basic profile fields (names, nickname handling, pronouns, city, contact data); null fields stay unchanged\n\n**Authorization:** requires\n- **Person → Edit** in any team for any event — *Create and edit people in accessible teams*\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetPersonDataRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetPersonDataResponse"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Person → Edit'. Create and edit people in accessible teams.","RequiredPermission":{"Name":"Person.Edit"}}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Person.Edit","scope":"Global"}]}},"/api/application/submit":{"post":{"tags":["Application"],"summary":"Submit team application","description":"Creates an application from form values for an application process and an applicant. An account may always apply as itself; submitting on behalf of someone else needs the permission below for the process's event.\n\n**Authorization:** requires\n- **Application → Edit** in any team for the event the request refers to — *Configure the application process, accept and reject submissions; manage deposit exceptions*\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitTeamApplicationRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitTeamApplicationResult"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Application → Edit'. Configure the application process, accept and reject submissions; manage deposit exceptions.","RequiredPermission":{"Name":"Application.Edit"},"EventId":"665f2e8a1b2c3d4e5f601234","EventName":"Summer Festival 2026"}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Application.Edit","scope":"Event"}]}},"/api/api-key/create":{"post":{"tags":["API key"],"summary":"Create API key","description":"Creates a new API key for a person and returns the raw key exactly once — it is stored hashed and cannot be shown again.\n\n**Authorization:** requires\n- **Administrator** — the key's account must hold the admin role\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApiKeyRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApiKeyResponse"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Category → Permission'.","RequiredPermission":{"Name":"Category.Permission"}}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Administrator","scope":"Global"}]}},"/api/api-key/revoke":{"post":{"tags":["API key"],"summary":"Revoke API key","description":"Revokes an API key immediately. Requests with it answer 401 from then on.\n\n**Authorization:** requires\n- **Administrator** — the key's account must hold the admin role\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevokeApiKeyRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevokeApiKeyResponse"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Category → Permission'.","RequiredPermission":{"Name":"Category.Permission"}}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Administrator","scope":"Global"}]}},"/api/wiki/schema":{"get":{"tags":["Wiki"],"summary":"Read the wiki authoring contract","description":"Returns every TipTap node and mark the wiki renderer understands, their attributes, and the closed value sets (theme colors, callout kinds, image layout options) — the full formatting vocabulary an API client can author with.\n\n**Authorization:** requires\n- **Api → Read Wiki** in any team for any event — *Read wiki pages — content, metadata, and revision history — via the external wiki API. The account additionally needs Wiki → View; page-level view locks still apply*\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","operationId":"GetWikiSchema","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WikiSchemaResponse"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Api → Read Wiki'. Read wiki pages — content, metadata, and revision history — via the external wiki API. The account additionally needs Wiki → View; page-level view locks still apply.","RequiredPermission":{"Name":"Api.ReadWiki"}}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Api.ReadWiki","scope":"Global"}]}},"/api/wiki/pages":{"get":{"tags":["Wiki"],"summary":"List wiki pages","description":"Returns every active wiki page the key's account may view — metadata only by default, full TipTap content and plain text with ?includeContent=true (the entire wiki in one response), archived pages too with ?includeArchived=true.\n\n**Authorization:** requires\n- **Api → Read Wiki** in any team for any event — *Read wiki pages — content, metadata, and revision history — via the external wiki API. The account additionally needs Wiki → View; page-level view locks still apply*\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","operationId":"ListWikiPages","parameters":[{"name":"includeContent","in":"query","description":"True to include each page's TipTap content and plain text. Default: false","schema":{"type":"boolean"}},{"name":"includeArchived","in":"query","description":"True to also list archived (soft-deleted) pages. Default: false","schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WikiPageListResponse"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Api → Read Wiki'. Read wiki pages — content, metadata, and revision history — via the external wiki API. The account additionally needs Wiki → View; page-level view locks still apply.","RequiredPermission":{"Name":"Api.ReadWiki"}}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Api.ReadWiki","scope":"Global"}]},"post":{"tags":["Wiki"],"summary":"Create a wiki page","description":"Creates a wiki page from a TipTap JSON document. Revisions, [[wiki-link]] tracking, and RAG indexing behave exactly as for an in-app creation.\n\n**Authorization:** requires\n- **Api → Write Wiki** in any team for any event — *Create, edit, and archive wiki pages via the external wiki API. The account additionally needs the corresponding Wiki permission (Create / Edit / Delete); page-level edit locks still apply*\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","operationId":"CreateWikiPage","requestBody":{"description":"The page to create.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWikiPageRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WikiApiPage"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Api → Write Wiki'. Create, edit, and archive wiki pages via the external wiki API. The account additionally needs the corresponding Wiki permission (Create / Edit / Delete); page-level edit locks still apply.","RequiredPermission":{"Name":"Api.WriteWiki"}}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Api.WriteWiki","scope":"Global"}]}},"/api/wiki/search":{"get":{"tags":["Wiki"],"summary":"Search wiki pages","description":"Searches title, tags, and body with the app's own case- and diacritic-insensitive semantics (all terms must match) and returns the matching viewable pages with a snippet around the first body hit.\n\n**Authorization:** requires\n- **Api → Read Wiki** in any team for any event — *Read wiki pages — content, metadata, and revision history — via the external wiki API. The account additionally needs Wiki → View; page-level view locks still apply*\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","operationId":"SearchWikiPages","parameters":[{"name":"query","in":"query","description":"The search terms. Whitespace-separated; every term must match","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Maximum number of hits. Null returns at most 50","schema":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"format":"int32"}},{"name":"includeContent","in":"query","description":"True to include each hit's full TipTap content and plain text. Default: false","schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WikiSearchResponse"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Api → Read Wiki'. Read wiki pages — content, metadata, and revision history — via the external wiki API. The account additionally needs Wiki → View; page-level view locks still apply.","RequiredPermission":{"Name":"Api.ReadWiki"}}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Api.ReadWiki","scope":"Global"}]}},"/api/wiki/pages/{slug}":{"get":{"tags":["Wiki"],"summary":"Read one wiki page","description":"Returns one wiki page by slug — metadata, the TipTap JSON content, and the extracted plain text. Archived pages resolve with ?includeArchived=true.\n\n**Authorization:** requires\n- **Api → Read Wiki** in any team for any event — *Read wiki pages — content, metadata, and revision history — via the external wiki API. The account additionally needs Wiki → View; page-level view locks still apply*\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","operationId":"GetWikiPage","parameters":[{"name":"slug","in":"path","description":"The page's slug","required":true,"schema":{"type":"string"}},{"name":"includeArchived","in":"query","description":"True to also resolve archived (soft-deleted) pages. Default: false","schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WikiApiPage"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Api → Read Wiki'. Read wiki pages — content, metadata, and revision history — via the external wiki API. The account additionally needs Wiki → View; page-level view locks still apply.","RequiredPermission":{"Name":"Api.ReadWiki"}}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Api.ReadWiki","scope":"Global"}]},"put":{"tags":["Wiki"],"summary":"Update a wiki page","description":"Updates a wiki page by slug. Null request fields are left unchanged; every update snapshots a revision, honors page edit locks, and re-runs link tracking and RAG indexing. Also carries owner-team reassignment and the RAG-exclusion flag.\n\n**Authorization:** requires\n- **Api → Write Wiki** in any team for any event — *Create, edit, and archive wiki pages via the external wiki API. The account additionally needs the corresponding Wiki permission (Create / Edit / Delete); page-level edit locks still apply*\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","operationId":"UpdateWikiPage","parameters":[{"name":"slug","in":"path","description":"The page's slug","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"The fields to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWikiPageRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WikiApiPage"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Api → Write Wiki'. Create, edit, and archive wiki pages via the external wiki API. The account additionally needs the corresponding Wiki permission (Create / Edit / Delete); page-level edit locks still apply.","RequiredPermission":{"Name":"Api.WriteWiki"}}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Api.WriteWiki","scope":"Global"}]},"delete":{"tags":["Wiki"],"summary":"Archive a wiki page","description":"Archives (soft-deletes) a wiki page: it disappears from the wiki and this API's reads and its RAG chunks are removed, but the document and its revisions remain recoverable in the database.\n\n**Authorization:** requires\n- **Api → Write Wiki** in any team for any event — *Create, edit, and archive wiki pages via the external wiki API. The account additionally needs the corresponding Wiki permission (Create / Edit / Delete); page-level edit locks still apply*\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","operationId":"ArchiveWikiPage","parameters":[{"name":"slug","in":"path","description":"The page's slug","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WikiApiPage"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Api → Write Wiki'. Create, edit, and archive wiki pages via the external wiki API. The account additionally needs the corresponding Wiki permission (Create / Edit / Delete); page-level edit locks still apply.","RequiredPermission":{"Name":"Api.WriteWiki"}}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Api.WriteWiki","scope":"Global"}]}},"/api/wiki/categories":{"get":{"tags":["Wiki"],"summary":"List wiki categories","description":"Returns the wiki's category tree with the viewable page count per category — the ids a page's categoryIds refer to.\n\n**Authorization:** requires\n- **Api → Read Wiki** in any team for any event — *Read wiki pages — content, metadata, and revision history — via the external wiki API. The account additionally needs Wiki → View; page-level view locks still apply*\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","operationId":"ListWikiCategories","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WikiCategoryListResponse"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Api → Read Wiki'. Read wiki pages — content, metadata, and revision history — via the external wiki API. The account additionally needs Wiki → View; page-level view locks still apply.","RequiredPermission":{"Name":"Api.ReadWiki"}}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Api.ReadWiki","scope":"Global"}]},"post":{"tags":["Wiki"],"summary":"Create a wiki category","description":"Creates a category in the wiki context, immediately usable in a page's categoryIds. Requires the Wiki → Manage permission.\n\n**Authorization:** requires\n- **Api → Write Wiki** in any team for any event — *Create, edit, and archive wiki pages via the external wiki API. The account additionally needs the corresponding Wiki permission (Create / Edit / Delete); page-level edit locks still apply*\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","operationId":"CreateWikiCategory","requestBody":{"description":"The category to create.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWikiCategoryRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WikiApiCategory"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Api → Write Wiki'. Create, edit, and archive wiki pages via the external wiki API. The account additionally needs the corresponding Wiki permission (Create / Edit / Delete); page-level edit locks still apply.","RequiredPermission":{"Name":"Api.WriteWiki"}}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Api.WriteWiki","scope":"Global"}]}},"/api/wiki/files":{"get":{"tags":["Wiki"],"summary":"List uploaded wiki images","description":"Returns every image in wiki file storage with its served URL, so an existing image can be embedded again instead of re-uploaded.\n\n**Authorization:** requires\n- **Api → Read Wiki** in any team for any event — *Read wiki pages — content, metadata, and revision history — via the external wiki API. The account additionally needs Wiki → View; page-level view locks still apply*\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","operationId":"ListWikiFiles","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WikiFileListResponse"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Api → Read Wiki'. Read wiki pages — content, metadata, and revision history — via the external wiki API. The account additionally needs Wiki → View; page-level view locks still apply.","RequiredPermission":{"Name":"Api.ReadWiki"}}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Api.ReadWiki","scope":"Global"}]},"post":{"tags":["Wiki"],"summary":"Upload a wiki image","description":"Uploads an image (multipart form field 'file', max 5 MB, image/* only) into wiki file storage and returns the stable URL to use as an image node's src in page content.\n\n**Authorization:** requires\n- **Api → Write Wiki** in any team for any event — *Create, edit, and archive wiki pages via the external wiki API. The account additionally needs the corresponding Wiki permission (Create / Edit / Delete); page-level edit locks still apply*\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","operationId":"UploadWikiFile","requestBody":{"description":"The image file (multipart form field named `file`). Maximum 5 MB, MIME type must be image/*.","content":{"multipart/form-data":{"schema":{"required":["file"],"type":"object","properties":{"file":{"$ref":"#/components/schemas/IFormFile"}}}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WikiFileUploadResponse"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Api → Write Wiki'. Create, edit, and archive wiki pages via the external wiki API. The account additionally needs the corresponding Wiki permission (Create / Edit / Delete); page-level edit locks still apply.","RequiredPermission":{"Name":"Api.WriteWiki"}}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Api.WriteWiki","scope":"Global"}]}},"/api/wiki/access-options":{"get":{"tags":["Wiki"],"summary":"Read the ids used in ownership and access scopes","description":"Returns teams, roles, and events by name — the ids needed to set a page's ownerTeamId and to compose its view and edit access scopes.\n\n**Authorization:** requires\n- **Api → Read Wiki** in any team for any event — *Read wiki pages — content, metadata, and revision history — via the external wiki API. The account additionally needs Wiki → View; page-level view locks still apply*\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","operationId":"GetWikiAccessOptions","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WikiAccessOptionsResponse"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Api → Read Wiki'. Read wiki pages — content, metadata, and revision history — via the external wiki API. The account additionally needs Wiki → View; page-level view locks still apply.","RequiredPermission":{"Name":"Api.ReadWiki"}}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Api.ReadWiki","scope":"Global"}]}},"/api/wiki/pages/{slug}/revisions":{"get":{"tags":["Wiki"],"summary":"Read a wiki page's revision history","description":"Returns the revision snapshots of one wiki page, newest first — metadata only by default, full TipTap content snapshots with ?includeContent=true.\n\n**Authorization:** requires\n- **Api → Read Wiki** in any team for any event — *Read wiki pages — content, metadata, and revision history — via the external wiki API. The account additionally needs Wiki → View; page-level view locks still apply*\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","operationId":"GetWikiPageRevisions","parameters":[{"name":"slug","in":"path","description":"The page's slug","required":true,"schema":{"type":"string"}},{"name":"includeContent","in":"query","description":"True to include each revision's TipTap content snapshot. Default: false","schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WikiRevisionListResponse"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Api → Read Wiki'. Read wiki pages — content, metadata, and revision history — via the external wiki API. The account additionally needs Wiki → View; page-level view locks still apply.","RequiredPermission":{"Name":"Api.ReadWiki"}}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Api.ReadWiki","scope":"Global"}]}},"/api/wiki/pages/{slug}/revert":{"post":{"tags":["Wiki"],"summary":"Revert a wiki page to an earlier revision","description":"Restores the title and content of an earlier revision. The revert is itself a revisioned edit, so it can be undone. Requires the Wiki → Manage permission.\n\n**Authorization:** requires\n- **Api → Write Wiki** in any team for any event — *Create, edit, and archive wiki pages via the external wiki API. The account additionally needs the corresponding Wiki permission (Create / Edit / Delete); page-level edit locks still apply*\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","operationId":"RevertWikiPage","parameters":[{"name":"slug","in":"path","description":"The page's slug","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"The revision to restore.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevertWikiPageRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WikiApiPage"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Api → Write Wiki'. Create, edit, and archive wiki pages via the external wiki API. The account additionally needs the corresponding Wiki permission (Create / Edit / Delete); page-level edit locks still apply.","RequiredPermission":{"Name":"Api.WriteWiki"}}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Api.WriteWiki","scope":"Global"}]}},"/api/wiki/pages/{slug}/restore":{"post":{"tags":["Wiki"],"summary":"Restore an archived wiki page","description":"Un-archives a page: it reappears in the wiki and in this API's reads and is re-indexed for AI retrieval. Requires the Wiki → Manage permission.\n\n**Authorization:** requires\n- **Api → Write Wiki** in any team for any event — *Create, edit, and archive wiki pages via the external wiki API. The account additionally needs the corresponding Wiki permission (Create / Edit / Delete); page-level edit locks still apply*\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","operationId":"RestoreWikiPage","parameters":[{"name":"slug","in":"path","description":"The archived page's slug","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WikiApiPage"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Api → Write Wiki'. Create, edit, and archive wiki pages via the external wiki API. The account additionally needs the corresponding Wiki permission (Create / Edit / Delete); page-level edit locks still apply.","RequiredPermission":{"Name":"Api.WriteWiki"}}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Api.WriteWiki","scope":"Global"}]}},"/api/wiki/pages/{slug}/access":{"put":{"tags":["Wiki"],"summary":"Replace a wiki page's access rules","description":"Replaces the page's edit lock, view scopes, edit scopes, and explicit person edit grants without touching content or revisions. Requires the Wiki → Manage permission.\n\n**Authorization:** requires\n- **Api → Write Wiki** in any team for any event — *Create, edit, and archive wiki pages via the external wiki API. The account additionally needs the corresponding Wiki permission (Create / Edit / Delete); page-level edit locks still apply*\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","operationId":"SetWikiPageAccess","parameters":[{"name":"slug","in":"path","description":"The page's slug","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"The access metadata to apply.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetWikiPageAccessRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WikiApiPage"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Api → Write Wiki'. Create, edit, and archive wiki pages via the external wiki API. The account additionally needs the corresponding Wiki permission (Create / Edit / Delete); page-level edit locks still apply.","RequiredPermission":{"Name":"Api.WriteWiki"}}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Api.WriteWiki","scope":"Global"}]}},"/api/timetable/public":{"get":{"tags":["Timetable"],"summary":"Public timetable export","description":"Returns the full public timetable of an event — the publicly visible stages, their performance slots, and the public profiles of all referenced announced acts. Slots of unannounced acts are masked as TBA. Read-only; exposes exactly what the public timetable page shows and no internal data.\n\n**Authorization:** requires\n- **Api → Read Public Timetable** in any team for the event named by `eventId` — *Read the public timetable, lineup, and act photos of an event via the external API*\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","operationId":"GetPublicTimetable","parameters":[{"name":"eventId","in":"query","description":"The event whose public timetable to export (EventData id)","required":true,"schema":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string"}},{"name":"language","in":"query","description":"Language for genre display names: \"German\" (default) or \"English\". Case-insensitive","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicTimetableResponse"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Api → Read Public Timetable'. Read the public timetable, lineup, and act photos of an event via the external API.","RequiredPermission":{"Name":"Api.ReadPublicTimetable"},"EventId":"665f2e8a1b2c3d4e5f601234","EventName":"Summer Festival 2026"}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Api.ReadPublicTimetable","scope":"Event"}]}},"/api/lineup/acts":{"get":{"tags":["Lineup"],"summary":"Public lineup export","description":"Returns the public profiles of all publicly announced acts of an event — name, promo text, genres, origin, label, social links, and photo URLs. Read-only; unannounced acts are never included.\n\n**Authorization:** requires\n- **Api → Read Public Timetable** in any team for the event named by `eventId` — *Read the public timetable, lineup, and act photos of an event via the external API*\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","operationId":"GetPublicLineup","parameters":[{"name":"eventId","in":"query","description":"The event whose lineup to export (EventData id)","required":true,"schema":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string"}},{"name":"language","in":"query","description":"Language for genre and act-type display names: \"German\" (default) or \"English\". Case-insensitive","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicLineupResponse"}}}},"401":{"description":"Missing or invalid API key"},"403":{"description":"The key's account lacks a required permission (see *Authorization* above). `RequiredPermission.Name` is the dotted permission; the team and event echoed are the ones the request named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"MissingPermission","Description":"Requires the permission 'Api → Read Public Timetable'. Read the public timetable, lineup, and act photos of an event via the external API.","RequiredPermission":{"Name":"Api.ReadPublicTimetable"},"EventId":"665f2e8a1b2c3d4e5f601234","EventName":"Summer Festival 2026"}}}},"422":{"description":"The request cannot be applied: unknown or malformed id, closed or full team, invalid value. `Code` identifies the case, `Description` explains it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"},"example":{"Code":"NotFound","Description":"No event with id 665f2e8a1b2c3d4e5f601234 exists in this instance"}}}}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Api.ReadPublicTimetable","scope":"Event"}]}},"/api/lineup/act-photo":{"get":{"tags":["Lineup"],"summary":"Act photo download","description":"Serves one image attachment of a publicly announced act, optionally resized (tiny/small/medium/large, WebP). URLs for this endpoint come from the lineup export response; the same Bearer key is required.\n\n**Authorization:** requires\n- **Api → Read Public Timetable** in any team for the event the request refers to — *Read the public timetable, lineup, and act photos of an event via the external API*\n\nPermissions come with memberships (a role in a team for an event) and a permission held in a team also counts in its descendant teams — see *Authorization* at the top of this document.","operationId":"GetActPhoto","parameters":[{"name":"attachmentId","in":"query","description":"The photo's attachment, taken from the lineup export's photo URLs (AttachmentInfo id)","required":true,"schema":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string"}},{"name":"variant","in":"query","description":"Size variant: \"original\" (default), \"tiny\", \"small\", \"medium\", or \"large\". Unknown values fall back to \"original\"","schema":{"type":"string"}}],"responses":{"200":{"description":"The image file, a 403 denial when the account holds no read permission at all, or the uniform 422 error otherwise."},"401":{"description":"Missing or invalid API key"}},"security":[{"Bearer":[]}],"x-mitware-surface":"Public","x-mitware-permissions":[{"permission":"Api.ReadPublicTimetable","scope":"Event"}]}}},"components":{"schemas":{"ActMembershipFailure":{"required":["ActName","Reason"],"type":"object","properties":{"ActName":{"type":"string","description":"Name of the act"},"Reason":{"type":"string","description":"Stable reason code, e.g. MissingPermission"}},"description":"One act the person could not be added to and why"},"ActMembershipResult":{"required":["ActName","WasNewlyAdded"],"type":"object","properties":{"ActName":{"type":"string","description":"Name of the act"},"WasNewlyAdded":{"type":"boolean","description":"True for a new membership, false when the person was already a member"}},"description":"Outcome for one act"},"AddPersonToActsRequest":{"required":["ActIds","PersonId"],"type":"object","properties":{"ActIds":{"type":"array","items":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"MongoDB ObjectId — 24 hexadecimal characters"},"description":"The acts to add the person to as a performing member (Act id)","x-mitware-entity":"Act"},"PersonId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The person to add as a member (Person id)","x-mitware-entity":"Person"}}},"AddPersonToActsResponse":{"required":["ActResults","Failures","WasEffective"],"type":"object","properties":{"ActResults":{"type":"array","items":{"$ref":"#/components/schemas/ActMembershipResult"},"description":"One entry per act the person was added to (or already belonged to)"},"Failures":{"type":"array","items":{"$ref":"#/components/schemas/ActMembershipFailure"},"description":"Acts the person could not be added to, with a stable reason code"},"WasEffective":{"type":"boolean","description":"True if at least one act membership was newly created"}},"description":"Outcome per requested act, plus the acts the person could not be added to"},"AddPersonToTeamFailure":{"required":["TeamName","Reason"],"type":"object","properties":{"TeamName":{"description":"Name of the team that could not be joined","$ref":"#/components/schemas/LocalizedString"},"Reason":{"type":"string","description":"Stable reason code: TeamClosed, TeamFull, MissingPermission, or Other"}},"description":"One team that could not be joined and why"},"AddPersonToTeamsRequest":{"required":["Memberships","PersonId","EventId"],"type":"object","properties":{"Memberships":{"type":"array","items":{"$ref":"#/components/schemas/TeamMembershipAssignment"},"description":"The teams to add the person to, each with the roles to assign in that team"},"PersonId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The person to add as a member (Person id)","x-mitware-entity":"Person"},"EventId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The event context (EventData id)","x-mitware-entity":"EventData"}},"description":"Which person joins which teams, with which roles, for which event"},"AddPersonToTeamsResponse":{"required":["TeamResults","Failures","WasEffective","WasAddedToEvent","EventName"],"type":"object","properties":{"TeamResults":{"type":"array","items":{"$ref":"#/components/schemas/TeamMembershipResult"},"description":"One entry per requested membership that succeeded, with the roles newly added and the roles the person already held"},"Failures":{"type":"array","items":{"$ref":"#/components/schemas/AddPersonToTeamFailure"},"description":"Teams that could not be joined; each carries a stable reason code (TeamClosed, TeamFull, MissingPermission, Other)"},"WasEffective":{"type":"boolean","description":"True if at least one team was newly joined or at least one role was newly added to an existing membership"},"WasAddedToEvent":{"type":"boolean","description":"True if this call also added the event to the person (their first team in this event)"},"EventName":{"type":"string","description":"Display name of the event"}},"description":"Outcome per requested team, plus the teams that could not be joined"},"ApiErrorResponse":{"required":["Code","Description"],"type":"object","properties":{"Code":{"type":"string","description":"Stable machine-readable error code, e.g. \"MissingPermission\", \"TeamFull\", \"NotFound\""},"Description":{"type":"string","description":"Human-readable explanation of the failure"}},"description":"Body of every failed call. Always carries Code and Description; authorization denials add RequiredPermission.Name (dotted permission) and, when the check was scoped, TeamId/TeamName and EventId/EventName echoing what the request named."},"ApplicationState":{"enum":["Draft","Submitted","Waitlisted","Accepted","Rejected","Withdrawn"]},"BlockPersonRequest":{"required":["PersonId"],"type":"object","properties":{"PersonId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The person to block or unblock (Person id)","x-mitware-entity":"Person"},"Reason":{"type":["null","string"],"description":"Block reason (null or empty to unblock)"}}},"BlockPersonResponse":{"required":["PersonId","IsBlocked","BlockReason"],"type":"object","properties":{"PersonId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The person that was blocked or unblocked (Person id)","x-mitware-entity":"Person"},"IsBlocked":{"type":"boolean","description":"Whether the person is now blocked from signing in"},"BlockReason":{"type":["null","string"],"description":"The block reason shown to administrators; null when unblocked"}},"description":"A person's block state after the change"},"CreateApiKeyRequest":{"required":["PersonId","Label"],"type":"object","properties":{"PersonId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The person to create the API key for (Person id)","x-mitware-entity":"Person"},"Label":{"type":"string","description":"A label to identify this API key"},"ExpiresAt":{"type":["null","string"],"description":"Optional ISO 8601 timestamp after which the key stops working. Null = the key never expires by time.","format":"date-time"}}},"CreateApiKeyResponse":{"required":["ApiKeyId","KeyPrefix","PersonId","Label","ExpiresAt","RawKey"],"type":"object","properties":{"ApiKeyId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"Id of the new API key record (ApiKey id)","x-mitware-entity":"ApiKey"},"KeyPrefix":{"type":"string","description":"The first characters of the key, for identifying it in lists"},"PersonId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The person the key authenticates as (Person id)","x-mitware-entity":"Person"},"Label":{"type":"string","description":"The label given to the key"},"ExpiresAt":{"type":["null","string"],"description":"ISO 8601 timestamp after which the key stops working; null = never expires by time","format":"date-time"},"RawKey":{"type":"string","description":"The bearer token itself. Store it now — it cannot be retrieved again"}},"description":"The API key that was created. The raw key is shown exactly once, here"},"CreatePersonRequest":{"required":["FirstName","LastName","Email"],"type":"object","properties":{"FirstName":{"type":"string","description":"First name of the new person"},"LastName":{"type":"string","description":"Last name of the new person"},"Email":{"type":"string","description":"Email address of the new person"}}},"CreatePersonResponse":{"required":["PersonId","FirstName","LastName","Email"],"type":"object","properties":{"PersonId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"Id of the new person (Person id)","x-mitware-entity":"Person"},"FirstName":{"type":"string","description":"First name of the new person"},"LastName":{"type":"string","description":"Last name of the new person"},"Email":{"type":"string","description":"Email address of the new person"}},"description":"The person that was created"},"CreateRoleRequest":{"required":["Name"],"type":"object","properties":{"Name":{"type":"string","description":"Name of the new role"}}},"CreateRoleResponse":{"required":["RoleId","Name"],"type":"object","properties":{"RoleId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"Id of the new role (Role id)","x-mitware-entity":"Role"},"Name":{"type":"string","description":"Name of the new role"}},"description":"The role that was created"},"CreateTeamRequest":{"required":["Name","EventId","DefaultRoleId"],"type":"object","properties":{"Name":{"type":"string","description":"Name of the new team (used for every supported language)"},"EventId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The event this team belongs to (EventData id)","x-mitware-entity":"EventData"},"DefaultRoleId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"Default role assigned to new members of this team (Role id)","x-mitware-entity":"Role"}}},"CreateTeamResponse":{"required":["TeamId","Name","EventId","DefaultRoleId"],"type":"object","properties":{"TeamId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"Id of the new team (Team id)","x-mitware-entity":"Team"},"Name":{"type":"string","description":"Name of the new team"},"EventId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The event the team was created for (EventData id)","x-mitware-entity":"EventData"},"DefaultRoleId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"Default role assigned to new members of the team (Role id)","x-mitware-entity":"Role"}},"description":"The team that was created"},"CreateWikiCategoryRequest":{"required":["Name"],"type":"object","properties":{"Name":{"type":"string","description":"The category name. Must not be empty"},"ParentCategoryId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"Parent category id (24-char hex). Null creates a top-level category (ItemCategory id)","x-mitware-entity":"ItemCategory"},"Color":{"type":["null","string"],"description":"Color for the category chip. Null leaves it uncolored"},"Note":{"type":["null","string"],"description":"Free-text note describing the category. Null leaves it empty"},"DisplayOrder":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"description":"Sort position among siblings. Null sorts it last","format":"int32"}}},"CreateWikiPageRequest":{"required":["Title","Content"],"type":"object","properties":{"Title":{"type":"string","description":"The page title. Must not be empty"},"Content":{"description":"The TipTap JSON document — the same format GET returns as Content","$ref":"#/components/schemas/JsonElement"},"Slug":{"type":["null","string"],"description":"Preferred slug. Null derives the slug from the title"},"Tags":{"type":["null","array"],"items":{"type":"string"},"description":"Freeform tags. Null creates the page without tags"},"CategoryIds":{"type":"array","items":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"MongoDB ObjectId — 24 hexadecimal characters"},"description":"Wiki category ids (24-char hex) to file the page under. Null leaves it uncategorized (ItemCategory id)","x-mitware-entity":"ItemCategory"},"OwnerTeamId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The owning team's id (24-char hex). Null creates an unowned page (Team id)","x-mitware-entity":"Team"},"ViewAccessScopes":{"type":["null","array"],"items":{"$ref":"#/components/schemas/WikiApiAccessScope"},"description":"View access grants. Null leaves the page visible to every wiki viewer"}}},"DeletePersonRequest":{"required":["PersonId"],"type":"object","properties":{"PersonId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The person to delete (Person id)","x-mitware-entity":"Person"}}},"DeleteRoleRequest":{"required":["RoleId"],"type":"object","properties":{"RoleId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The role to delete (Role id)","x-mitware-entity":"Role"}}},"DeleteRoleResponse":{"required":["RoleId","Name"],"type":"object","properties":{"RoleId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"Id of the deleted role (Role id)","x-mitware-entity":"Role"},"Name":{"type":"string","description":"Name of the deleted role"}},"description":"The role that was deleted"},"DeleteTeamRequest":{"required":["TeamId"],"type":"object","properties":{"TeamId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The team to delete (Team id)","x-mitware-entity":"Team"}}},"DeleteTeamResponse":{"required":["TeamId","TeamName"],"type":"object","properties":{"TeamId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"Id of the deleted team (Team id)","x-mitware-entity":"Team"},"TeamName":{"description":"Name of the deleted team","$ref":"#/components/schemas/LocalizedString"}},"description":"The team that was deleted"},"ExternalLinkType":{"enum":["Other","Instagram","SoundCloud","Spotify","YouTube","Bandcamp","TikTok","Facebook","ResidentAdvisor","Mixcloud"]},"IFormFile":{"type":"string","format":"binary"},"JsonElement":{},"LocalizedString":{"type":"object","properties":{"Values":{"type":"object","additionalProperties":{"type":"string"}}}},"PublicLineupAct":{"required":["Id","Name","PromoText","ActType","Genres","CityOrHome","Label","AnnouncementWave","ExternalLinks","Photos","IsAnnounced"],"type":"object","properties":{"Id":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The act's unique ID (24-character hexadecimal). Matches the ActId used by the timetable export (Act id)","x-mitware-entity":"Act"},"Name":{"type":"string","description":"Public name of the act"},"PromoText":{"type":"string","description":"Public-facing promotional text for websites and lineup announcements. May be empty"},"ActType":{"type":"string","description":"Act type display name in the requested language (e.g. \"DJ\", \"Live Band\", \"Workshop\"). Empty when no act type is set"},"Genres":{"type":"array","items":{"type":"string"},"description":"Genre display names in the requested language (e.g. \"Techno\", \"House\"). Empty when no genre is set"},"CityOrHome":{"type":"string","description":"City or country of origin. May be empty"},"Label":{"type":"string","description":"Label or collective affiliation (e.g. \"Stil vor Talent\"). May be empty"},"AnnouncementWave":{"type":"string","description":"Which lineup release wave announced this act (e.g. \"No. 1 (Dezember)\"). May be empty"},"ExternalLinks":{"type":"array","items":{"$ref":"#/components/schemas/PublicTimetableExternalLink"},"description":"Public web links (social media, music profiles) with their detected platform type"},"Photos":{"type":"array","items":{"$ref":"#/components/schemas/PublicLineupPhoto"},"description":"The act's public photos with ready-to-use download URLs. Empty when none are uploaded"},"IsAnnounced":{"type":"boolean","description":"Whether the act is publicly announced. Public keys only ever receive announced acts (always true); internal keys also receive unannounced acts with this set to false — treat those as EMBARGOED and never publish them"}}},"PublicLineupPhoto":{"required":["AttachmentId","FileName","Urls"],"type":"object","properties":{"AttachmentId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"Unique ID of the photo (24-character hexadecimal) (AttachmentInfo id)","x-mitware-entity":"AttachmentInfo"},"FileName":{"type":"string","description":"Original file name without extension, for display or alt text"},"Urls":{"description":"Relative download URLs per size variant. Prefix with the API base URL","$ref":"#/components/schemas/PublicLineupPhotoUrls"}}},"PublicLineupPhotoUrls":{"required":["Original","Tiny","Small","Medium","Large"],"type":"object","properties":{"Original":{"type":"string","description":"The original file in its original format. Always available"},"Tiny":{"type":["null","string"],"description":"WebP thumbnail, longest edge 50px. Null when unavailable for this format"},"Small":{"type":["null","string"],"description":"WebP thumbnail, longest edge 150px. Null when unavailable for this format"},"Medium":{"type":["null","string"],"description":"WebP thumbnail, longest edge 400px. Null when unavailable for this format"},"Large":{"type":["null","string"],"description":"WebP thumbnail, longest edge 800px. Null when unavailable for this format"}}},"PublicLineupResponse":{"required":["Event","Acts","GeneratedAt"],"type":"object","properties":{"Event":{"description":"The event this lineup belongs to","$ref":"#/components/schemas/PublicTimetableEventInfo"},"Acts":{"type":"array","items":{"$ref":"#/components/schemas/PublicLineupAct"},"description":"The public profiles of all publicly announced acts of the event, ordered by name"},"GeneratedAt":{"type":"string","description":"UTC timestamp at which this response was generated (ISO 8601)","format":"date-time"}}},"PublicTimetableAct":{"required":["Id","Name","PromoText","Genres","CityOrHome","Label","ExternalLinks","IsAnnounced"],"type":"object","properties":{"Id":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The act's unique ID (24-character hexadecimal). Referenced by slots via ActId (Act id)","x-mitware-entity":"Act"},"Name":{"type":"string","description":"Public name of the act"},"PromoText":{"type":"string","description":"Public-facing promotional text for websites and lineup announcements. May be empty"},"Genres":{"type":"array","items":{"type":"string"},"description":"Genre display names in the requested language (e.g. \"Techno\", \"House\"). Empty when no genre is set"},"CityOrHome":{"type":"string","description":"City or country of origin. May be empty"},"Label":{"type":"string","description":"Label or collective affiliation (e.g. \"Stil vor Talent\"). May be empty"},"ExternalLinks":{"type":"array","items":{"$ref":"#/components/schemas/PublicTimetableExternalLink"},"description":"Public web links (social media, music profiles) with their detected platform type"},"IsAnnounced":{"type":"boolean","description":"Whether the act is publicly announced. Public keys only ever receive announced acts (always true); internal keys also receive unannounced acts with this set to false — treat those as EMBARGOED and never publish them"}}},"PublicTimetableEventInfo":{"required":["Id","Name","TimeZoneId"],"type":"object","properties":{"Id":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The event's unique ID (24-character hexadecimal) (EventData id)","x-mitware-entity":"EventData"},"Name":{"type":"string","description":"Display name of the event"},"TimeZoneId":{"type":"string","description":"IANA time zone ID of the event (e.g. \"Europe/Vienna\"). Empty when not configured — slot times are then UTC"}}},"PublicTimetableExternalLink":{"required":["Url","Type"],"type":"object","properties":{"Url":{"type":"string","description":"The full URL"},"Type":{"description":"The detected platform: Instagram, SoundCloud, Spotify, YouTube, Bandcamp, TikTok, Facebook, ResidentAdvisor, Mixcloud, or Other","$ref":"#/components/schemas/ExternalLinkType"}}},"PublicTimetableResponse":{"required":["Event","Stages","Acts","GeneratedAt"],"type":"object","properties":{"Event":{"description":"The event this timetable belongs to","$ref":"#/components/schemas/PublicTimetableEventInfo"},"Stages":{"type":"array","items":{"$ref":"#/components/schemas/PublicTimetableStage"},"description":"The publicly visible stages in display order, each with its public performance slots"},"Acts":{"type":"array","items":{"$ref":"#/components/schemas/PublicTimetableAct"},"description":"The public profiles of all announced acts referenced by at least one slot, ordered by name — an act playing several slots appears exactly once"},"GeneratedAt":{"type":"string","description":"UTC timestamp at which this response was generated (ISO 8601)","format":"date-time"}}},"PublicTimetableSlot":{"required":["Id","StartTime","EndTime","ActId","IsToBeAnnounced","CustomTitle"],"type":"object","properties":{"Id":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The slot's unique ID (24-character hexadecimal) (TimeTableSlot id)","x-mitware-entity":"TimeTableSlot"},"StartTime":{"type":"string","description":"Scheduled start, in the event's local time zone (ISO 8601 with offset)","format":"date-time"},"EndTime":{"type":"string","description":"Scheduled end, in the event's local time zone (ISO 8601 with offset)","format":"date-time"},"ActId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The performing act's ID — look it up in the response's Acts list. Null when the slot has no act yet or the act has not been publicly announced (Act id)","x-mitware-entity":"Act"},"IsToBeAnnounced":{"type":"boolean","description":"True when the act is not public yet (none assigned, or assigned but not announced) — render a \"TBA\" placeholder unless CustomTitle is set"},"CustomTitle":{"type":["null","string"],"description":"Hand-entered programme point title for slots that have no act at all (e.g. \"Poetry Slam\"). When set, render this instead of the \"TBA\" placeholder. Null for regular act slots and true TBA slots"}}},"PublicTimetableStage":{"required":["Id","Name","ColorHex","DisplayOrder","Slots"],"type":"object","properties":{"Id":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The stage's unique ID (24-character hexadecimal) (Stage id)","x-mitware-entity":"Stage"},"Name":{"type":"string","description":"Display name of the stage"},"ColorHex":{"type":"string","description":"Hex color code used for the stage's visual identity (e.g. \"#722ed1\"). May be empty"},"DisplayOrder":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"description":"Sort order of the stage (lower = first). Stages arrive pre-sorted by this value","format":"int32"},"Slots":{"type":"array","items":{"$ref":"#/components/schemas/PublicTimetableSlot"},"description":"The stage's publicly visible performance slots in chronological order"}}},"RemovePersonFromEventRequest":{"required":["PersonId","EventId"],"type":"object","properties":{"PersonId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The person to remove (Person id)","x-mitware-entity":"Person"},"EventId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The event to remove the person from (EventData id)","x-mitware-entity":"EventData"}}},"RemoveTeamMemberRequest":{"required":["TeamId","PersonId","EventId"],"type":"object","properties":{"TeamId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The team to remove the member from (Team id)","x-mitware-entity":"Team"},"PersonId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The person to remove (Person id)","x-mitware-entity":"Person"},"EventId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The event this team belongs to (EventData id)","x-mitware-entity":"EventData"}}},"RevertWikiPageRequest":{"required":["RevisionNumber"],"type":"object","properties":{"RevisionNumber":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"description":"The revision number to restore — one of the numbers returned by the revisions endpoint","format":"int32"}}},"RevokeApiKeyRequest":{"required":["ApiKeyId"],"type":"object","properties":{"ApiKeyId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The API key to revoke (ApiKey id)","x-mitware-entity":"ApiKey"}}},"RevokeApiKeyResponse":{"required":["ApiKeyId","PersonId","Label","RevokedAt"],"type":"object","properties":{"ApiKeyId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"Id of the revoked API key record (ApiKey id)","x-mitware-entity":"ApiKey"},"PersonId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The person the key authenticated as (Person id)","x-mitware-entity":"Person"},"Label":{"type":"string","description":"The label given to the key"},"RevokedAt":{"type":["null","string"],"description":"When the key was revoked (UTC, ISO 8601)","format":"date-time"}},"description":"The API key that was revoked"},"SendChatMessageRequest":{"required":["ConversationId","Content"],"type":"object","properties":{"ConversationId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The conversation to post into (ChatConversation id)","x-mitware-entity":"ChatConversation"},"Content":{"type":"string","description":"The message text"}}},"SendChatMessageResponse":{"required":["ChatMsgId","SentAtUtc"],"type":"object","properties":{"ChatMsgId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The stored message (ChatMsg id)","x-mitware-entity":"ChatMsg"},"SentAtUtc":{"type":"string","description":"When the message was stored (UTC)","format":"date-time"}},"description":"Receipt for a sent chat message"},"SendMailRequest":{"required":["PersonId","MailTemplateId","EventId"],"type":"object","properties":{"PersonId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The person to send the mail to (Person id)","x-mitware-entity":"Person"},"MailTemplateId":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"description":"ID of the mail template to use","format":"int64"},"EventId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"Event context for the mail (EventData id)","x-mitware-entity":"EventData"},"Variables":{"type":["null","object"],"additionalProperties":{"type":"string"},"description":"Optional template variable overrides"}}},"SetPersonDataRequest":{"required":["PersonId"],"type":"object","properties":{"PersonId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The person to update (Person id)","x-mitware-entity":"Person"},"FirstName":{"type":["null","string"],"description":"New first name; null = unchanged"},"LastName":{"type":["null","string"],"description":"New last name; null = unchanged"},"NickName":{"type":["null","string"],"description":"New nickname; null = unchanged"},"IsNicknameOnly":{"type":"boolean","description":"Whether the person wants to be addressed by nickname only; null = unchanged"},"Pronouns":{"type":["null","string"],"description":"New pronouns; null = unchanged"},"City":{"type":["null","string"],"description":"New city; null = unchanged"},"Email":{"type":["null","string"],"description":"New email address; null = unchanged. Must be a valid address — empty is rejected, not a way to clear it"},"Phone":{"type":["null","string"],"description":"New phone number; null = unchanged"}}},"SetPersonDataResponse":{"required":["PersonId","FirstName","LastName","NickName","IsNicknameOnly","Pronouns","City","Email","Phone"],"type":"object","properties":{"PersonId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The person that was updated (Person id)","x-mitware-entity":"Person"},"FirstName":{"type":"string","description":"First name"},"LastName":{"type":"string","description":"Last name"},"NickName":{"type":"string","description":"Nickname; empty when none"},"IsNicknameOnly":{"type":"boolean","description":"Whether the person wants to be addressed by nickname only"},"Pronouns":{"type":"string","description":"Pronouns; empty when none"},"City":{"type":"string","description":"City; empty when none"},"Email":{"type":"string","description":"Email address"},"Phone":{"type":"string","description":"Phone number; empty when none"}},"description":"A person's basic profile fields after the patch"},"SetRolePermissionBitRequest":{"required":["RoleId","PermissionName","Value"],"type":"object","properties":{"RoleId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The role to update (Role id)","x-mitware-entity":"Role"},"PermissionName":{"type":"string","description":"Dotted permission identifier from the registry, e.g. \"Team.Manage\""},"Value":{"type":"boolean","description":"Whether to grant or revoke the permission"}}},"SetRolePermissionRequest":{"required":["RoleId","PermissionName","Value"],"type":"object","properties":{"RoleId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The role to update (Role id)","x-mitware-entity":"Role"},"PermissionName":{"type":"string","description":"Name of the boolean permission property"},"Value":{"type":"boolean","description":"Whether to enable or disable the permission"}}},"SetRolePermissionResponse":{"required":["RoleId","PermissionName","IsGranted"],"type":"object","properties":{"RoleId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The role that was updated (Role id)","x-mitware-entity":"Role"},"PermissionName":{"type":"string","description":"The permission that was set, as named in the request"},"IsGranted":{"type":"boolean","description":"Whether the role now holds the permission"}},"description":"A role's grant state for one permission after the change"},"SetShiftConfirmationRequest":{"required":["ShiftId","Confirmation"],"type":"object","properties":{"ShiftId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The shift to answer; must be assigned to the calling person (Shift id)","x-mitware-entity":"Shift"},"Confirmation":{"description":"The answer to record: OnMyWay, CantMakeIt, or None to withdraw a previous answer","$ref":"#/components/schemas/ShiftConfirmation"}}},"SetShiftConfirmationResponse":{"required":["ShiftId","Confirmation","ConfirmedAt"],"type":"object","properties":{"ShiftId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The shift that was answered (Shift id)","x-mitware-entity":"Shift"},"Confirmation":{"description":"The recorded answer: OnMyWay, CantMakeIt, or None when withdrawn","$ref":"#/components/schemas/ShiftConfirmation"},"ConfirmedAt":{"type":["null","string"],"description":"When the answer was recorded (UTC, ISO 8601); null when withdrawn","format":"date-time"}},"description":"The shift's recorded answer after the change"},"SetTeamNoteStatusRequest":{"required":["TeamNoteId","Status"],"type":"object","properties":{"TeamNoteId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The team note whose status to set (TeamNote id)","x-mitware-entity":"TeamNote"},"Status":{"description":"The new kanban status: Open, InProgress, or Done","$ref":"#/components/schemas/TeamNoteStatus"}}},"SetTeamNoteStatusResponse":{"required":["TeamNoteId","Status","ModifiedAt"],"type":"object","properties":{"TeamNoteId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The team note whose status was set (TeamNote id)","x-mitware-entity":"TeamNote"},"Status":{"description":"The note's kanban status after the change: Open, InProgress, or Done","$ref":"#/components/schemas/TeamNoteStatus"},"ModifiedAt":{"type":"string","description":"When the change was recorded (UTC, ISO 8601)","format":"date-time"}},"description":"The team note's status after the change"},"SetTeamSettingRequest":{"required":["TeamId"],"type":"object","properties":{"TeamId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The team whose event-related settings to patch (Team id)","x-mitware-entity":"Team"},"EventId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The event the settings belong to; null = the tenant's default event (EventData id)","x-mitware-entity":"EventData"},"IsApplicationOpen":{"type":"boolean","description":"Whether the team is offered to applicants; null = unchanged"},"IsAdmissionOpen":{"type":"boolean","description":"Whether members may be added (applications, invite links); null = unchanged"},"AllowsShiftSwaps":{"type":"boolean","description":"Whether members may propose shift swaps; null = unchanged"},"MaxShifts":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["null","integer","string"],"description":"Maximum shifts a member may hold, 0 = no limit; null = unchanged","format":"int32"}}},"SetTeamSettingResponse":{"required":["TeamId","EventId","IsApplicationOpen","IsAdmissionOpen","AllowsShiftSwaps","MaxShifts"],"type":"object","properties":{"TeamId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The team whose settings were patched (Team id)","x-mitware-entity":"Team"},"EventId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The event the settings belong to (the tenant's default event when the request left it null) (EventData id)","x-mitware-entity":"EventData"},"IsApplicationOpen":{"type":"boolean","description":"Whether the team is offered to applicants"},"IsAdmissionOpen":{"type":"boolean","description":"Whether members may be added (applications, invite links)"},"AllowsShiftSwaps":{"type":"boolean","description":"Whether members may propose shift swaps"},"MaxShifts":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"description":"Maximum shifts a member may hold, 0 = no limit","format":"int32"}},"description":"A team's effective self-service settings for one event, after the patch"},"SetWikiPageAccessRequest":{"type":"object","properties":{"IsLocked":{"type":"boolean","description":"Whether the edit lock is enabled. Default: false","default":false},"ViewAccessScopes":{"type":["null","array"],"items":{"$ref":"#/components/schemas/WikiApiAccessScope"},"description":"View access grants. Null or empty = visible to every wiki viewer"},"EditAccessScopes":{"type":["null","array"],"items":{"$ref":"#/components/schemas/WikiApiAccessScope"},"description":"Edit access grants applied while the page is locked. Null = no scope grants"},"EditAllowedPersonIds":{"type":"array","items":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"MongoDB ObjectId — 24 hexadecimal characters"},"description":"Ids (24-char hex) of people explicitly allowed to edit the locked page. Null = none (Person id)","x-mitware-entity":"Person"}}},"ShiftConfirmation":{"enum":["None","OnMyWay","CantMakeIt"],"description":"The assigned person's own answer to an upcoming shift, given from the watch app (shift-start\nnotification or the shifts station) — \"I'm on my way\" or \"I can't make it\". Purely the\nperson's statement of intent: it does not drop the assignment, it tells the planners what to\nexpect. Actual attendance stays `Shift.CheckedInAt` / `Shift.IsNoShow`."},"SubmitTeamApplicationRequest":{"required":["PersonId","ApplicationProcessId","Values"],"type":"object","properties":{"PersonId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The applicant submitting the form (Person id)","x-mitware-entity":"Person"},"ApplicationProcessId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The process being applied to (ApplicationProcess id)","x-mitware-entity":"ApplicationProcess"},"Values":{"description":"Submitted form values keyed by field name (BSON-extended JSON object)","$ref":"#/components/schemas/JsonElement"}}},"SubmitTeamApplicationResult":{"required":["ApplicationId","PersonId","TeamId","EventId","State"],"type":"object","properties":{"ApplicationId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The new application (Application id)","x-mitware-entity":"Application"},"PersonId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The applicant (Person id)","x-mitware-entity":"Person"},"TeamId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The team applied to (Team id)","x-mitware-entity":"Team"},"EventId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The event of the application process (EventData id)","x-mitware-entity":"EventData"},"State":{"description":"Initial state of the application","$ref":"#/components/schemas/ApplicationState"}},"description":"The application that was created"},"TeamMembershipAssignment":{"required":["TeamId"],"type":"object","properties":{"TeamId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The team to add the person to (Team id)","x-mitware-entity":"Team"},"RoleIds":{"type":"array","items":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"MongoDB ObjectId — 24 hexadecimal characters"},"description":"Role IDs to assign in this team. Must be non-empty. (Role id)","x-mitware-entity":"Role"}},"description":"One target team and the roles to assign in it"},"TeamMembershipResult":{"required":["TeamName","WasTeamNewlyJoined","NewlyAddedRoleNames","AlreadyHadRoleNames"],"type":"object","properties":{"TeamName":{"description":"Name of the team","$ref":"#/components/schemas/LocalizedString"},"WasTeamNewlyJoined":{"type":"boolean","description":"True for a fresh membership, false when the person was already in the team and roles were merged in"},"NewlyAddedRoleNames":{"type":"string","description":"Role names newly assigned by this call, comma-separated; empty when none"},"AlreadyHadRoleNames":{"type":"string","description":"Role names the person already held in this team, comma-separated; empty when none"}},"description":"Outcome for one team the person was added to"},"TeamNoteStatus":{"enum":["None","Open","InProgress","Done"],"description":"Kanban column / lifecycle state of a TeamNote on the owning team's board."},"UpdateWikiPageRequest":{"type":"object","properties":{"Title":{"type":["null","string"],"description":"New title. Null keeps the current title"},"Content":{"description":"New TipTap JSON document. Null keeps the current content"},"EditSummary":{"type":["null","string"],"description":"Edit summary recorded on the revision. Null records 'Edited via API'"},"Tags":{"type":["null","array"],"items":{"type":"string"},"description":"Replacement tag set. Null keeps the current tags"},"CategoryIds":{"type":"array","items":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"MongoDB ObjectId — 24 hexadecimal characters"},"description":"Replacement wiki category ids (24-char hex). Null keeps the current categories (ItemCategory id)","x-mitware-entity":"ItemCategory"},"ViewAccessScopes":{"type":["null","array"],"items":{"$ref":"#/components/schemas/WikiApiAccessScope"},"description":"Replacement view access grants (empty list = visible to every wiki viewer). Null keeps the current scopes"},"OwnerTeam":{"oneOf":[{"type":"null"},{"description":"Reassign the owning team. Null keeps the current owner; an object with a null teamId makes the page unowned","$ref":"#/components/schemas/WikiApiOwnerTeamAssignment"}]},"ExcludedFromRag":{"type":"boolean","description":"True withholds the page from AI retrieval indexing, false re-includes it. Null keeps the current setting"}}},"WikiAccessOptionsResponse":{"required":["Teams","Roles","Events"],"type":"object","properties":{"Teams":{"type":"array","items":{"$ref":"#/components/schemas/WikiApiNamedOption"},"description":"Every team — use for a page's ownerTeamId and a scope's teamId"},"Roles":{"type":"array","items":{"$ref":"#/components/schemas/WikiApiNamedOption"},"description":"Every role — use for a scope's roleId"},"Events":{"type":"array","items":{"$ref":"#/components/schemas/WikiApiNamedOption"},"description":"Every event — use for a scope's eventId"}}},"WikiApiAccessScope":{"type":"object","properties":{"RoleId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"Required role id (24-char hex), or null for any role (Role id)","x-mitware-entity":"Role"},"TeamId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"Required team id (24-char hex), or null for any team (Team id)","x-mitware-entity":"Team"},"IncludesChildTeams":{"type":"boolean","description":"Whether TeamId also matches its child teams. Default: false","default":false},"EventId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"Required event id (24-char hex), or null for any event (EventData id)","x-mitware-entity":"EventData"}}},"WikiApiCategory":{"required":["Id","Name","ParentCategoryId","Color","Note","DisplayOrder","PageCount"],"type":"object","properties":{"Id":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The category's id (24-char hex) — use it in a page's categoryIds (ItemCategory id)","x-mitware-entity":"ItemCategory"},"Name":{"type":"string","description":"The category name"},"ParentCategoryId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"Parent category id, or null for a top-level category (ItemCategory id)","x-mitware-entity":"ItemCategory"},"Color":{"type":"string","description":"Color for the category chip; empty when uncolored"},"Note":{"type":"string","description":"Free-text note describing the category"},"DisplayOrder":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"description":"Sort position among siblings","format":"int32"},"PageCount":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"description":"How many viewable active pages are filed under this category","format":"int32"}}},"WikiApiFile":{"required":["WikiFileId","Url","FileName","MimeType","FileSizeBytes","UploadedByPersonId","UploadedAt","ReferencingPageIds"],"type":"object","properties":{"WikiFileId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The file record's id (24-char hex) (WikiFile id)","x-mitware-entity":"WikiFile"},"Url":{"type":"string","description":"The served URL — use it as an image node's src"},"FileName":{"type":"string","description":"The original file name"},"MimeType":{"type":"string","description":"The file's MIME type"},"FileSizeBytes":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"description":"The stored size in bytes","format":"int64"},"UploadedByPersonId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"Id of the person who uploaded the file (Person id)","x-mitware-entity":"Person"},"UploadedAt":{"type":"string","description":"UTC upload instant (ISO 8601)","format":"date-time"},"ReferencingPageIds":{"type":"array","items":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"MongoDB ObjectId — 24 hexadecimal characters"},"description":"Ids of the pages known to embed this file (WikiPage id)","x-mitware-entity":"WikiPage"}}},"WikiApiNamedOption":{"required":["Id","Name","ParentId"],"type":"object","properties":{"Id":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The entity's id (24-char hex)"},"Name":{"type":"string","description":"The entity's display name"},"ParentId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The parent entity's id when the entity forms a tree (teams), else null"}}},"WikiApiOwnerTeamAssignment":{"type":"object","properties":{"TeamId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The new owning team's id (24-char hex), or null to make the page unowned (Team id)","x-mitware-entity":"Team"}}},"WikiApiPage":{"required":["Slug","Title","Tags","CategoryIds","OwnerTeamId","RevisionNumber","CreatedAt","LastEditedAt","CreatedByPersonId","LastEditedByPersonId","IsArchived","ExcludedFromRag","ForwardLinkSlugs","BacklinkSlugs","IsLocked","ViewAccessScopes","EditAccessScopes","EditAllowedPersonIds","Content","PlainTextContent"],"type":"object","properties":{"Slug":{"type":"string","description":"URL-friendly unique identifier — the API's page key, also used for [[wiki-linking]]"},"Title":{"type":"string","description":"The page title"},"Tags":{"type":"array","items":{"type":"string"},"description":"Freeform tags"},"CategoryIds":{"type":"array","items":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"MongoDB ObjectId — 24 hexadecimal characters"},"description":"Ids of the wiki categories the page is filed under (ItemCategory id)","x-mitware-entity":"ItemCategory"},"OwnerTeamId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"The owning team's id, or null when the page is unowned (Team id)","x-mitware-entity":"Team"},"RevisionNumber":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"description":"The current revision number (1 = never edited since creation)","format":"int32"},"CreatedAt":{"type":"string","description":"UTC creation instant (ISO 8601)","format":"date-time"},"LastEditedAt":{"type":"string","description":"UTC instant of the latest edit (ISO 8601)","format":"date-time"},"CreatedByPersonId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"Id of the person who created the page (Person id)","x-mitware-entity":"Person"},"LastEditedByPersonId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"Id of the person who made the latest edit (Person id)","x-mitware-entity":"Person"},"IsArchived":{"type":"boolean","description":"Whether the page is archived (soft-deleted) and hidden from the wiki"},"ExcludedFromRag":{"type":"boolean","description":"Whether the page is withheld from AI retrieval indexing"},"ForwardLinkSlugs":{"type":"array","items":{"type":"string"},"description":"Slugs this page links to via [[wiki-link]]s"},"BacklinkSlugs":{"type":"array","items":{"type":"string"},"description":"Slugs of the pages that link to this page"},"IsLocked":{"type":"boolean","description":"Whether the page carries an edit lock"},"ViewAccessScopes":{"type":"array","items":{"$ref":"#/components/schemas/WikiApiAccessScope"},"description":"View access grants. Empty = visible to every wiki viewer; non-empty = the viewer must match at least one scope"},"EditAccessScopes":{"type":"array","items":{"$ref":"#/components/schemas/WikiApiAccessScope"},"description":"Edit access grants. Only meaningful while the page is locked"},"EditAllowedPersonIds":{"type":"array","items":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"MongoDB ObjectId — 24 hexadecimal characters"},"description":"Ids of the people explicitly allowed to edit the locked page (Person id)","x-mitware-entity":"Person"},"Content":{"oneOf":[{"type":"null"},{"description":"The TipTap JSON document, or null when content was not requested","$ref":"#/components/schemas/JsonElement"}]},"PlainTextContent":{"type":["null","string"],"description":"Plain text extracted from the content, or null when content was not requested"}}},"WikiApiRevision":{"required":["RevisionNumber","Title","EditedByPersonId","EditedAt","EditSummary","Content"],"type":"object","properties":{"RevisionNumber":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"description":"The revision's number","format":"int32"},"Title":{"type":"string","description":"The page title as of this revision"},"EditedByPersonId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"Id of the person whose edit produced the next revision (Person id)","x-mitware-entity":"Person"},"EditedAt":{"type":"string","description":"UTC instant the snapshot was taken (ISO 8601)","format":"date-time"},"EditSummary":{"type":"string","description":"The edit summary supplied with the overwriting edit"},"Content":{"oneOf":[{"type":"null"},{"description":"The revision's TipTap JSON document, or null when content was not requested","$ref":"#/components/schemas/JsonElement"}]}}},"WikiCategoryListResponse":{"required":["Categories"],"type":"object","properties":{"Categories":{"type":"array","items":{"$ref":"#/components/schemas/WikiApiCategory"},"description":"The wiki categories, ordered by display order then name"}}},"WikiFileListResponse":{"required":["Files"],"type":"object","properties":{"Files":{"type":"array","items":{"$ref":"#/components/schemas/WikiApiFile"},"description":"The uploaded files, newest first"}}},"WikiFileUploadResponse":{"required":["Url","WikiFileId","FileName","MimeType","FileSizeBytes"],"type":"object","properties":{"Url":{"type":"string","description":"The served URL — use this as the src attribute of an image node"},"WikiFileId":{"examples":["665f2e8a1b2c3d4e5f601234"],"maxLength":24,"minLength":24,"pattern":"^[0-9a-f]{24}$","type":"string","description":"Id of the created file record (WikiFile id)","x-mitware-entity":"WikiFile"},"FileName":{"type":"string","description":"The original file name"},"MimeType":{"type":"string","description":"The file's MIME type"},"FileSizeBytes":{"pattern":"^-?(?:0|[1-9]\\d*)$","type":["integer","string"],"description":"The stored size in bytes","format":"int64"}}},"WikiPageListResponse":{"required":["Pages","GeneratedAt"],"type":"object","properties":{"Pages":{"type":"array","items":{"$ref":"#/components/schemas/WikiApiPage"},"description":"Every active wiki page the key's account may view, ordered by slug"},"GeneratedAt":{"type":"string","description":"UTC timestamp at which this response was generated (ISO 8601)","format":"date-time"}}},"WikiRevisionListResponse":{"required":["Slug","Revisions"],"type":"object","properties":{"Slug":{"type":"string","description":"The page's slug"},"Revisions":{"type":"array","items":{"$ref":"#/components/schemas/WikiApiRevision"},"description":"The revision snapshots, newest first"}}},"WikiSchemaEntry":{"required":["Type","Description","Attributes","Example"],"type":"object","properties":{"Type":{"type":"string","description":"The value of the node's type field (or the mark's name)"},"Description":{"type":"string","description":"What the node or mark renders as"},"Attributes":{"type":"object","additionalProperties":{"type":"string"},"description":"The attributes it accepts, described in place"},"Example":{"type":"string","description":"A minimal JSON example"}}},"WikiSchemaResponse":{"required":["DocumentShape","Nodes","Marks","ThemeColorTokens","CalloutKinds","ImageAlignments","ImageRadii"],"type":"object","properties":{"DocumentShape":{"type":"string","description":"The shape of the document root every page's content must have"},"Nodes":{"type":"array","items":{"$ref":"#/components/schemas/WikiSchemaEntry"},"description":"Every renderable node type"},"Marks":{"type":"array","items":{"$ref":"#/components/schemas/WikiSchemaEntry"},"description":"Every renderable inline mark"},"ThemeColorTokens":{"type":"array","items":{"type":"string"},"description":"The allowed themeColor tokens; free hex colors are dropped by the renderer"},"CalloutKinds":{"type":"array","items":{"type":"string"},"description":"The allowed callout kinds"},"ImageAlignments":{"type":"array","items":{"type":"string"},"description":"The allowed image alignments"},"ImageRadii":{"type":"array","items":{"type":"string"},"description":"The allowed image corner treatments"}}},"WikiSearchHit":{"required":["Page","Snippet"],"type":"object","properties":{"Page":{"description":"The matching page — metadata only unless content was requested","$ref":"#/components/schemas/WikiApiPage"},"Snippet":{"type":"string","description":"Plain-text excerpt around the first body match; empty when only the title or a tag matched"}}},"WikiSearchResponse":{"required":["Query","Hits"],"type":"object","properties":{"Query":{"type":"string","description":"The search term the results were produced for"},"Hits":{"type":"array","items":{"$ref":"#/components/schemas/WikiSearchHit"},"description":"The matching pages, best matches first"}}}},"securitySchemes":{"Bearer":{"type":"http","description":"Personal or service-account API key created in the app. Send it as `Authorization: Bearer mw_…`.","scheme":"bearer","bearerFormat":"mw_…"}}},"tags":[{"name":"API key"},{"name":"Act"},{"name":"Application"},{"name":"Chat"},{"name":"Lineup"},{"name":"Person"},{"name":"Role"},{"name":"Shift"},{"name":"Team"},{"name":"Team note"},{"name":"Timetable"},{"name":"Wiki"}]}