{
  "openapi": "3.1.1",
  "info": {
    "title": "Trax.Platform.Api | v1",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.nfocus.solutions/"
    }
  ],
  "paths": {
    "/v1/template-images/{id}": {
      "get": {
        "tags": [
          "Website"
        ],
        "summary": "A template's thumbnail, by its unguessable id",
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "GetTemplateImage",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/template-preview": {
      "get": {
        "tags": [
          "Website"
        ],
        "summary": "A template version's sample content as a website, from an admin preview link (no-store, noindex)",
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "GetTemplatePreview",
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicWebsiteDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sites/by-domain": {
      "get": {
        "tags": [
          "Website"
        ],
        "summary": "Which portal an nFocus site's domain serves (the public portal's routing, and the TLS \"ask\" check: 200 means issue a certificate)",
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "FindSiteByDomain",
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteByDomainDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/internal/v1/accounts/register-and-reset": {
      "post": {
        "tags": [
          "Internal"
        ],
        "summary": "Email a set-password link to an approved family login (staff approval flow)",
        "description": "**Access:** Service client.\n\nAlways 202 for a known portal, whether or not an email was sent (no account enumeration).",
        "operationId": "RegisterAndReset",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterAndResetRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Accepted"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "service": [
              "trax.internal"
            ]
          }
        ]
      }
    },
    "/internal/v1/ops/status": {
      "get": {
        "tags": [
          "Internal"
        ],
        "summary": "The worker's queues and jobs",
        "description": "**Access:** Service client.\n\nEach worker queue's backlog, its oldest waiting item, how many items are overdue (waiting longer than\n`Operations:OverdueAfter`, 15 minutes by default), failing (failed `Operations:FailuresBeforeAlarm` times or\nmore, 3 by default) and failed for good. Each job's last pass, last success, consecutive failures and\nwhether it has stalled. Counts and times only. `alarms` lists what the worker's monitor alarms on now; the\nrunbook says what to do about each.",
        "operationId": "GetOperationsStatus",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperationsStatusDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "service": [
              "trax.internal"
            ]
          }
        ]
      }
    },
    "/internal/v1/reconciliation": {
      "get": {
        "tags": [
          "Internal"
        ],
        "summary": "The API's card payments at a finance root, with their keys in every system",
        "description": "**Access:** Service client.\n\nFor nFocus finance. Lists the card payments this API took for one client database (`databaseId`, legacy's\nclient id) at one finance root (`financeRootId`) whose checkout completed on the finance root's local dates\n`from` through `to` (at most 93 days). Each payment carries its keys in every\nsystem: the Braintree transaction id and settlement state (the checkout order), `mt.Payment` and its receipt\nnumber, the card payment's `mt.Transaction`, the `olr.Braintree` log row `olr.BraintreePayment` links it to,\nand `mt.RegistrationTransaction` in the master database with its fee columns.\n\n`flags` lists what needs a look: `payment-missing`, `log-link-missing`, `registration-transaction-missing`,\n`gateway-id-mismatch` (the Braintree id differs between those places), `amount-mismatch`,\n`allocations-mismatch` (the allocations don't add up to the payment), `settlement-failed` (the worker\ngave up settling: Trax records a payment Braintree never collected) and `staff-cancel` (match it with the\nrefund made in Braintree). Matching against Braintree's settlement records is finance's step, with\nBraintree's export and these ids.\n\n`format=csv` answers the same rows as a CSV file (money in dollars, times in UTC).",
        "operationId": "GetReconciliation",
        "parameters": [
          {
            "name": "databaseId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "financeRootId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReconciliationReportDto"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "service": [
              "trax.internal"
            ]
          }
        ]
      }
    },
    "/health": {
      "get": {
        "tags": [
          "Health"
        ],
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "GetHealth",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HealthResponse"
                }
              }
            }
          }
        }
      }
    },
    "/health/ready": {
      "get": {
        "tags": [
          "Health"
        ],
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "GetReadiness",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/manage/me": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "The signed-in staff user, the sites they can manage (role, where it comes from, provider, template, status) and their organization roles",
        "description": "**Access:** Organization staff.",
        "operationId": "GetStaffMe",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StaffMeResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/reports": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "The reports you may run, with your scopes and each report's groupings",
        "description": "**Access:** Organization staff.",
        "operationId": "ListManageReports",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportListDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/reports/{reportKey}": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "Run a report on a site or an organization where you have report access",
        "description": "**Access:** Organization staff.\n\n`scope` is `site:{siteId}` or `organization:{clientToken}/{organizationId}` in the organization site, and\n`client:{databaseId}`, `portal:{databaseId}/{orgId}` or `all` in the admin app. `from` and `to` are dates in the\nscope's time zone, both included (at most 400 days; 92 when grouped by day); a snapshot of now (outstanding\nbalances, waitlists, platform adoption) takes neither. `groupBy` is one of the report's groupings (`GET …/reports`\nlists them). `detail=true` answers the rows that name people, where a report has them (outstanding balances: one\nper account; waitlists: one per waitlisted participant), in the organization site only. The answer has `columns`\n(key, label and type: `integer`, `money` in cents, `date`, `month`, `text`, `percent`), a page of `rows` keyed by\ncolumn, `totals` over every row, and `notes`.\n`Accept: text/csv` answers every row as a CSV file (at most 50,000). A report too large to answer in 20 seconds or\n50,000 rows is refused with `422 report-too-large`.",
        "operationId": "RunManageReport",
        "parameters": [
          {
            "name": "reportKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "scope",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "groupBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "detail",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportResultDto"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "A site: portal, status, origins, key prefixes and your role",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "GetManagedSite",
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteDetailDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/settings": {
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Organization choices: authorsPublishNotices lets Authors publish announcements and alerts without an Editor",
        "description": "**Access:** Organization staff with the Site Admin role or above on the site.",
        "operationId": "UpdateSiteSettings",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SiteSettingsUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteDetailDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/users": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "Staff with a role on the site, and pending invitations",
        "description": "**Access:** Organization staff with the Site Admin role or above on the site.",
        "operationId": "ListSiteUsers",
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SiteUserDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Give an email a role on the site (they sign in with their own Trax staff account)",
        "description": "**Access:** Organization staff with the Site Admin role or above on the site.",
        "operationId": "InviteSiteUser",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InviteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteUserDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/users/{userRoleId}": {
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Change someone's role (a site always keeps one Site Admin)",
        "description": "**Access:** Organization staff with the Site Admin role or above on the site.",
        "operationId": "ChangeSiteUserRole",
        "parameters": [
          {
            "name": "userRoleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangeRoleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Organization site"
        ],
        "summary": "Remove someone's role (a site always keeps one Site Admin)",
        "description": "**Access:** Organization staff with the Site Admin role or above on the site.",
        "operationId": "RemoveSiteUser",
        "parameters": [
          {
            "name": "userRoleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/audit": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "Who changed what on the site, newest first",
        "description": "**Access:** Organization staff with the Site Admin role or above on the site.",
        "operationId": "ListSiteAudit",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageDtoOfAuditEventDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/report-grants": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "People who may run this site's reports without a website role (Site Admins and Organization Admins may anyway)",
        "description": "**Access:** Organization staff with the Site Admin role or above on the site.",
        "operationId": "ListSiteReportGrants",
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ReportGrantDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Let an email run this site's reports, and nothing else",
        "description": "**Access:** Organization staff with the Site Admin role or above on the site.",
        "operationId": "GrantSiteReportAccess",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SiteReportGrantRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportGrantDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/report-grants/{reportGrantId}": {
      "delete": {
        "tags": [
          "Organization site"
        ],
        "summary": "Remove a report grant on this site",
        "description": "**Access:** Organization staff with the Site Admin role or above on the site.",
        "operationId": "RemoveSiteReportGrant",
        "parameters": [
          {
            "name": "reportGrantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/profile": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "The website profile: each field's Trax value, the site's override and what the website shows",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "GetSiteProfile",
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfileDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Replace the profile overrides (empty = show the Trax value). If-Match required once the profile exists",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "UpdateSiteProfile",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProfileUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfileDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/locations": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "The site's locations, in display order",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "ListSiteLocations",
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LocationDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Add a location",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "CreateSiteLocation",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LocationUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LocationDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/locations/{id}": {
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Change a location (If-Match)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "UpdateSiteLocation",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LocationUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LocationDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Organization site"
        ],
        "summary": "Remove a location (If-Match)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "DeleteSiteLocation",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/locations/order": {
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Set the display order (every location id, once)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "OrderSiteLocations",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/staff": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "The staff directory, in display order",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "ListSiteStaff",
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/StaffProfileDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Add a person to the staff directory",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "CreateSiteStaff",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StaffProfileUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StaffProfileDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/staff/{id}": {
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Change a staff profile (If-Match)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "UpdateSiteStaff",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StaffProfileUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StaffProfileDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Organization site"
        ],
        "summary": "Remove a staff profile (If-Match)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "DeleteSiteStaff",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/staff/order": {
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Set the display order (every staff profile id, once)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "OrderSiteStaff",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/posts": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "Posts, newest first (filter by kind, state, text)",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "ListSitePosts",
        "parameters": [
          {
            "name": "kind",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 25
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageDtoOfPostSummaryDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Start a post (always a draft)",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "CreateSitePost",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/posts/{id}": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "One post, with its ETag",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "GetSitePost",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Change a post's content (If-Match). Authors can change drafts only",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "UpdateSitePost",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Organization site"
        ],
        "summary": "Delete a post and its revisions (If-Match)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "DeleteSitePost",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/posts/{id}/publish": {
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Publish now, or schedule with publishUtc; optionally take it down at unpublishUtc",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "PublishSitePost",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublishRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/posts/{id}/unpublish": {
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Back to draft (off the website)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "UnpublishSitePost",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/posts/{id}/archive": {
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Archive (off the website, kept)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "ArchiveSitePost",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/posts/{id}/revisions": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "Saved versions, newest first",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "ListSitePostRevisions",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RevisionSummaryDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/posts/{id}/revisions/{version}": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "One saved version's content",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "GetSitePostRevision",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostSnapshot"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/posts/{id}/preview-link": {
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "A link that shows this post on the public API as it is now, for one hour, even if it isn't published",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "CreateSitePostPreviewLink",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PreviewLinkDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/announcements": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "Announcements, newest start first",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "ListSiteAnnouncements",
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AnnouncementDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Add an announcement",
        "description": "**Access:** Organization staff with the Editor role or above on the site (Author or above where the site lets Authors publish announcements and alerts).",
        "operationId": "CreateSiteAnnouncement",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AnnouncementUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnnouncementDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/announcements/{id}": {
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Change an announcement (If-Match)",
        "description": "**Access:** Organization staff with the Editor role or above on the site (Author or above where the site lets Authors publish announcements and alerts).",
        "operationId": "UpdateSiteAnnouncement",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AnnouncementUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnnouncementDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Organization site"
        ],
        "summary": "Remove an announcement (If-Match)",
        "description": "**Access:** Organization staff with the Editor role or above on the site (Author or above where the site lets Authors publish announcements and alerts).",
        "operationId": "DeleteSiteAnnouncement",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/alerts": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "Alerts, newest start first",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "ListSiteAlerts",
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AlertDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Add an alert",
        "description": "**Access:** Organization staff with the Editor role or above on the site (Author or above where the site lets Authors publish announcements and alerts).",
        "operationId": "CreateSiteAlert",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AlertUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AlertDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/alerts/{id}": {
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Change an alert (If-Match)",
        "description": "**Access:** Organization staff with the Editor role or above on the site (Author or above where the site lets Authors publish announcements and alerts).",
        "operationId": "UpdateSiteAlert",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AlertUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AlertDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Organization site"
        ],
        "summary": "Remove an alert (If-Match)",
        "description": "**Access:** Organization staff with the Editor role or above on the site (Author or above where the site lets Authors publish announcements and alerts).",
        "operationId": "DeleteSiteAlert",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/media": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "The site's images, newest first",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "ListSiteMedia",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageDtoOfMediaDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Upload an image (multipart: file, altText). JPEG, PNG or WebP, up to 5 MB",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "UploadSiteMedia",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/IFormFile"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "413": {
            "description": "Payload Too Large",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/media/{id}": {
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Change an image's alt text",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "UpdateSiteMediaAltText",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MediaAltUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Organization site"
        ],
        "summary": "Delete an image that no profile, staff photo or post hero uses",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "DeleteSiteMedia",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/domains": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "An nFocus site's addresses: its portal path and its domains, with each domain's state",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "ListSiteDomains",
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteAddressesDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Add a platform address or the organization's own domain (checked at once; active when its TXT record proves ownership and it points at the platform)",
        "description": "**Access:** Organization staff with the Site Admin role or above on the site.",
        "operationId": "AddSiteDomain",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddDomainRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteDomainDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/domains/{domainId}/check": {
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Check now whether a domain's TXT record proves ownership and it points at the platform's front end",
        "description": "**Access:** Organization staff with the Site Admin role or above on the site.",
        "operationId": "CheckSiteDomain",
        "parameters": [
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteDomainDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/domains/{domainId}/primary": {
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Make an active domain the primary address (the others redirect to it)",
        "description": "**Access:** Organization staff with the Site Admin role or above on the site.",
        "operationId": "SetPrimarySiteDomain",
        "parameters": [
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteAddressesDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/domains/{domainId}": {
      "delete": {
        "tags": [
          "Organization site"
        ],
        "summary": "Remove a domain: it stops being an origin and a sign-in redirect at once",
        "description": "**Access:** Organization staff with the Site Admin role or above on the site.",
        "operationId": "RemoveSiteDomain",
        "parameters": [
          {
            "name": "domainId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/templates": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "The templates this site can use: Duda's for a Duda site, the platform's for an nFocus site",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "ListSiteTemplates",
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteTemplatesDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/website": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "An nFocus site's website: the draft (with its schema, what blocks publishing and what the template doesn't show) and what is published",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "GetSiteWebsite",
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteWebsiteDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/website/draft": {
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Save the draft's content and branding (If-Match). Checks types, limits and colour contrast; may be incomplete",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "SaveSiteWebsiteDraft",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebsiteDraftUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteWebsiteDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "428": {
            "description": "Precondition Required",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/website/draft/template": {
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Move the draft to another template or a newer version (If-Match once a draft exists). Content is kept; the answer lists what isn't shown",
        "description": "**Access:** Organization staff with the Site Admin role or above on the site.",
        "operationId": "ChooseSiteWebsiteTemplate",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebsiteTemplateChoice"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteWebsiteDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/website/publish": {
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Publish the draft (If-Match): every required field, references to published content. A template change needs a Site Admin",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "PublishSiteWebsite",
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteWebsiteDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/website/revisions": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "Each publish, newest first",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "ListSiteWebsiteRevisions",
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WebsiteRevisionDto"
                  }
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/website/preview-link": {
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "A link that shows the draft on the public read (GET P/website) for one hour",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "CreateSiteWebsitePreviewLink",
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PreviewLinkDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/service-categories": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "The site's servicecategories, drafts included, in display order",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "ListSiteServiceCategories",
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ServiceCategoryDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Add a servicecategory (always a draft)",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "CreateSiteServiceCategory",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ServiceCategoryUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceCategoryDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/service-categories/{id}": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "One servicecategory, with its ETag",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "GetSiteServiceCategory",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceCategoryDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Change a servicecategory (If-Match). Authors change drafts only",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "UpdateSiteServiceCategory",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ServiceCategoryUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceCategoryDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Organization site"
        ],
        "summary": "Delete a servicecategory (If-Match)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "DeleteSiteServiceCategory",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/service-categories/{id}/publish": {
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Publish a servicecategory: it shows on the website",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "PublishSiteServiceCategory",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceCategoryDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/service-categories/{id}/unpublish": {
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Back to a draft: off the website (a page that showed it drops it)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "UnpublishSiteServiceCategory",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceCategoryDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/service-categories/order": {
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Set the display order (every servicecategory id, once)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "OrderSiteServiceCategories",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/services": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "The site's services, drafts included, in display order",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "ListSiteServices",
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ServiceDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Add a service (always a draft)",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "CreateSiteService",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ServiceUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/services/{id}": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "One service, with its ETag",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "GetSiteService",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Change a service (If-Match). Authors change drafts only",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "UpdateSiteService",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ServiceUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Organization site"
        ],
        "summary": "Delete a service (If-Match)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "DeleteSiteService",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/services/{id}/publish": {
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Publish a service: it shows on the website",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "PublishSiteService",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/services/{id}/unpublish": {
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Back to a draft: off the website (a page that showed it drops it)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "UnpublishSiteService",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/services/order": {
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Set the display order (every service id, once)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "OrderSiteServices",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/schedules": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "The site's scheduleentries, drafts included, in display order",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "ListSiteScheduleEntries",
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ScheduleEntryDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Add a scheduleentry (always a draft)",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "CreateSiteScheduleEntry",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScheduleEntryUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScheduleEntryDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/schedules/{id}": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "One scheduleentry, with its ETag",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "GetSiteScheduleEntry",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScheduleEntryDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Change a scheduleentry (If-Match). Authors change drafts only",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "UpdateSiteScheduleEntry",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScheduleEntryUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScheduleEntryDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Organization site"
        ],
        "summary": "Delete a scheduleentry (If-Match)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "DeleteSiteScheduleEntry",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/schedules/{id}/publish": {
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Publish a scheduleentry: it shows on the website",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "PublishSiteScheduleEntry",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScheduleEntryDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/schedules/{id}/unpublish": {
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Back to a draft: off the website (a page that showed it drops it)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "UnpublishSiteScheduleEntry",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScheduleEntryDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/schedules/order": {
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Set the display order (every scheduleentry id, once)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "OrderSiteScheduleEntries",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/content/impact-numbers": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "The site's impactnumbers, drafts included, in display order",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "ListSiteImpactNumbers",
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ImpactNumberDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Add a impactnumber (always a draft)",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "CreateSiteImpactNumber",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImpactNumberUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImpactNumberDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/content/impact-numbers/{id}": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "One impactnumber, with its ETag",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "GetSiteImpactNumber",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImpactNumberDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Change a impactnumber (If-Match). Authors change drafts only",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "UpdateSiteImpactNumber",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImpactNumberUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImpactNumberDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Organization site"
        ],
        "summary": "Delete a impactnumber (If-Match)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "DeleteSiteImpactNumber",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/content/impact-numbers/{id}/publish": {
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Publish a impactnumber: it shows on the website",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "PublishSiteImpactNumber",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImpactNumberDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/content/impact-numbers/{id}/unpublish": {
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Back to a draft: off the website (a page that showed it drops it)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "UnpublishSiteImpactNumber",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImpactNumberDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/content/impact-numbers/order": {
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Set the display order (every impactnumber id, once)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "OrderSiteImpactNumbers",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/content/outcomes": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "The site's outcomes, drafts included, in display order",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "ListSiteOutcomes",
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OutcomeDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Add a outcome (always a draft)",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "CreateSiteOutcome",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OutcomeUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutcomeDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/content/outcomes/{id}": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "One outcome, with its ETag",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "GetSiteOutcome",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutcomeDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Change a outcome (If-Match). Authors change drafts only",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "UpdateSiteOutcome",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OutcomeUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutcomeDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Organization site"
        ],
        "summary": "Delete a outcome (If-Match)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "DeleteSiteOutcome",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/content/outcomes/{id}/publish": {
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Publish a outcome: it shows on the website",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "PublishSiteOutcome",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutcomeDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/content/outcomes/{id}/unpublish": {
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Back to a draft: off the website (a page that showed it drops it)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "UnpublishSiteOutcome",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutcomeDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/content/outcomes/order": {
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Set the display order (every outcome id, once)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "OrderSiteOutcomes",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/content/quotes": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "The site's quotes, drafts included, in display order",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "ListSiteQuotes",
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/QuoteDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Add a quote (always a draft)",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "CreateSiteQuote",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QuoteUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuoteDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/content/quotes/{id}": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "One quote, with its ETag",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "GetSiteQuote",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuoteDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Change a quote (If-Match). Authors change drafts only",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "UpdateSiteQuote",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QuoteUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuoteDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Organization site"
        ],
        "summary": "Delete a quote (If-Match)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "DeleteSiteQuote",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/content/quotes/{id}/publish": {
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Publish a quote: it shows on the website",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "PublishSiteQuote",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuoteDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/content/quotes/{id}/unpublish": {
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Back to a draft: off the website (a page that showed it drops it)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "UnpublishSiteQuote",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuoteDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/content/quotes/order": {
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Set the display order (every quote id, once)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "OrderSiteQuotes",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/content/values": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "The site's values, drafts included, in display order",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "ListSiteValues",
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ValueDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Add a value (always a draft)",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "CreateSiteValue",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValueUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValueDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/content/values/{id}": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "One value, with its ETag",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "GetSiteValue",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValueDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Change a value (If-Match). Authors change drafts only",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "UpdateSiteValue",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValueUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValueDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Organization site"
        ],
        "summary": "Delete a value (If-Match)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "DeleteSiteValue",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/content/values/{id}/publish": {
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Publish a value: it shows on the website",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "PublishSiteValue",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValueDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/content/values/{id}/unpublish": {
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Back to a draft: off the website (a page that showed it drops it)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "UnpublishSiteValue",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValueDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/content/values/order": {
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Set the display order (every value id, once)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "OrderSiteValues",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/content/pathways": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "The site's pathways, drafts included, in display order",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "ListSitePathways",
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PathwayDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Add a pathway (always a draft)",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "CreateSitePathway",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PathwayUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PathwayDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/content/pathways/{id}": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "One pathway, with its ETag",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "GetSitePathway",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PathwayDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Change a pathway (If-Match). Authors change drafts only",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "UpdateSitePathway",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PathwayUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PathwayDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Organization site"
        ],
        "summary": "Delete a pathway (If-Match)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "DeleteSitePathway",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/content/pathways/{id}/publish": {
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Publish a pathway: it shows on the website",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "PublishSitePathway",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PathwayDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/content/pathways/{id}/unpublish": {
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Back to a draft: off the website (a page that showed it drops it)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "UnpublishSitePathway",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PathwayDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/content/pathways/order": {
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Set the display order (every pathway id, once)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "OrderSitePathways",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/sponsorships": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "The site's sponsorships, drafts included, in display order",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "ListSiteSponsorships",
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SponsorshipDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Add a sponsorship (always a draft)",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "CreateSiteSponsorship",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SponsorshipUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SponsorshipDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/sponsorships/{id}": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "One sponsorship, with its ETag",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "GetSiteSponsorship",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SponsorshipDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Change a sponsorship (If-Match). Authors change drafts only",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "UpdateSiteSponsorship",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SponsorshipUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SponsorshipDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Organization site"
        ],
        "summary": "Delete a sponsorship (If-Match)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "DeleteSiteSponsorship",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/sponsorships/{id}/publish": {
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Publish a sponsorship: it shows on the website",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "PublishSiteSponsorship",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SponsorshipDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/sponsorships/{id}/unpublish": {
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Back to a draft: off the website (a page that showed it drops it)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "UnpublishSiteSponsorship",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SponsorshipDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/sponsorships/order": {
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Set the display order (every sponsorship id, once)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "OrderSiteSponsorships",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/videos": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "The site's videos, drafts included, in display order",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "ListSiteVideos",
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/VideoDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Add a video (always a draft)",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "CreateSiteVideo",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VideoUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VideoDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/videos/{id}": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "One video, with its ETag",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "GetSiteVideo",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VideoDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Change a video (If-Match). Authors change drafts only",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "UpdateSiteVideo",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VideoUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VideoDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Organization site"
        ],
        "summary": "Delete a video (If-Match)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "DeleteSiteVideo",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/videos/{id}/publish": {
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Publish a video: it shows on the website",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "PublishSiteVideo",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VideoDto"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/videos/{id}/unpublish": {
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Back to a draft: off the website (a page that showed it drops it)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "UnpublishSiteVideo",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VideoDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/videos/order": {
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Set the display order (every video id, once)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "OrderSiteVideos",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/contacts": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "The site's contacts, drafts included, in display order",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "ListSiteContacts",
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContactDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Add a contact (always a draft)",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "CreateSiteContact",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/contacts/{id}": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "One contact, with its ETag",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "GetSiteContact",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Change a contact (If-Match). Authors change drafts only",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "UpdateSiteContact",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Organization site"
        ],
        "summary": "Delete a contact (If-Match)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "DeleteSiteContact",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/contacts/{id}/publish": {
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Publish a contact: it shows on the website",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "PublishSiteContact",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/contacts/{id}/unpublish": {
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Back to a draft: off the website (a page that showed it drops it)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "UnpublishSiteContact",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/contacts/order": {
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Set the display order (every contact id, once)",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "OrderSiteContacts",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/registration-settings": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "The portal's registration settings: value, default, where the value comes from, allowed range, and whether you can change it",
        "description": "**Access:** Organization staff with the Site Admin role or above on the site.",
        "operationId": "GetRegistrationSettings",
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegistrationSettingsDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Change registration settings by key (null goes back to the client's value or the default); applies within a minute",
        "description": "**Access:** Organization staff with the Site Admin role or above on the site.",
        "operationId": "UpdateRegistrationSettings",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegistrationSettingsUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegistrationSettingsDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/capabilities": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "The site's capabilities: nFocus's decision, the choices here and above, locks, the effective value and whether you can change it",
        "description": "**Access:** Organization staff with the Site Admin role or above on the site.",
        "operationId": "GetSiteCapabilities",
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CapabilitiesDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Turn capabilities on or off for this site (null removes the site's own choice)",
        "description": "**Access:** Organization staff with the Site Admin role or above on the site.",
        "operationId": "UpdateSiteCapabilities",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CapabilitiesUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CapabilitiesDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/logs": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "The troubleshooting log for this site and its portal, newest first",
        "description": "**Access:** Organization staff with the Site Admin role or above on the site.\n\nYour sites' and portals' events in the last 90 days, newest first, of the kinds organizations see: `request-error`,\n`refusal` (not rate limits), `sign-in-failed` and `locked-out` (counts and times, never who), `email-failed` (the\ntemplate, never the address), `duda-sync-failed`, `checkout-recovery` (with the order id) and `domain-check`.\n`includeChanges=true` adds your audit trail as kind `change`. Every search is recorded in the audit trail with its\nfilters.",
        "operationId": "ListSiteLogs",
        "parameters": [
          {
            "name": "kind",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "severity",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "code",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "traceId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "includeChanges",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageDtoOfLogEventDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/duda": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "The site's Duda state: template, domain, published, sync",
        "description": "**Access:** Organization staff with the Author role or above on the site.",
        "operationId": "GetSiteDudaStatus",
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DudaStatusDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/template": {
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Switch to another template (confirm: true). Edits made in the Duda editor can be lost",
        "description": "**Access:** Organization staff with the Site Admin role or above on the site.",
        "operationId": "SwitchSiteTemplate",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemplateSwitch"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DudaStatusDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/template-lock": {
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "nFocus support: lock or unlock the template",
        "description": "**Access:** Organization staff with the Site Admin role or above on the site.",
        "operationId": "LockSiteTemplate",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemplateLock"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DudaStatusDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/domain": {
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Use a traxregistration.com address, the organization's own domain, or only Duda's address",
        "description": "**Access:** Organization staff with the Site Admin role or above on the site.",
        "operationId": "ChangeSiteDomain",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DomainUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DudaStatusDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/duda/collections": {
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Point the site's trax_* Duda collections at its own feeds again (after a designer adds one to the template)",
        "description": "**Access:** Organization staff with the Site Admin role or above on the site.",
        "operationId": "ConnectSiteCollections",
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CollectionConnection"
                  }
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites/{siteId}/publish": {
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Write the profile to the Duda Content Library now, and to the live site if it is published",
        "description": "**Access:** Organization staff with the Editor role or above on the site.",
        "operationId": "PublishSiteContentLibrary",
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublishResultDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/organizations/{clientToken}/{organizationId}": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "An organization: your role, and every organization below it with its portal and website",
        "description": "**Access:** Organization staff.",
        "operationId": "GetManagedOrganization",
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationDetailDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/organizations/{clientToken}/{organizationId}/roles": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "Organization roles on this organization and below it (siteAdmin on an organization is an Organization Admin)",
        "description": "**Access:** Organization staff.",
        "operationId": "ListOrganizationRoles",
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OrganizationRoleDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Give an email a role on this organization or one below it (every site at or below it, sites added later included)",
        "description": "**Access:** Organization staff.",
        "operationId": "GrantOrganizationRole",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrganizationRoleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationRoleDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/organizations/{clientToken}/{organizationId}/roles/{orgRoleId}": {
      "delete": {
        "tags": [
          "Organization site"
        ],
        "summary": "Remove an organization role at or below this organization (another Organization Admin on your own organization: nFocus or an Organization Admin above)",
        "description": "**Access:** Organization staff.",
        "operationId": "RemoveOrganizationRole",
        "parameters": [
          {
            "name": "orgRoleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/organizations/{clientToken}/{organizationId}/report-grants": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "Report grants on this organization, the organizations below it and their sites",
        "description": "**Access:** Organization staff.",
        "operationId": "ListOrganizationReportGrants",
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ReportGrantDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Let an email run reports (and nothing else) on an organization at or below this one, or on one of their sites",
        "description": "**Access:** Organization staff.",
        "operationId": "GrantOrganizationReportAccess",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReportGrantRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportGrantDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/organizations/{clientToken}/{organizationId}/report-grants/{reportGrantId}": {
      "delete": {
        "tags": [
          "Organization site"
        ],
        "summary": "Remove a report grant at or below this organization",
        "description": "**Access:** Organization staff.",
        "operationId": "RemoveOrganizationReportGrant",
        "parameters": [
          {
            "name": "reportGrantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/organizations/{clientToken}/{organizationId}/defaults": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "What new sites below this organization start from (template, branding) and the locks, its own and inherited",
        "description": "**Access:** Organization staff.",
        "operationId": "GetOrganizationDefaults",
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationDefaultsDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Replace this organization's defaults for new sites and its locks (If-Match once it has some)",
        "description": "**Access:** Organization staff.",
        "operationId": "SaveOrganizationDefaults",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrganizationDefaultsUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationDefaultsDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "428": {
            "description": "Precondition Required",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Organization site"
        ],
        "summary": "Remove this organization's own defaults and locks (If-Match)",
        "description": "**Access:** Organization staff.",
        "operationId": "ClearOrganizationDefaults",
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/organizations/{clientToken}/{organizationId}/sites": {
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "Set up an nFocus site for a portal at or below this organization (?dryRun=true answers the plan and writes nothing)",
        "description": "**Access:** Organization staff.",
        "operationId": "OnboardOrganizationSite",
        "parameters": [
          {
            "name": "dryRun",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrganizationOnboardRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardedSiteDto"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingPlanDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/organizations/{clientToken}/{organizationId}/audit": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "Changes to this organization, the organizations below it and every site below it, newest first",
        "description": "**Access:** Organization staff.",
        "operationId": "ListOrganizationAudit",
        "parameters": [
          {
            "name": "siteId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "actor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageDtoOfAuditEventDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/organizations/{clientToken}/{organizationId}/capabilities": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "This organization's capabilities for the sites at and below it: nFocus's decision, the choices here and above, and locks",
        "description": "**Access:** Organization staff.",
        "operationId": "GetOrganizationCapabilities",
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CapabilitiesDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "Organization site"
        ],
        "summary": "Turn capabilities on or off for every site at and below this organization, and lock choices for those below",
        "description": "**Access:** Organization staff.",
        "operationId": "UpdateOrganizationCapabilities",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CapabilitiesUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CapabilitiesDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/organizations/{clientToken}/{organizationId}/logs": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "The troubleshooting log for every portal and site at or below this organization, newest first",
        "description": "**Access:** Organization staff.\n\nYour sites' and portals' events in the last 90 days, newest first, of the kinds organizations see: `request-error`,\n`refusal` (not rate limits), `sign-in-failed` and `locked-out` (counts and times, never who), `email-failed` (the\ntemplate, never the address), `duda-sync-failed`, `checkout-recovery` (with the order id) and `domain-check`.\n`includeChanges=true` adds your audit trail as kind `change`. Every search is recorded in the audit trail with its\nfilters.",
        "operationId": "ListOrganizationLogs",
        "parameters": [
          {
            "name": "orgId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "siteId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "kind",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "severity",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "code",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "traceId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "includeChanges",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageDtoOfLogEventDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/templates": {
      "get": {
        "tags": [
          "Organization site"
        ],
        "summary": "Templates a site can be created from or switched to",
        "description": "**Access:** Organization staff.",
        "operationId": "ListWebsiteTemplates",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TemplateDto"
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/manage/sites": {
      "post": {
        "tags": [
          "Organization site"
        ],
        "summary": "nFocus support: create (or connect) a portal's Duda website. The keys are shown once",
        "description": "**Access:** Organization staff.",
        "operationId": "ProvisionSite",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProvisionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProvisionedSiteDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "staff": [ ]
          }
        ]
      }
    },
    "/v1/admin/sites": {
      "post": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "Set up a portal's website: an nFocus site (template content, domains) or a Duda website (phase 3's provisioning). ?dryRun=true answers the plan and writes nothing",
        "description": "**Access:** nFocus admin, full role. Audited.",
        "operationId": "OnboardSite",
        "parameters": [
          {
            "name": "dryRun",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OnboardSiteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminSiteDto"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingPlanDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      },
      "get": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "Sites, filtered by client, provider, status or a search of name and tokens",
        "description": "**Access:** nFocus admin (the read-only role is enough). Audited.",
        "operationId": "ListAdminSites",
        "parameters": [
          {
            "name": "databaseId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "provider",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageDtoOfAdminSiteSummaryDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/sites/{siteId}/provider": {
      "put": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "Move a site between Duda and an nFocus site (confirm: true). Content stays; nothing is deleted in Duda",
        "description": "**Access:** nFocus admin, full role. Audited.",
        "operationId": "SwitchSiteProvider",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProviderSwitchRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminSiteDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/audit": {
      "get": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "Every admin call, reads included, newest first (filter by actor, site, client and date)",
        "description": "**Access:** nFocus admin (the read-only role is enough). Audited.",
        "operationId": "ListAdminAudit",
        "parameters": [
          {
            "name": "actor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "siteId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "databaseId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageDtoOfAdminAuditEventDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/org-roles": {
      "get": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "Organization roles, filtered by client, organization or email",
        "description": "**Access:** nFocus admin (the read-only role is enough). Audited.",
        "operationId": "ListOrgRoles",
        "parameters": [
          {
            "name": "databaseId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "organizationId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "email",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageDtoOfAdminOrgRoleDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "Give an email a role on every site at or below a Trax organization of one client (sites added later included)",
        "description": "**Access:** nFocus admin, full role. Audited.",
        "operationId": "GrantOrgRole",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GrantOrgRoleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminOrgRoleDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/org-roles/{orgRoleId}": {
      "delete": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "Remove an organization role (roles on the sites themselves stay)",
        "description": "**Access:** nFocus admin, full role. Audited.",
        "operationId": "RemoveOrgRole",
        "parameters": [
          {
            "name": "orgRoleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/clients": {
      "get": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "Every client the tenant directory lists, with how many portals each has (unavailable when its database can't be read)",
        "description": "**Access:** nFocus admin (the read-only role is enough). Audited.",
        "operationId": "ListAdminClients",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AdminClientDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/clients/{databaseId}": {
      "get": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "A client and its portals: rollout status and website",
        "description": "**Access:** nFocus admin (the read-only role is enough). Audited.",
        "operationId": "GetAdminClient",
        "parameters": [
          {
            "name": "databaseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminClientDetailDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/clients/{databaseId}/portals/{orgId}/status": {
      "put": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "Record a portal's rollout status: legacy, pilot or live (information only; the proxy decides where families go)",
        "description": "**Access:** nFocus admin, full role. Audited.",
        "operationId": "SetPortalRollout",
        "parameters": [
          {
            "name": "databaseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RolloutUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminRolloutDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/clients/{databaseId}/settings": {
      "get": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "The client's own settings: every portal's fallback",
        "description": "**Access:** nFocus admin (the read-only role is enough). Audited.",
        "operationId": "GetClientSettings",
        "parameters": [
          {
            "name": "databaseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminSettingsDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "Change the client's own settings by key (null removes one)",
        "description": "**Access:** nFocus admin, full role. Audited.",
        "operationId": "UpdateClientSettings",
        "parameters": [
          {
            "name": "databaseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminSettingsUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminSettingsDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/portals/{databaseId}/{orgId}/settings": {
      "get": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "A portal's settings: value, default, where it comes from, range, lock and placeholder",
        "description": "**Access:** nFocus admin (the read-only role is enough). Audited.",
        "operationId": "GetPortalSettings",
        "parameters": [
          {
            "name": "databaseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminSettingsDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "Change a portal's settings by key (null removes one) and lock or unlock keys for its Site Admins",
        "description": "**Access:** nFocus admin, full role. Audited.",
        "operationId": "UpdatePortalSettings",
        "parameters": [
          {
            "name": "databaseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminSettingsUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminSettingsDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/sites/{siteId}": {
      "get": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "A site with its domains, template, keys (prefixes), origins and roles",
        "description": "**Access:** nFocus admin (the read-only role is enough). Audited.",
        "operationId": "GetAdminSite",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminSiteDetailDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/sites/{siteId}/keys": {
      "post": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "Issue a publishable or secret key, shown once; it replaces the site's other keys of that kind (Duda's own keys stay)",
        "description": "**Access:** nFocus admin, full role. Audited.",
        "operationId": "IssueSiteKey",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IssueKeyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IssuedKeyDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/sites/{siteId}/origins": {
      "post": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "Add an origin that isn't one of the site's domains (a widget host, for example)",
        "description": "**Access:** nFocus admin, full role. Audited.",
        "operationId": "AddSiteOrigin",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddOriginRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminOriginDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/sites/{siteId}/origins/{originId}": {
      "delete": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "Remove an origin that isn't one of the site's domains",
        "description": "**Access:** nFocus admin, full role. Audited.",
        "operationId": "RemoveSiteOrigin",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "originId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/sites/{siteId}/template-lock": {
      "put": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "Lock or unlock the site's template: a lock blocks template switches and upgrades, not content",
        "description": "**Access:** nFocus admin, full role. Audited.",
        "operationId": "SetSiteTemplateLock",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemplateLockRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminSiteDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/sites/{siteId}/roles": {
      "post": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "Give an email any role on the site, the first Site Admin included",
        "description": "**Access:** nFocus admin, full role. Audited.",
        "operationId": "GrantSiteRole",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminGrantRoleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminSiteRoleDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/roles/{roleId}": {
      "delete": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "Remove a site role (a site always keeps one Site Admin)",
        "description": "**Access:** nFocus admin, full role. Audited.",
        "operationId": "RemoveSiteRole",
        "parameters": [
          {
            "name": "roleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/staff-users": {
      "get": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "Staff users whose email contains the search, and roles waiting for such an email",
        "description": "**Access:** nFocus admin (the read-only role is enough). Audited.",
        "operationId": "FindStaffUsers",
        "parameters": [
          {
            "name": "email",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminStaffSearchDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/staff-users/{staffUserId}": {
      "get": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "A staff user: site roles, organization roles, invitations and when they were last seen",
        "description": "**Access:** nFocus admin (the read-only role is enough). Audited.",
        "operationId": "GetStaffUser",
        "parameters": [
          {
            "name": "staffUserId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminStaffUserDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/ops/status": {
      "get": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "The worker's queues and jobs (the same answer as /internal/v1/ops/status)",
        "description": "**Access:** nFocus admin (the read-only role is enough). Audited.\n\nEach worker queue's backlog, its oldest waiting item, how many items are overdue (waiting longer than\n`Operations:OverdueAfter`, 15 minutes by default), failing (failed `Operations:FailuresBeforeAlarm` times or\nmore, 3 by default) and failed for good. Each job's last pass, last success, consecutive failures and\nwhether it has stalled. Counts and times only. `alarms` lists what the worker's monitor alarms on now; the\nrunbook says what to do about each.",
        "operationId": "GetAdminOperationsStatus",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperationsStatusDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/reconciliation": {
      "get": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "The API's card payments at a finance root, with their keys in every system (the same answer as /internal/v1/reconciliation)",
        "description": "**Access:** nFocus admin (the read-only role is enough). Audited.\n\nFor nFocus finance. Lists the card payments this API took for one client database (`databaseId`, legacy's\nclient id) at one finance root (`financeRootId`) whose checkout completed on the finance root's local dates\n`from` through `to` (at most 93 days). Each payment carries its keys in every\nsystem: the Braintree transaction id and settlement state (the checkout order), `mt.Payment` and its receipt\nnumber, the card payment's `mt.Transaction`, the `olr.Braintree` log row `olr.BraintreePayment` links it to,\nand `mt.RegistrationTransaction` in the master database with its fee columns.\n\n`flags` lists what needs a look: `payment-missing`, `log-link-missing`, `registration-transaction-missing`,\n`gateway-id-mismatch` (the Braintree id differs between those places), `amount-mismatch`,\n`allocations-mismatch` (the allocations don't add up to the payment), `settlement-failed` (the worker\ngave up settling: Trax records a payment Braintree never collected) and `staff-cancel` (match it with the\nrefund made in Braintree). Matching against Braintree's settlement records is finance's step, with\nBraintree's export and these ids.\n\n`format=csv` answers the same rows as a CSV file (money in dollars, times in UTC).",
        "operationId": "GetAdminReconciliation",
        "parameters": [
          {
            "name": "databaseId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "financeRootId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReconciliationReportDto"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/orders": {
      "get": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "Support's lookup: one order by its receipt number (with databaseId), the trace id a family quotes, or its order id, as its receipt shows it",
        "description": "**Access:** nFocus admin (the read-only role is enough). Audited.",
        "operationId": "FindAdminOrders",
        "parameters": [
          {
            "name": "databaseId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "receipt",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "traceId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "orderId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AdminOrderDto"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/templates": {
      "get": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "Every nFocus template with all its versions, drafts and retired ones included",
        "description": "**Access:** nFocus admin (the read-only role is enough). Audited.",
        "operationId": "ListAdminTemplates",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AdminTemplateDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "Add a template (a draft until it has an available version and is made available)",
        "description": "**Access:** nFocus admin, full role. Audited.",
        "operationId": "CreateTemplate",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTemplateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminTemplateDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/templates/{key}": {
      "get": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "A template with all its versions",
        "description": "**Access:** nFocus admin (the read-only role is enough). Audited.",
        "operationId": "GetAdminTemplate",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminTemplateDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "Change a template's name, description or status",
        "description": "**Access:** nFocus admin, full role. Audited.",
        "operationId": "UpdateTemplate",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTemplateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminTemplateDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/templates/{key}/versions": {
      "post": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "Add a version from its release JSON (schema, sample content and branding, notes), checked as the seed's files are; it starts as a draft",
        "description": "**Access:** nFocus admin, full role. Audited.",
        "operationId": "AddTemplateVersion",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JsonElement"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminTemplateDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/templates/{key}/versions/{version}/status": {
      "put": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "Make a version available or retired (a version sites could choose never goes back to draft)",
        "description": "**Access:** nFocus admin, full role. Audited.",
        "operationId": "SetTemplateVersionStatus",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemplateStatusRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminTemplateDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/templates/{key}/thumbnail": {
      "post": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "Upload the template's thumbnail (multipart: file, altText). JPEG, PNG or WebP, up to 5 MB; it replaces the previous one",
        "description": "**Access:** nFocus admin, full role. Audited.",
        "operationId": "UploadTemplateThumbnail",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/IFormFile"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminTemplateDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "413": {
            "description": "Payload Too Large",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/templates/{key}/versions/{version}/preview-link": {
      "post": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "A one-hour link to a version's sample content as a website, drafts included",
        "description": "**Access:** nFocus admin (the read-only role is enough). Audited.",
        "operationId": "CreateTemplatePreviewLink",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PreviewLinkDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/templates/{key}/usage": {
      "get": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "The sites on each version of the template",
        "description": "**Access:** nFocus admin (the read-only role is enough). Audited.",
        "operationId": "GetTemplateUsage",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TemplateUsageDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/clients/{databaseId}/organizations": {
      "get": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "Every Trax organization of a client, in tree order, with its OLR portal (null: none yet), its website and the portal's rollout",
        "description": "**Access:** nFocus admin (the read-only role is enough). Audited.",
        "operationId": "ListClientOrganizations",
        "parameters": [
          {
            "name": "databaseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AdminOrganizationNodeDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/clients/{databaseId}/organizations/{orgId}/defaults": {
      "get": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "What new sites below an organization start from (template, branding) and its locks, own and inherited",
        "description": "**Access:** nFocus admin (the read-only role is enough). Audited.",
        "operationId": "GetAdminOrganizationDefaults",
        "parameters": [
          {
            "name": "databaseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationDefaultsDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "Replace an organization's defaults for new sites and its locks (If-Match once it has some)",
        "description": "**Access:** nFocus admin, full role. Audited.",
        "operationId": "SaveAdminOrganizationDefaults",
        "parameters": [
          {
            "name": "databaseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrganizationDefaultsUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationDefaultsDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      },
      "delete": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "Remove an organization's own defaults and locks (If-Match)",
        "description": "**Access:** nFocus admin, full role. Audited.",
        "operationId": "ClearAdminOrganizationDefaults",
        "parameters": [
          {
            "name": "databaseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/clients/{databaseId}/templates": {
      "get": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "The templates this client's Organization Admins may onboard sites with (an empty list: every available template)",
        "description": "**Access:** nFocus admin (the read-only role is enough). Audited.",
        "operationId": "GetClientTemplates",
        "parameters": [
          {
            "name": "databaseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientTemplatesDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "Replace the templates this client's Organization Admins may onboard sites with",
        "description": "**Access:** nFocus admin, full role. Audited.",
        "operationId": "SaveClientTemplates",
        "parameters": [
          {
            "name": "databaseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ClientTemplatesUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientTemplatesDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/report-grants": {
      "get": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "Report grants, filtered by client, site, organization or email",
        "description": "**Access:** nFocus admin (the read-only role is enough). Audited.",
        "operationId": "ListAdminReportGrants",
        "parameters": [
          {
            "name": "databaseId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "siteId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "organizationId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "email",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageDtoOfReportGrantDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      },
      "post": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "Let an email run reports, and nothing else, on a site or on a Trax organization and everything below it",
        "description": "**Access:** nFocus admin, full role. Audited.",
        "operationId": "GrantAdminReportAccess",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminReportGrantRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportGrantDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/report-grants/{reportGrantId}": {
      "delete": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "Remove a report grant",
        "description": "**Access:** nFocus admin, full role. Audited.",
        "operationId": "RemoveAdminReportGrant",
        "parameters": [
          {
            "name": "reportGrantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/sites/{siteId}/support-session": {
      "post": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "Open a site in the organization site as nFocus support: recorded in the admin audit and the site's audit trail",
        "description": "**Access:** nFocus admin (the read-only role is enough). Audited.",
        "operationId": "OpenSiteAsSupport",
        "parameters": [
          {
            "name": "siteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SupportSessionDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/clients/{databaseId}/capabilities": {
      "get": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "The client's capability states: every portal's fallback (off, available or onLocked)",
        "description": "**Access:** nFocus admin (the read-only role is enough). Audited.",
        "operationId": "GetClientCapabilities",
        "parameters": [
          {
            "name": "databaseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminCapabilitiesDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "Set the client's capability states by key (null removes one)",
        "description": "**Access:** nFocus admin, full role. Audited.",
        "operationId": "UpdateClientCapabilities",
        "parameters": [
          {
            "name": "databaseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminCapabilitiesUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminCapabilitiesDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/portals/{databaseId}/{orgId}/capabilities": {
      "get": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "A portal's capabilities: nFocus's state and where it comes from, legacy's value, the organization's choice and the effective value",
        "description": "**Access:** nFocus admin (the read-only role is enough). Audited.",
        "operationId": "GetPortalCapabilities",
        "parameters": [
          {
            "name": "databaseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminCapabilitiesDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "Set a portal's capability states by key (null removes one, so the client's applies)",
        "description": "**Access:** nFocus admin, full role. Audited.",
        "operationId": "UpdatePortalCapabilities",
        "parameters": [
          {
            "name": "databaseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminCapabilitiesUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminCapabilitiesDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/clients/{databaseId}/contacts": {
      "get": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "The client's key contacts for nFocus (never shown outside the admin app)",
        "description": "**Access:** nFocus admin (the read-only role is enough). Audited.",
        "operationId": "GetClientContacts",
        "parameters": [
          {
            "name": "databaseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientContactsDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      },
      "put": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "Replace the client's key contacts with this list",
        "description": "**Access:** nFocus admin, full role. Audited.",
        "operationId": "ReplaceClientContacts",
        "parameters": [
          {
            "name": "databaseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ClientContactsUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientContactsDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/logs": {
      "get": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "The troubleshooting log: every client's events, newest first, filtered by client, organization, site, kind, severity, code, trace id and time",
        "description": "**Access:** nFocus admin (the read-only role is enough). Audited.\n\nEvents the API and the worker wrote in the last 90 days (`Troubleshooting:RetentionDays`), newest first: answers of\n500 or more (`request-error`), refusals worth support's attention (`refusal`), failed sign-ins and lockouts on the\naccount pages, failed emails, Duda jobs and worker passes, checkout recovery, the scheduled payments' sync, and\ndomain checks. Repeated refusals and failed sign-ins within a minute share a row (`count`). `includeChanges=true`\nadds the audit trails' changes as kind `change` (`source` `audit` or `adminAudit`), so a change lines up with the\nerrors after it by time and `traceId`. `format=csv` exports the newest 50,000 matching rows (the\n`X-Trax-Total-Rows` header says how many matched). Never personal data: a family appears only as a login id\n(`userId`), on sign-in kinds.",
        "operationId": "ListAdminLogs",
        "parameters": [
          {
            "name": "databaseId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "orgId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "siteId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "kind",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "severity",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "code",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "traceId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "includeChanges",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageDtoOfAdminLogEventDto"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/logs/{eventId}": {
      "get": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "One troubleshooting event (the operations status's latestEventId, the support lookup's events)",
        "description": "**Access:** nFocus admin (the read-only role is enough). Audited.",
        "operationId": "GetAdminLogEvent",
        "parameters": [
          {
            "name": "eventId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminLogEventDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/reports": {
      "get": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "The reports nFocus runs, with their scopes and groupings",
        "description": "**Access:** nFocus admin (the read-only role is enough). Audited.",
        "operationId": "ListAdminReports",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportListDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/admin/reports/{reportKey}": {
      "get": {
        "tags": [
          "nFocus admin"
        ],
        "summary": "Run a report on a client, a portal or every client (totals only: never a registrant)",
        "description": "**Access:** nFocus admin (the read-only role is enough). Audited.\n\n`scope` is `site:{siteId}` or `organization:{clientToken}/{organizationId}` in the organization site, and\n`client:{databaseId}`, `portal:{databaseId}/{orgId}` or `all` in the admin app. `from` and `to` are dates in the\nscope's time zone, both included (at most 400 days; 92 when grouped by day); a snapshot of now (outstanding\nbalances, waitlists, platform adoption) takes neither. `groupBy` is one of the report's groupings (`GET …/reports`\nlists them). `detail=true` answers the rows that name people, where a report has them (outstanding balances: one\nper account; waitlists: one per waitlisted participant), in the organization site only. The answer has `columns`\n(key, label and type: `integer`, `money` in cents, `date`, `month`, `text`, `percent`), a page of `rows` keyed by\ncolumn, `totals` over every row, and `notes`.\n`Accept: text/csv` answers every row as a CSV file (at most 50,000). A report too large to answer in 20 seconds or\n50,000 rows is refused with `422 report-too-large`.",
        "operationId": "RunAdminReport",
        "parameters": [
          {
            "name": "reportKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "scope",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "groupBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "detail",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportResultDto"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "admin": [ ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/config": {
      "get": {
        "tags": [
          "Portal"
        ],
        "summary": "Portal configuration: organization, branding, feature flags and money settings",
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "GetPortalConfig",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PortalConfigResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/content/{key}": {
      "get": {
        "tags": [
          "Portal"
        ],
        "summary": "Tenant-authored HTML (sanitized): dashboard, welcome, privacy, terms and headers",
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "GetPortalContent",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PortalContentResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/assets/{key}": {
      "get": {
        "tags": [
          "Portal"
        ],
        "summary": "Tenant images: logos, favicon, dashboard images",
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "GetPortalAsset",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/assets/activity-images/{file}": {
      "get": {
        "tags": [
          "Portal"
        ],
        "summary": "An activity or activity group image (the imageUrl of catalog responses)",
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "GetActivityImage",
        "parameters": [
          {
            "name": "file",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/organizations": {
      "get": {
        "tags": [
          "Portal"
        ],
        "summary": "Portals in the same organization hierarchy (legacy site switcher)",
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "ListPortalOrganizations",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PortalOrganizationDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/activities": {
      "get": {
        "tags": [
          "Catalog"
        ],
        "summary": "Search the portal's published activities",
        "description": "**Access:** Public (a publishable site key is optional).\n\nListings are standalone activities, or one requirement set of an activity group or parent/child hierarchy. Filters match a listing when any of its sessions matches. Comma-separated lists are accepted for multi-value filters. The member filter (household person ids) keeps listings that fit one of those members by gender, grade and age; it needs the family's access token, and its answers are never cached.",
        "operationId": "ListActivities",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "program",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "location",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "gender",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "schoolYear",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "gradeLevel",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "days",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "daysOnly",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "age",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "birthDate",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "startFrom",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "startTo",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "minFeeCents",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "maxFeeCents",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "activityId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "groupId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "availability",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "member",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageDtoOfListingDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/activities/{activityId}": {
      "get": {
        "tags": [
          "Catalog"
        ],
        "summary": "One published activity, with the listing it belongs to",
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "GetActivity",
        "parameters": [
          {
            "name": "activityId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActivityDetailDto"
                }
              }
            }
          }
        }
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/activities/{activityId}/fees": {
      "get": {
        "tags": [
          "Catalog"
        ],
        "summary": "The activity's fee installments, minimum due and due dates; with a family's access token, after its program discount",
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "GetActivityFees",
        "parameters": [
          {
            "name": "activityId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeeBreakdownDto"
                }
              }
            }
          }
        }
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/activity-groups/{groupId}": {
      "get": {
        "tags": [
          "Catalog"
        ],
        "summary": "An activity group and its listings (one per requirement set)",
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "GetActivityGroup",
        "parameters": [
          {
            "name": "groupId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActivityGroupDto"
                }
              }
            }
          }
        }
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/catalog/filters": {
      "get": {
        "tags": [
          "Catalog"
        ],
        "summary": "Values present in the published catalog, for building filter controls",
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "GetCatalogFilters",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CatalogFiltersDto"
                }
              }
            }
          }
        }
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/memberships": {
      "get": {
        "tags": [
          "Memberships"
        ],
        "summary": "Membership types offered online at this portal",
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "ListMemberships",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MembershipDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/memberships/{membershipTypeId}": {
      "get": {
        "tags": [
          "Memberships"
        ],
        "summary": "One membership type offered online at this portal",
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "GetMembership",
        "parameters": [
          {
            "name": "membershipTypeId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MembershipDto"
                }
              }
            }
          }
        }
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/memberships/{membershipTypeId}/eligibility": {
      "get": {
        "tags": [
          "Memberships"
        ],
        "summary": "Whether each household member can buy the membership on its own now: the dates and price they would get, or why not",
        "description": "**Access:** Signed-in family.",
        "operationId": "GetMembershipEligibility",
        "parameters": [
          {
            "name": "membershipTypeId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MembershipEligibilityDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/collections/activities": {
      "get": {
        "tags": [
          "Duda collections"
        ],
        "summary": "Every listed activity as a flat Duda external-collection row",
        "description": "**Access:** Site secret key.\n\nRequires the site's secret key: Authorization: Bearer sk_… (Partner API) or ?key=sk_… (Duda editor).",
        "operationId": "GetActivitiesCollection",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ActivityCollectionItem"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "siteSecret": [ ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/collections/memberships": {
      "get": {
        "tags": [
          "Duda collections"
        ],
        "summary": "Membership types offered online, as flat Duda external-collection rows",
        "description": "**Access:** Site secret key.",
        "operationId": "GetMembershipsCollection",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MembershipCollectionItem"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "siteSecret": [ ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/me": {
      "get": {
        "tags": [
          "Account"
        ],
        "summary": "The signed-in family's login: email and the account holder's name",
        "description": "**Access:** Signed-in family.",
        "operationId": "GetMe",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MeResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/me/password": {
      "put": {
        "tags": [
          "Account"
        ],
        "summary": "Change the password (current password required). Other sign-ins end.",
        "description": "**Access:** Signed-in family.",
        "operationId": "ChangePassword",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangePasswordRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/me/email": {
      "put": {
        "tags": [
          "Account"
        ],
        "summary": "Change the sign-in email (password required)",
        "description": "**Access:** Signed-in family.",
        "operationId": "ChangeEmail",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangeEmailRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/household": {
      "get": {
        "tags": [
          "Household"
        ],
        "summary": "The signed-in family's household: the account holder, every member, and whether it is verified",
        "description": "**Access:** Signed-in family.",
        "operationId": "GetHousehold",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HouseholdDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/household/members/{personId}": {
      "get": {
        "tags": [
          "Household"
        ],
        "summary": "One household member",
        "description": "**Access:** Signed-in family.",
        "operationId": "GetHouseholdMember",
        "parameters": [
          {
            "name": "personId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MemberDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      },
      "put": {
        "tags": [
          "Household"
        ],
        "summary": "Change a member's names, birth date, gender or school details (leaving all school fields out keeps them)",
        "description": "**Access:** Signed-in family.",
        "operationId": "UpdateHouseholdMember",
        "parameters": [
          {
            "name": "personId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MemberRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MemberDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/household/members": {
      "post": {
        "tags": [
          "Household"
        ],
        "summary": "Add a member: names, birth date, gender, and optionally school year, school and grade together",
        "description": "**Access:** Signed-in family.",
        "operationId": "AddHouseholdMember",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MemberRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MemberDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/household/members/{personId}/documents": {
      "get": {
        "tags": [
          "Household"
        ],
        "summary": "A member's saved documents that this organization may see, newest first",
        "description": "**Access:** Signed-in family.",
        "operationId": "ListMemberDocuments",
        "parameters": [
          {
            "name": "personId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DocumentDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/documents/{documentId}": {
      "get": {
        "tags": [
          "Household"
        ],
        "summary": "Download a saved document of a household member",
        "description": "**Access:** Signed-in family.",
        "operationId": "DownloadDocument",
        "parameters": [
          {
            "name": "documentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/registrations": {
      "get": {
        "tags": [
          "Household"
        ],
        "summary": "The household's activity registrations (every status) and memberships at this organization and below",
        "description": "**Access:** Signed-in family.\n\nstatus=current keeps those ending today or later (organization's date); status=past those that have ended.",
        "operationId": "ListRegistrations",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegistrationsDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/lookups": {
      "get": {
        "tags": [
          "Portal"
        ],
        "summary": "Lists the household forms use: genders, relationships, states, schools, school years, grade levels, contact types",
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "GetLookups",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LookupsDto"
                }
              }
            }
          }
        }
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/activities/{activityId}/eligibility": {
      "get": {
        "tags": [
          "Eligibility"
        ],
        "summary": "Whether each household member may register for an activity, and why not",
        "description": "**Access:** Signed-in family.",
        "operationId": "GetActivityEligibility",
        "parameters": [
          {
            "name": "activityId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActivityEligibilityDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/eligibility": {
      "post": {
        "tags": [
          "Eligibility"
        ],
        "summary": "Check up to 50 activity and member pairs; a hierarchy parent in the same batch counts for its children",
        "description": "**Access:** Signed-in family.",
        "operationId": "CheckEligibility",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EligibilityBatchRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EligibilityBatchDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/forms/household": {
      "get": {
        "tags": [
          "Forms"
        ],
        "summary": "The portal's household form, normalized",
        "description": "**Access:** Signed-in family.",
        "operationId": "GetHouseholdForm",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormDefinitionDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/activities/{activityId}/form": {
      "get": {
        "tags": [
          "Forms"
        ],
        "summary": "An activity's form, normalized (answered at checkout for each member registering)",
        "description": "**Access:** Signed-in family.",
        "operationId": "GetActivityForm",
        "parameters": [
          {
            "name": "activityId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormDefinitionDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/forms/household/answers": {
      "get": {
        "tags": [
          "Forms"
        ],
        "summary": "The household's stored answers to the household form (only the fields on it)",
        "description": "**Access:** Signed-in family.",
        "operationId": "GetHouseholdFormAnswers",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormAnswersDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      },
      "put": {
        "tags": [
          "Forms"
        ],
        "summary": "Save the household form; a valid save marks the household verified",
        "description": "**Access:** Signed-in family.",
        "operationId": "SaveHouseholdFormAnswers",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveFormRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormAnswersDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/forms/participant": {
      "get": {
        "tags": [
          "Forms"
        ],
        "summary": "The portal's participant form, normalized",
        "description": "**Access:** Signed-in family.",
        "operationId": "GetParticipantForm",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormDefinitionDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/forms/participant/people/{personId}": {
      "get": {
        "tags": [
          "Forms"
        ],
        "summary": "A household member's stored answers to the participant form (only the fields on it)",
        "description": "**Access:** Signed-in family.",
        "operationId": "GetParticipantFormAnswers",
        "parameters": [
          {
            "name": "personId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FormAnswersDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      },
      "put": {
        "tags": [
          "Forms"
        ],
        "summary": "Save a household member's participant form (with signatures, it also files a signed PDF of the form)",
        "description": "**Access:** Signed-in family.",
        "operationId": "SaveParticipantFormAnswers",
        "parameters": [
          {
            "name": "personId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveFormRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SavedFormAnswersDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/cart": {
      "get": {
        "tags": [
          "Cart"
        ],
        "summary": "The cart, priced now: each line's total, minimum, today's payment and any problem; the convenience fee and total",
        "description": "**Access:** Signed-in family.",
        "operationId": "GetCart",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CartDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/cart/items": {
      "post": {
        "tags": [
          "Cart"
        ],
        "summary": "Add a registration (member + activity), a payment toward an unpaid charge, a membership (member + type, optionally for an activity line) or a donation (amountCents)",
        "description": "**Access:** Signed-in family.",
        "operationId": "AddCartItem",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddCartItemRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CartDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/cart/items/{itemId}": {
      "patch": {
        "tags": [
          "Cart"
        ],
        "summary": "Choose what to pay today on a line (from its minimum to its total, or a donation's amount), or who attends a line that has no attendee yet",
        "description": "**Access:** Signed-in family.",
        "operationId": "UpdateCartItem",
        "parameters": [
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCartItemRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CartDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Cart"
        ],
        "summary": "Remove a line (an activity takes the memberships added for it along; a hierarchy parent or a membership stays while a line still needs it)",
        "description": "**Access:** Signed-in family.",
        "operationId": "RemoveCartItem",
        "parameters": [
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CartDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/cart/items/{itemId}/hold/extend": {
      "post": {
        "tags": [
          "Cart"
        ],
        "summary": "Hold a line's seat for a few more minutes (the portal sets how long and how many times)",
        "description": "**Access:** Signed-in family.",
        "operationId": "ExtendCartHold",
        "parameters": [
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CartDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/cart/merge": {
      "post": {
        "tags": [
          "Cart"
        ],
        "summary": "At sign-in, move the guest cart named in X-Trax-Guest-Cart into the family's cart: what was added, what was dropped and why, and the cart",
        "description": "**Access:** Signed-in family.",
        "operationId": "MergeGuestCart",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CartMergeDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ],
            "guestCart": [ ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/guest-cart": {
      "post": {
        "tags": [
          "Cart"
        ],
        "summary": "Start a cart for a visitor who hasn't signed in: answers its token (send it back in X-Trax-Guest-Cart) and when the cart expires",
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "CreateGuestCart",
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GuestCartCreatedDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Cart"
        ],
        "summary": "The guest cart, priced now at the catalog's fees: each line's total, minimum and today's payment, with no attendee yet",
        "description": "**Access:** Guest cart token (a publishable site key is optional).",
        "operationId": "GetGuestCart",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GuestCartDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "guestCart": [ ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/guest-cart/items": {
      "post": {
        "tags": [
          "Cart"
        ],
        "summary": "Add an activity, a membership bought on its own, or a donation to the guest cart (no personId: the attendee is chosen after signing in)",
        "description": "**Access:** Guest cart token (a publishable site key is optional).",
        "operationId": "AddGuestCartItem",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddCartItemRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GuestCartDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "guestCart": [ ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/guest-cart/items/{itemId}": {
      "delete": {
        "tags": [
          "Cart"
        ],
        "summary": "Remove a line from the guest cart (a hierarchy parent stays while one of its options is in the cart)",
        "description": "**Access:** Guest cart token (a publishable site key is optional).",
        "operationId": "RemoveGuestCartItem",
        "parameters": [
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GuestCartDto"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "guestCart": [ ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/cart/items/{itemId}/save-for-later": {
      "post": {
        "tags": [
          "Cart"
        ],
        "summary": "Move a registration or membership out of this order without losing it: out of the totals and the forms step, and its seat is no longer held",
        "description": "**Access:** Signed-in family.",
        "operationId": "SaveCartItemForLater",
        "parameters": [
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CartDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/cart/items/{itemId}/move-to-cart": {
      "post": {
        "tags": [
          "Cart"
        ],
        "summary": "Move a saved line back into the order: checked again as an add, priced again, and its seat held",
        "description": "**Access:** Signed-in family.",
        "operationId": "MoveCartItemToCart",
        "parameters": [
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CartDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/cart/notices/ack": {
      "post": {
        "tags": [
          "Cart"
        ],
        "summary": "Clear the change notices the family has seen: on the lines named, or on every line",
        "description": "**Access:** Signed-in family.",
        "operationId": "AcknowledgeCartNotices",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/AckNoticesRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CartDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/cart/reminders": {
      "put": {
        "tags": [
          "Cart"
        ],
        "summary": "Turn reminder emails about this cart on or off (offered only where the organization turned them on)",
        "description": "**Access:** Signed-in family.",
        "operationId": "SetCartReminders",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CartRemindersRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CartDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/cart-reminders/unsubscribe": {
      "post": {
        "tags": [
          "Cart"
        ],
        "summary": "One-click unsubscribe from cart reminder emails (RFC 8058 List-Unsubscribe-Post); the token comes from the email",
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "UnsubscribeCartReminders",
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/cart/pay-amount": {
      "post": {
        "tags": [
          "Cart"
        ],
        "summary": "Pay an amount toward the account's balance: the cart's payment lines are set to cover it, oldest charges first",
        "description": "**Access:** Signed-in family.",
        "operationId": "PayAmountTowardBalance",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PayAmountRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CartDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/cart/forms": {
      "get": {
        "tags": [
          "Cart"
        ],
        "summary": "The forms step: for each member in the cart, the forms to fill in, the waivers to accept and what is missing",
        "description": "**Access:** Signed-in family.",
        "operationId": "GetCartForms",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CartFormsDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/cart/forms/people/{personId}": {
      "get": {
        "tags": [
          "Cart"
        ],
        "summary": "A member's answers for the forms step: the saved draft's, else the stored ones",
        "description": "**Access:** Signed-in family.",
        "operationId": "GetCartFormAnswers",
        "parameters": [
          {
            "name": "personId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CartFormAnswersDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      },
      "put": {
        "tags": [
          "Cart"
        ],
        "summary": "Save a member's forms step (answers and accepted waivers) until checkout; returns what is still missing",
        "description": "**Access:** Signed-in family.",
        "operationId": "SaveCartFormAnswers",
        "parameters": [
          {
            "name": "personId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveCartFormRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CartFormPersonDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/checkout": {
      "post": {
        "tags": [
          "Checkout"
        ],
        "summary": "Check out the cart: register, charge and take today's payment in one step (needs an Idempotency-Key header)",
        "description": "**Access:** Signed-in family.\n\nSend the total you showed the family as `expectedTotalCents`. Every member's forms step must be complete first (`GET …/cart/forms`; otherwise `409 forms-incomplete`). Repeating a request with the same `Idempotency-Key` returns the first answer; nothing is charged twice.",
        "operationId": "Checkout",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "A new random value (for example a UUID) per checkout. Repeating it replays the first answer instead of checking out again.",
            "required": true,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckoutRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/orders/{orderId}": {
      "get": {
        "tags": [
          "Checkout"
        ],
        "summary": "A checkout's confirmation: what was registered, charged and paid, and the receipt number",
        "description": "**Access:** Signed-in family.",
        "operationId": "GetOrder",
        "parameters": [
          {
            "name": "orderId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/orders/{orderId}/receipt.pdf": {
      "get": {
        "tags": [
          "Checkout"
        ],
        "summary": "The receipt PDF of a checkout that took a card payment",
        "description": "**Access:** Signed-in family.",
        "operationId": "GetOrderReceipt",
        "parameters": [
          {
            "name": "orderId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/payments/client-token": {
      "get": {
        "tags": [
          "Checkout"
        ],
        "summary": "A client token for the card form (the gateway's hosted fields turn the card into a one-time nonce)",
        "description": "**Access:** Signed-in family.",
        "operationId": "GetPaymentClientToken",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientTokenDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/account/charges": {
      "get": {
        "tags": [
          "Checkout"
        ],
        "summary": "Unpaid charges on the household's account (add them to the cart to pay them), the past-due total and credit",
        "description": "**Access:** Signed-in family.",
        "operationId": "GetAccountCharges",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountChargesDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/account/balance": {
      "get": {
        "tags": [
          "Account"
        ],
        "summary": "The account's balances, unpaid charges, scheduled payments and the charges each Pay Now button adds",
        "description": "**Access:** Signed-in family.\n\n`dueNowCents` (due on or before today) is legacy's \"Balance Due\" and the outstanding-balance banner; `pastDueCents` is the balance-due rule's number. Charges a scheduled payment will pay count in the balances and carry `scheduledPayment`, but no Pay Now set includes them.",
        "operationId": "GetAccountBalance",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountBalanceDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/account/transactions": {
      "get": {
        "tags": [
          "Account"
        ],
        "summary": "The account's transactions at this portal's organizations, newest first (days: 30, 60, 90, 180, 360 or 720; default 90)",
        "description": "**Access:** Signed-in family.",
        "operationId": "GetAccountTransactions",
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransactionListDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/account/statements": {
      "get": {
        "tags": [
          "Account"
        ],
        "summary": "The years an annual payment summary is available for, newest first",
        "description": "**Access:** Signed-in family.",
        "operationId": "GetAccountStatements",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatementListDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/account/statements/{year}.pdf": {
      "get": {
        "tags": [
          "Account"
        ],
        "summary": "The annual payment summary PDF for one year: what was paid toward each member's fees, month by month, and by which payment method",
        "description": "**Access:** Signed-in family.",
        "operationId": "GetAccountStatement",
        "parameters": [
          {
            "name": "year",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/donations/options": {
      "get": {
        "tags": [
          "Donations"
        ],
        "summary": "Whether this portal takes donations online, the amounts it accepts, where a gift can go, and the reCAPTCHA site key",
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "GetDonationOptions",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DonationOptionsDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/donations/client-token": {
      "get": {
        "tags": [
          "Donations"
        ],
        "summary": "A client token for the donation page's card form, without signing in",
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "GetDonationClientToken",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientTokenDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/donations": {
      "post": {
        "tags": [
          "Donations"
        ],
        "summary": "Give a donation without signing in (needs an Idempotency-Key header and the reCAPTCHA answer); the receipt is emailed to the donor",
        "description": "**Access:** Public (a publishable site key is optional).\n\nNo money account is involved, as legacy's anonymous donations. Signed-in families give through the cart instead. Repeating a request with the same `Idempotency-Key` returns the first answer; nothing is charged twice.",
        "operationId": "Donate",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "A new random value (for example a UUID) per donation. Repeating it replays the first answer instead of giving again.",
            "required": true,
            "schema": {
              "maxLength": 255,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DonationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/payment-methods": {
      "get": {
        "tags": [
          "Saved cards"
        ],
        "summary": "The signed-in person's saved cards at this portal's merchant",
        "description": "**Access:** Signed-in family.",
        "operationId": "ListPaymentMethods",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentMethodListDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      },
      "post": {
        "tags": [
          "Saved cards"
        ],
        "summary": "Save a card from the hosted fields' one-time nonce (the card is verified first)",
        "description": "**Access:** Signed-in family.",
        "operationId": "AddPaymentMethod",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddPaymentMethodRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentMethodDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/payment-methods/{id}": {
      "put": {
        "tags": [
          "Saved cards"
        ],
        "summary": "Rename a saved card, or replace its details from a newly entered card",
        "description": "**Access:** Signed-in family.",
        "operationId": "UpdatePaymentMethod",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePaymentMethodRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentMethodDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Saved cards"
        ],
        "summary": "Delete a saved card (refused while it pays an active payment plan or a scheduled automatic payment)",
        "description": "**Access:** Signed-in family.",
        "operationId": "DeletePaymentMethod",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/payment-methods/{id}/default": {
      "post": {
        "tags": [
          "Saved cards"
        ],
        "summary": "Make a saved card the default",
        "description": "**Access:** Signed-in family.",
        "operationId": "SetDefaultPaymentMethod",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentMethodDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/payment-plan": {
      "get": {
        "tags": [
          "Payment plan"
        ],
        "summary": "The account's payment plan, its payments that haven't run and what it leaves unpaid",
        "description": "**Access:** Signed-in family.",
        "operationId": "GetPaymentPlan",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentPlanDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      },
      "put": {
        "tags": [
          "Payment plan"
        ],
        "summary": "Create the account's payment plan, or replace its terms",
        "description": "**Access:** Signed-in family.\n\nThe server computes the payment dates and amounts. Payments that are about to run (pending) stay as they are.",
        "operationId": "SavePaymentPlan",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/PaymentPlanRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentPlanDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      },
      "delete": {
        "tags": [
          "Payment plan"
        ],
        "summary": "Cancel the payment plan (payments that are about to run still run)",
        "description": "**Access:** Signed-in family.",
        "operationId": "CancelPaymentPlan",
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/payment-plan/preview": {
      "get": {
        "tags": [
          "Payment plan"
        ],
        "summary": "Quote a plan before saving it: the payments the server would make from today's balance",
        "description": "**Access:** Signed-in family.\n\nTakes the same terms as `PUT …/payment-plan` as query parameters, without the card. Nothing is saved.",
        "operationId": "PreviewPaymentPlan",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "paymentDay",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "startDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "payments",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "amountCents",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentPlanPreviewDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/payment-plan/payment-method": {
      "put": {
        "tags": [
          "Payment plan"
        ],
        "summary": "Move the plan's payments to another saved card",
        "description": "**Access:** Signed-in family.",
        "operationId": "SetPaymentPlanPaymentMethod",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/PlanCardRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentPlanDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/automatic-payments": {
      "get": {
        "tags": [
          "Automatic payments"
        ],
        "summary": "The account's automatic payments: scheduled, pending, failed and cancelled",
        "description": "**Access:** Signed-in family.",
        "operationId": "GetAutomaticPayments",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomaticPaymentsDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/automatic-payments/{id}": {
      "delete": {
        "tags": [
          "Automatic payments"
        ],
        "summary": "Cancel one automatic payment, where the organization allows it",
        "description": "**Access:** Signed-in family.\n\nIts charges stay on the account to be paid another way (Pay Now, or a payment plan, which takes them in). A pending payment can't be cancelled.",
        "operationId": "CancelAutomaticPayment",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/automatic-payments/{id}/payment-method": {
      "put": {
        "tags": [
          "Automatic payments"
        ],
        "summary": "Pay one automatic payment with another saved card",
        "description": "**Access:** Signed-in family.\n\nThe payment moves to the card's payments at this organization (joining one on the same date), so its id can change. Answers the updated list.",
        "operationId": "SetAutomaticPaymentPaymentMethod",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/AutomaticPaymentCardRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomaticPaymentsDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "family": [
              "openid"
            ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/media/{id}": {
      "get": {
        "tags": [
          "Website"
        ],
        "summary": "A website image from the site's media library",
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "GetSiteMedia",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/site": {
      "get": {
        "tags": [
          "Website"
        ],
        "summary": "The website profile (Trax values with the site's overrides), hours, social links and locations",
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "GetWebsite",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebsiteDto"
                }
              }
            }
          },
          "304": {
            "description": "Not Modified"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/staff": {
      "get": {
        "tags": [
          "Website"
        ],
        "summary": "The staff directory, in the site's order (contact details only where the site shows them)",
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "GetWebsiteStaff",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WebsiteStaff"
                  }
                }
              }
            }
          },
          "304": {
            "description": "Not Modified"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/posts": {
      "get": {
        "tags": [
          "Website"
        ],
        "summary": "Published posts, newest first (kind=blog|news, tag)",
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "ListWebsitePosts",
        "parameters": [
          {
            "name": "kind",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tag",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 12
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageDtoOfWebsitePostSummary"
                }
              }
            }
          },
          "304": {
            "description": "Not Modified"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/posts/{slug}": {
      "get": {
        "tags": [
          "Website"
        ],
        "summary": "One published post; a Site Manager preview link shows a draft for an hour",
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "GetWebsitePost",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "preview",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebsitePost"
                }
              }
            }
          },
          "304": {
            "description": "Not Modified"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/announcements": {
      "get": {
        "tags": [
          "Website"
        ],
        "summary": "Announcements showing now: pinned first, then newest",
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "ListWebsiteAnnouncements",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WebsiteAnnouncement"
                  }
                }
              }
            }
          },
          "304": {
            "description": "Not Modified"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/alerts": {
      "get": {
        "tags": [
          "Website"
        ],
        "summary": "Alerts showing now, most severe first (for a site-wide banner)",
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "ListWebsiteAlerts",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WebsiteAlert"
                  }
                }
              }
            }
          },
          "304": {
            "description": "Not Modified"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/collections/posts": {
      "get": {
        "tags": [
          "Duda collections"
        ],
        "summary": "Published posts as flat Duda external-collection rows (slug is the page URL)",
        "description": "**Access:** Site secret key.",
        "operationId": "GetPostsCollection",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "siteSecret": [ ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/collections/staff": {
      "get": {
        "tags": [
          "Duda collections"
        ],
        "summary": "The staff directory as flat Duda external-collection rows",
        "description": "**Access:** Site secret key.",
        "operationId": "GetStaffCollection",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "siteSecret": [ ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/collections/locations": {
      "get": {
        "tags": [
          "Duda collections"
        ],
        "summary": "The site's locations as flat Duda external-collection rows",
        "description": "**Access:** Site secret key.",
        "operationId": "GetLocationsCollection",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "security": [
          {
            "siteSecret": [ ]
          }
        ]
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/website": {
      "get": {
        "tags": [
          "Website"
        ],
        "summary": "An nFocus site's published website: template, branding, pages with their visible sections, and JSON-LD",
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "GetPublishedWebsite",
        "parameters": [
          {
            "name": "preview",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicWebsiteDto"
                }
              }
            }
          },
          "304": {
            "description": "Not Modified"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/locations": {
      "get": {
        "tags": [
          "Website"
        ],
        "summary": "The site's locations: address, hours, special hours, notes, map position, buttons and the services each offers",
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "ListWebsiteLocations",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PublicLocation"
                  }
                }
              }
            }
          },
          "304": {
            "description": "Not Modified"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/locations/{slug}": {
      "get": {
        "tags": [
          "Website"
        ],
        "summary": "One location's page: the location, its weekly schedule, its own content and sponsorships, and JSON-LD",
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "GetWebsiteLocation",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicLocationDetail"
                }
              }
            }
          },
          "304": {
            "description": "Not Modified"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/services": {
      "get": {
        "tags": [
          "Website"
        ],
        "summary": "Service categories with their services and the locations that offer each",
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "ListWebsiteServices",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicServicesDto"
                }
              }
            }
          },
          "304": {
            "description": "Not Modified"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/schedules": {
      "get": {
        "tags": [
          "Website"
        ],
        "summary": "The weekly schedule: the site's own, or one location's (location={slug})",
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "ListWebsiteSchedules",
        "parameters": [
          {
            "name": "location",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PublicScheduleEntry"
                  }
                }
              }
            }
          },
          "304": {
            "description": "Not Modified"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/content": {
      "get": {
        "tags": [
          "Website"
        ],
        "summary": "Organization content (impact numbers, outcomes, quotes, values, pathways, sponsorships): the site's own, or one location's",
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "ListWebsiteContent",
        "parameters": [
          {
            "name": "kind",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "location",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicContentDto"
                }
              }
            }
          },
          "304": {
            "description": "Not Modified"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpValidationProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/site/sitemap": {
      "get": {
        "tags": [
          "Website"
        ],
        "summary": "An nFocus site's public paths with when each last changed, for sitemap.xml",
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "GetWebsiteSitemap",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SitemapDto"
                }
              }
            }
          },
          "304": {
            "description": "Not Modified"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/videos": {
      "get": {
        "tags": [
          "Website"
        ],
        "summary": "Published videos in the site's order: the site's own, or one location's (location={slug})",
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "ListWebsiteVideos",
        "parameters": [
          {
            "name": "location",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PublicVideo"
                  }
                }
              }
            }
          },
          "304": {
            "description": "Not Modified"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/videos/{id}": {
      "get": {
        "tags": [
          "Website"
        ],
        "summary": "One published video",
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "GetWebsiteVideo",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicVideo"
                }
              }
            }
          },
          "304": {
            "description": "Not Modified"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/v1/portals/{clientToken}/{orgToken}/contacts": {
      "get": {
        "tags": [
          "Website"
        ],
        "summary": "Who to contact: the site's published public contacts, or one location's (location={slug})",
        "description": "**Access:** Public (a publishable site key is optional).",
        "operationId": "ListWebsiteContacts",
        "parameters": [
          {
            "name": "location",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PublicContact"
                  }
                }
              }
            }
          },
          "304": {
            "description": "Not Modified"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AcceptedWaiverDto": {
        "required": [
          "kind",
          "id",
          "textHash",
          "acceptedUtc"
        ],
        "type": "object",
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/WaiverKind"
          },
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "textHash": {
            "type": "string"
          },
          "acceptedUtc": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "AcceptWaiverRequest": {
        "required": [
          "kind",
          "id",
          "textHash"
        ],
        "type": "object",
        "properties": {
          "kind": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/WaiverKind"
              }
            ]
          },
          "id": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "textHash": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AccountBalanceDto": {
        "required": [
          "accountBalanceCents",
          "dueNowCents",
          "pastDueCents",
          "currentMonthCents",
          "currentMonthEnd",
          "showCurrentMonthBalance",
          "creditCents",
          "charges",
          "scheduledPayments",
          "payNow"
        ],
        "type": "object",
        "properties": {
          "accountBalanceCents": {
            "type": "integer",
            "format": "int64"
          },
          "dueNowCents": {
            "type": "integer",
            "format": "int64"
          },
          "pastDueCents": {
            "type": "integer",
            "format": "int64"
          },
          "currentMonthCents": {
            "type": "integer",
            "format": "int64"
          },
          "currentMonthEnd": {
            "type": "string",
            "format": "date"
          },
          "showCurrentMonthBalance": {
            "type": "boolean"
          },
          "creditCents": {
            "type": "integer",
            "format": "int64"
          },
          "charges": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CartChargeDto"
            }
          },
          "scheduledPayments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ScheduledPaymentDto"
            }
          },
          "payNow": {
            "$ref": "#/components/schemas/PayNowModesDto"
          }
        }
      },
      "AccountChargesDto": {
        "required": [
          "items",
          "balanceCents",
          "pastDueCents",
          "creditCents"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CartChargeDto"
            }
          },
          "balanceCents": {
            "type": "integer",
            "format": "int64"
          },
          "pastDueCents": {
            "type": "integer",
            "format": "int64"
          },
          "creditCents": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "AccountHolderDto": {
        "required": [
          "personId",
          "firstName",
          "lastName",
          "signInEmail",
          "email",
          "phone",
          "address"
        ],
        "type": "object",
        "properties": {
          "personId": {
            "type": "integer",
            "format": "int32"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "signInEmail": {
            "type": "string"
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "phone": {
            "type": [
              "null",
              "string"
            ]
          },
          "address": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/AddressDto"
              }
            ]
          }
        }
      },
      "AckNoticesRequest": {
        "type": "object",
        "properties": {
          "itemIds": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string",
              "format": "uuid"
            }
          }
        }
      },
      "ActivityCollectionItem": {
        "required": [
          "id",
          "slug",
          "kind",
          "name",
          "description",
          "imageUrl",
          "category",
          "programs",
          "location",
          "startDate",
          "endDate",
          "dates",
          "days",
          "times",
          "ages",
          "fee",
          "feeCents",
          "availability",
          "availabilityLabel",
          "spotsLeft",
          "requiresMembership",
          "memberships",
          "tags",
          "prerequisites",
          "sessions",
          "detailsUrl"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "imageUrl": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "programs": {
            "type": "string"
          },
          "location": {
            "type": "string"
          },
          "startDate": {
            "type": "string"
          },
          "endDate": {
            "type": "string"
          },
          "dates": {
            "type": "string"
          },
          "days": {
            "type": "string"
          },
          "times": {
            "type": "string"
          },
          "ages": {
            "type": "string"
          },
          "fee": {
            "type": "string"
          },
          "feeCents": {
            "type": "integer",
            "format": "int64"
          },
          "availability": {
            "type": "string"
          },
          "availabilityLabel": {
            "type": "string"
          },
          "spotsLeft": {
            "type": "integer",
            "format": "int32"
          },
          "requiresMembership": {
            "type": "boolean"
          },
          "memberships": {
            "type": "string"
          },
          "tags": {
            "type": "string"
          },
          "prerequisites": {
            "type": "string"
          },
          "sessions": {
            "type": "integer",
            "format": "int32"
          },
          "detailsUrl": {
            "type": "string"
          },
          "spotsHeld": {
            "type": "integer",
            "format": "int32",
            "default": 0
          }
        }
      },
      "ActivityDetailDto": {
        "required": [
          "id",
          "slug",
          "listingId",
          "listingKind",
          "name",
          "description",
          "imageUrl",
          "program",
          "category",
          "location",
          "startDate",
          "endDate",
          "days",
          "startTime",
          "endTime",
          "registrationStartDate",
          "registrationEndDate",
          "ages",
          "bornOnOrAfter",
          "bornBefore",
          "genders",
          "grades",
          "capacity",
          "spotsLeft",
          "availability",
          "availabilityLabel",
          "feeCents",
          "minimumDueCents",
          "feeText",
          "requiresMembership",
          "memberships",
          "waiver",
          "prerequisites",
          "tags",
          "enrollWithBalanceDue"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "slug": {
            "type": "string"
          },
          "listingId": {
            "type": "string"
          },
          "listingKind": {
            "$ref": "#/components/schemas/ListingKind"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "imageUrl": {
            "type": [
              "null",
              "string"
            ],
            "format": "uri"
          },
          "program": {
            "$ref": "#/components/schemas/NamedDto"
          },
          "category": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/NamedDto"
              }
            ]
          },
          "location": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/NamedDto"
              }
            ]
          },
          "startDate": {
            "type": "string",
            "format": "date"
          },
          "endDate": {
            "type": "string",
            "format": "date"
          },
          "days": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "startTime": {
            "type": [
              "null",
              "string"
            ],
            "format": "time"
          },
          "endTime": {
            "type": [
              "null",
              "string"
            ],
            "format": "time"
          },
          "registrationStartDate": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "registrationEndDate": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "ages": {
            "$ref": "#/components/schemas/AgesDto"
          },
          "bornOnOrAfter": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "bornBefore": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "genders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NamedDto"
            }
          },
          "grades": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GradeDto"
            }
          },
          "capacity": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "spotsLeft": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "availability": {
            "$ref": "#/components/schemas/Availability"
          },
          "availabilityLabel": {
            "type": "string"
          },
          "feeCents": {
            "type": "integer",
            "format": "int64"
          },
          "minimumDueCents": {
            "type": "integer",
            "format": "int64"
          },
          "feeText": {
            "type": "string"
          },
          "requiresMembership": {
            "type": "boolean"
          },
          "memberships": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NamedDto"
            }
          },
          "waiver": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/WaiverDto"
              }
            ]
          },
          "prerequisites": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "enrollWithBalanceDue": {
            "type": "boolean"
          },
          "spotsHeld": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          }
        }
      },
      "ActivityEligibilityDto": {
        "required": [
          "activityId",
          "activityName",
          "members"
        ],
        "type": "object",
        "properties": {
          "activityId": {
            "type": "integer",
            "format": "int32"
          },
          "activityName": {
            "type": "string"
          },
          "members": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MemberEligibilityDto"
            }
          }
        }
      },
      "ActivityGroupDto": {
        "required": [
          "id",
          "name",
          "description",
          "imageUrl",
          "listings"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "imageUrl": {
            "type": [
              "null",
              "string"
            ],
            "format": "uri"
          },
          "listings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListingDto"
            }
          }
        }
      },
      "ActivityRegistrationDto": {
        "required": [
          "id",
          "personId",
          "participantName",
          "activityId",
          "activityName",
          "status",
          "statusLabel",
          "startDate",
          "endDate",
          "organizationName",
          "location"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "personId": {
            "type": "integer",
            "format": "int32"
          },
          "participantName": {
            "type": "string"
          },
          "activityId": {
            "type": "integer",
            "format": "int32"
          },
          "activityName": {
            "type": "string"
          },
          "status": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/EnrollmentStatus"
              }
            ]
          },
          "statusLabel": {
            "type": "string"
          },
          "startDate": {
            "type": "string",
            "format": "date"
          },
          "endDate": {
            "type": "string",
            "format": "date"
          },
          "organizationName": {
            "type": "string"
          },
          "location": {
            "type": [
              "null",
              "string"
            ]
          },
          "days": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "startTime": {
            "type": [
              "null",
              "string"
            ],
            "format": "time"
          },
          "endTime": {
            "type": [
              "null",
              "string"
            ],
            "format": "time"
          }
        }
      },
      "AddCartItemRequest": {
        "required": [
          "kind",
          "activityId",
          "personId",
          "chargeId"
        ],
        "type": "object",
        "properties": {
          "kind": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/CartLineKind"
              }
            ]
          },
          "activityId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "personId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "chargeId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "membershipTypeId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "amountCents": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          },
          "designation": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/DesignationRequest"
              }
            ]
          }
        }
      },
      "AddDomainRequest": {
        "required": [
          "host"
        ],
        "type": "object",
        "properties": {
          "host": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AddOriginRequest": {
        "required": [
          "origin"
        ],
        "type": "object",
        "properties": {
          "origin": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AddPaymentMethodRequest": {
        "required": [
          "nonce",
          "name",
          "billing"
        ],
        "type": "object",
        "properties": {
          "nonce": {
            "type": [
              "null",
              "string"
            ]
          },
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "billing": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/BillingRequest"
              }
            ]
          },
          "makeDefault": {
            "type": [
              "null",
              "boolean"
            ]
          }
        }
      },
      "AddressDto": {
        "required": [
          "line1",
          "line2",
          "city",
          "stateProvince",
          "postalCode"
        ],
        "type": "object",
        "properties": {
          "line1": {
            "type": [
              "null",
              "string"
            ]
          },
          "line2": {
            "type": [
              "null",
              "string"
            ]
          },
          "city": {
            "type": [
              "null",
              "string"
            ]
          },
          "stateProvince": {
            "type": [
              "null",
              "string"
            ]
          },
          "postalCode": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AdminAuditEventDto": {
        "required": [
          "id",
          "createdUtc",
          "actorSubject",
          "actorEmail",
          "actorAccess",
          "method",
          "route",
          "status",
          "databaseId",
          "orgId",
          "siteId",
          "staffUserId",
          "orderId",
          "traceId",
          "summary"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "actorSubject": {
            "type": "string"
          },
          "actorEmail": {
            "type": [
              "null",
              "string"
            ]
          },
          "actorAccess": {
            "type": "string"
          },
          "method": {
            "type": "string"
          },
          "route": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "format": "int32"
          },
          "databaseId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "orgId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "siteId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "staffUserId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "orderId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ]
          },
          "summary": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AdminCapabilitiesDto": {
        "required": [
          "databaseId",
          "orgId",
          "capabilities"
        ],
        "type": "object",
        "properties": {
          "databaseId": {
            "type": "integer",
            "format": "int32"
          },
          "orgId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "capabilities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminCapabilityDto"
            }
          }
        }
      },
      "AdminCapabilitiesUpdate": {
        "required": [
          "states"
        ],
        "type": "object",
        "properties": {
          "states": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "$ref": "#/components/schemas/CapabilityState"
            }
          }
        }
      },
      "AdminCapabilityDto": {
        "required": [
          "key",
          "name",
          "gates",
          "owner",
          "controlledBy",
          "state",
          "nfocusState",
          "source"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "gates": {
            "type": "string"
          },
          "owner": {
            "$ref": "#/components/schemas/CapabilityOwner"
          },
          "controlledBy": {
            "$ref": "#/components/schemas/CapabilityControl"
          },
          "state": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/CapabilityState"
              }
            ]
          },
          "nfocusState": {
            "$ref": "#/components/schemas/CapabilityState"
          },
          "source": {
            "$ref": "#/components/schemas/CapabilityStateSource"
          },
          "legacy": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "organizationValue": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "effective": {
            "type": [
              "null",
              "boolean"
            ]
          }
        }
      },
      "AdminClientDetailDto": {
        "required": [
          "databaseId",
          "clientToken",
          "clientName",
          "availability",
          "portals"
        ],
        "type": "object",
        "properties": {
          "databaseId": {
            "type": "integer",
            "format": "int32"
          },
          "clientToken": {
            "type": "string"
          },
          "clientName": {
            "type": "string"
          },
          "availability": {
            "$ref": "#/components/schemas/ClientAvailability"
          },
          "portals": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/AdminPortalDto"
            }
          }
        }
      },
      "AdminClientDto": {
        "required": [
          "databaseId",
          "clientToken",
          "clientName",
          "availability",
          "portalCount"
        ],
        "type": "object",
        "properties": {
          "databaseId": {
            "type": "integer",
            "format": "int32"
          },
          "clientToken": {
            "type": "string"
          },
          "clientName": {
            "type": "string"
          },
          "availability": {
            "$ref": "#/components/schemas/ClientAvailability"
          },
          "portalCount": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          }
        }
      },
      "AdminGrantRoleRequest": {
        "required": [
          "email",
          "role"
        ],
        "type": "object",
        "properties": {
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "role": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/StaffRole"
              }
            ]
          }
        }
      },
      "AdminLogEventDto": {
        "required": [
          "id",
          "occurredUtc",
          "lastOccurredUtc",
          "source",
          "kind",
          "severity",
          "code",
          "count",
          "summary",
          "databaseId",
          "orgId",
          "siteId",
          "endpoint",
          "traceId",
          "userId",
          "orderId",
          "jobId",
          "emailId",
          "domain",
          "actor"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "occurredUtc": {
            "type": "string",
            "format": "date-time"
          },
          "lastOccurredUtc": {
            "type": "string",
            "format": "date-time"
          },
          "source": {
            "$ref": "#/components/schemas/LogSource"
          },
          "kind": {
            "type": "string"
          },
          "severity": {
            "$ref": "#/components/schemas/TroubleshootingSeverity"
          },
          "code": {
            "type": "string"
          },
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "summary": {
            "type": "string"
          },
          "databaseId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "orgId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "siteId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "endpoint": {
            "type": [
              "null",
              "string"
            ]
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ]
          },
          "userId": {
            "type": [
              "null",
              "string"
            ]
          },
          "orderId": {
            "type": [
              "null",
              "string"
            ]
          },
          "jobId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          },
          "emailId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          },
          "domain": {
            "type": [
              "null",
              "string"
            ]
          },
          "actor": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AdminOrderDto": {
        "required": [
          "id",
          "databaseId",
          "clientToken",
          "orgId",
          "orgToken",
          "status",
          "createdUtc",
          "completedUtc",
          "receiptNumber",
          "gatewayTransactionId",
          "settlement",
          "recovery",
          "totalCents",
          "convenienceFeeCents",
          "paidCents",
          "laterCents",
          "lines",
          "anonymous",
          "donorName",
          "receiptEmail",
          "traceId",
          "failure"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "databaseId": {
            "type": "integer",
            "format": "int32"
          },
          "clientToken": {
            "type": [
              "null",
              "string"
            ]
          },
          "orgId": {
            "type": "integer",
            "format": "int32"
          },
          "orgToken": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "$ref": "#/components/schemas/CheckoutStatus"
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "completedUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "receiptNumber": {
            "type": [
              "null",
              "string"
            ]
          },
          "gatewayTransactionId": {
            "type": [
              "null",
              "string"
            ]
          },
          "settlement": {
            "$ref": "#/components/schemas/SettlementStatus"
          },
          "recovery": {
            "$ref": "#/components/schemas/OrderRecoveryState"
          },
          "totalCents": {
            "type": "integer",
            "format": "int64"
          },
          "convenienceFeeCents": {
            "type": "integer",
            "format": "int64"
          },
          "paidCents": {
            "type": "integer",
            "format": "int64"
          },
          "laterCents": {
            "type": "integer",
            "format": "int64"
          },
          "lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminOrderLineDto"
            }
          },
          "anonymous": {
            "type": "boolean"
          },
          "donorName": {
            "type": [
              "null",
              "string"
            ]
          },
          "receiptEmail": {
            "$ref": "#/components/schemas/ReceiptEmailState"
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ]
          },
          "failure": {
            "type": [
              "null",
              "string"
            ]
          },
          "events": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/AdminLogEventDto"
            }
          }
        }
      },
      "AdminOrderLineDto": {
        "required": [
          "kind",
          "description",
          "participant",
          "amountCents",
          "paidCents",
          "designatedTo"
        ],
        "type": "object",
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/CartLineKind"
          },
          "description": {
            "type": "string"
          },
          "participant": {
            "type": [
              "null",
              "string"
            ]
          },
          "amountCents": {
            "type": "integer",
            "format": "int64"
          },
          "paidCents": {
            "type": "integer",
            "format": "int64"
          },
          "designatedTo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AdminOrganizationNodeDto": {
        "required": [
          "organizationId",
          "name",
          "parentId",
          "depth",
          "portal",
          "site"
        ],
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "parentId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "depth": {
            "type": "integer",
            "format": "int32"
          },
          "portal": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/AdminOrganizationPortalDto"
              }
            ]
          },
          "site": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OrganizationSiteDto"
              }
            ]
          }
        }
      },
      "AdminOrganizationPortalDto": {
        "required": [
          "orgToken",
          "title",
          "rollout"
        ],
        "type": "object",
        "properties": {
          "orgToken": {
            "type": "string"
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "rollout": {
            "$ref": "#/components/schemas/RolloutStatus"
          }
        }
      },
      "AdminOrgRoleDto": {
        "required": [
          "id",
          "databaseId",
          "clientToken",
          "organizationId",
          "organizationName",
          "email",
          "role",
          "linked",
          "grantedUtc",
          "grantedBy"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "databaseId": {
            "type": "integer",
            "format": "int32"
          },
          "clientToken": {
            "type": [
              "null",
              "string"
            ]
          },
          "organizationId": {
            "type": "integer",
            "format": "int32"
          },
          "organizationName": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": "string"
          },
          "role": {
            "$ref": "#/components/schemas/StaffRole"
          },
          "linked": {
            "type": "boolean"
          },
          "grantedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "grantedBy": {
            "type": "string"
          }
        }
      },
      "AdminOriginDto": {
        "required": [
          "id",
          "origin",
          "fromDomain"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "origin": {
            "type": "string"
          },
          "fromDomain": {
            "type": "boolean"
          }
        }
      },
      "AdminPortalDto": {
        "required": [
          "orgId",
          "orgToken",
          "title",
          "organizationName",
          "rollout",
          "site"
        ],
        "type": "object",
        "properties": {
          "orgId": {
            "type": "integer",
            "format": "int32"
          },
          "orgToken": {
            "type": "string"
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "organizationName": {
            "type": "string"
          },
          "rollout": {
            "$ref": "#/components/schemas/RolloutStatus"
          },
          "site": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/AdminSiteDto"
              }
            ]
          }
        }
      },
      "AdminReportGrantRequest": {
        "required": [
          "databaseId",
          "email"
        ],
        "type": "object",
        "properties": {
          "databaseId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "siteId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "organizationId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          }
        }
      },
      "AdminRolloutDto": {
        "required": [
          "databaseId",
          "orgId",
          "status",
          "updatedUtc",
          "updatedBy"
        ],
        "type": "object",
        "properties": {
          "databaseId": {
            "type": "integer",
            "format": "int32"
          },
          "orgId": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "$ref": "#/components/schemas/RolloutStatus"
          },
          "updatedUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "updatedBy": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AdminSettingDto": {
        "required": [
          "key",
          "kind",
          "value",
          "default",
          "source",
          "minimum",
          "maximum",
          "unit",
          "locked",
          "placeholder",
          "siteAdminsChange"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "value": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/JsonElement"
              }
            ]
          },
          "default": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/JsonElement"
              }
            ]
          },
          "source": {
            "$ref": "#/components/schemas/SettingSource"
          },
          "minimum": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "maximum": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "unit": {
            "type": [
              "null",
              "string"
            ]
          },
          "locked": {
            "type": "boolean"
          },
          "placeholder": {
            "type": "boolean"
          },
          "siteAdminsChange": {
            "type": "boolean"
          }
        }
      },
      "AdminSettingsDto": {
        "required": [
          "databaseId",
          "orgId",
          "settings"
        ],
        "type": "object",
        "properties": {
          "databaseId": {
            "type": "integer",
            "format": "int32"
          },
          "orgId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "settings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminSettingDto"
            }
          }
        }
      },
      "AdminSettingsUpdate": {
        "required": [
          "values",
          "locks"
        ],
        "type": "object",
        "properties": {
          "values": {
            "type": [
              "null",
              "object"
            ]
          },
          "locks": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "type": "boolean"
            }
          }
        }
      },
      "AdminSiteDetailDto": {
        "required": [
          "site",
          "databaseId",
          "orgId",
          "keys",
          "origins",
          "roles"
        ],
        "type": "object",
        "properties": {
          "site": {
            "$ref": "#/components/schemas/AdminSiteDto"
          },
          "databaseId": {
            "type": "integer",
            "format": "int32"
          },
          "orgId": {
            "type": "integer",
            "format": "int32"
          },
          "keys": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminSiteKeyDto"
            }
          },
          "origins": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminOriginDto"
            }
          },
          "roles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminSiteRoleDto"
            }
          }
        }
      },
      "AdminSiteDto": {
        "required": [
          "siteId",
          "name",
          "clientToken",
          "orgToken",
          "provider",
          "status",
          "portalUrl",
          "domains",
          "signInClientId",
          "templateLocked"
        ],
        "type": "object",
        "properties": {
          "siteId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "clientToken": {
            "type": "string"
          },
          "orgToken": {
            "type": "string"
          },
          "provider": {
            "$ref": "#/components/schemas/WebsiteProvider"
          },
          "status": {
            "$ref": "#/components/schemas/SiteStatus"
          },
          "portalUrl": {
            "type": [
              "null",
              "string"
            ],
            "format": "uri"
          },
          "domains": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SiteDomainDto"
            }
          },
          "signInClientId": {
            "type": [
              "null",
              "string"
            ]
          },
          "templateLocked": {
            "type": "boolean"
          },
          "duda": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ProvisionedSiteDto"
              }
            ]
          },
          "dudaWebsiteUrl": {
            "type": [
              "null",
              "string"
            ],
            "format": "uri"
          },
          "nfocusTemplate": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/WebsiteTemplateRef"
              }
            ]
          }
        }
      },
      "AdminSiteKeyDto": {
        "required": [
          "id",
          "kind",
          "prefix",
          "label",
          "createdUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "kind": {
            "$ref": "#/components/schemas/SiteKeyKind"
          },
          "prefix": {
            "type": "string"
          },
          "label": {
            "type": [
              "null",
              "string"
            ]
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "AdminSiteRoleDto": {
        "required": [
          "id",
          "siteId",
          "siteName",
          "email",
          "role",
          "linked",
          "grantedUtc",
          "grantedBy"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "siteId": {
            "type": "string",
            "format": "uuid"
          },
          "siteName": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "role": {
            "$ref": "#/components/schemas/StaffRole"
          },
          "linked": {
            "type": "boolean"
          },
          "grantedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "grantedBy": {
            "type": "string"
          }
        }
      },
      "AdminSiteSummaryDto": {
        "required": [
          "siteId",
          "name",
          "databaseId",
          "orgId",
          "clientToken",
          "orgToken",
          "provider",
          "status",
          "templateLocked"
        ],
        "type": "object",
        "properties": {
          "siteId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "databaseId": {
            "type": "integer",
            "format": "int32"
          },
          "orgId": {
            "type": "integer",
            "format": "int32"
          },
          "clientToken": {
            "type": "string"
          },
          "orgToken": {
            "type": "string"
          },
          "provider": {
            "$ref": "#/components/schemas/WebsiteProvider"
          },
          "status": {
            "$ref": "#/components/schemas/SiteStatus"
          },
          "templateLocked": {
            "type": "boolean"
          }
        }
      },
      "AdminStaffSearchDto": {
        "required": [
          "users",
          "invitations",
          "organizationInvitations"
        ],
        "type": "object",
        "properties": {
          "users": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminStaffUserSummaryDto"
            }
          },
          "invitations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminSiteRoleDto"
            }
          },
          "organizationInvitations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminOrgRoleDto"
            }
          }
        }
      },
      "AdminStaffUserDto": {
        "required": [
          "id",
          "email",
          "name",
          "createdUtc",
          "lastSeenUtc",
          "siteRoles",
          "organizationRoles",
          "invitations"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "email": {
            "type": "string"
          },
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "lastSeenUtc": {
            "type": "string",
            "format": "date-time"
          },
          "siteRoles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminSiteRoleDto"
            }
          },
          "organizationRoles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminOrgRoleDto"
            }
          },
          "invitations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminSiteRoleDto"
            }
          },
          "reportGrants": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/ReportGrantDto"
            }
          }
        }
      },
      "AdminStaffUserSummaryDto": {
        "required": [
          "id",
          "email",
          "name",
          "createdUtc",
          "lastSeenUtc"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "email": {
            "type": "string"
          },
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "lastSeenUtc": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "AdminTemplateDto": {
        "required": [
          "key",
          "name",
          "description",
          "status",
          "thumbnailUrl",
          "thumbnailAltText",
          "createdUtc",
          "updatedUtc",
          "versions"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "$ref": "#/components/schemas/TemplateStatus"
          },
          "thumbnailUrl": {
            "type": [
              "null",
              "string"
            ],
            "format": "uri"
          },
          "thumbnailAltText": {
            "type": [
              "null",
              "string"
            ]
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "versions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminTemplateVersionDto"
            }
          }
        }
      },
      "AdminTemplateVersionDto": {
        "required": [
          "version",
          "status",
          "notes",
          "createdUtc",
          "createdBy",
          "pages",
          "sites"
        ],
        "type": "object",
        "properties": {
          "version": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "$ref": "#/components/schemas/TemplateStatus"
          },
          "notes": {
            "type": [
              "null",
              "string"
            ]
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "createdBy": {
            "type": "string"
          },
          "pages": {
            "type": "integer",
            "format": "int32"
          },
          "sites": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "AgesDto": {
        "required": [
          "min",
          "max"
        ],
        "type": "object",
        "properties": {
          "min": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "max": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          }
        }
      },
      "AlarmDto": {
        "required": [
          "eventId",
          "name",
          "subject",
          "count"
        ],
        "type": "object",
        "properties": {
          "eventId": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "subject": {
            "type": "string"
          },
          "count": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "AlertDto": {
        "required": [
          "id",
          "message",
          "severity",
          "linkUrl",
          "linkText",
          "startUtc",
          "endUtc",
          "dismissible",
          "state",
          "status",
          "updatedUtc",
          "version"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "message": {
            "type": "string"
          },
          "severity": {
            "$ref": "#/components/schemas/AlertSeverity"
          },
          "linkUrl": {
            "type": [
              "null",
              "string"
            ]
          },
          "linkText": {
            "type": [
              "null",
              "string"
            ]
          },
          "startUtc": {
            "type": "string",
            "format": "date-time"
          },
          "endUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "dismissible": {
            "type": "boolean"
          },
          "state": {
            "$ref": "#/components/schemas/PublishState"
          },
          "status": {
            "$ref": "#/components/schemas/ContentStatus"
          },
          "updatedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "version": {
            "type": "string"
          }
        }
      },
      "AlertSeverity": {
        "enum": [
          "info",
          "warning",
          "urgent"
        ]
      },
      "AlertUpdate": {
        "required": [
          "message",
          "severity",
          "linkUrl",
          "linkText",
          "startUtc",
          "endUtc",
          "dismissible",
          "state"
        ],
        "type": "object",
        "properties": {
          "message": {
            "type": [
              "null",
              "string"
            ]
          },
          "severity": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/AlertSeverity"
              }
            ]
          },
          "linkUrl": {
            "type": [
              "null",
              "string"
            ]
          },
          "linkText": {
            "type": [
              "null",
              "string"
            ]
          },
          "startUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "endUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "dismissible": {
            "type": "boolean"
          },
          "state": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/PublishState"
              }
            ]
          }
        }
      },
      "AnalyticsDto": {
        "required": [
          "measurementId",
          "locationId",
          "events"
        ],
        "type": "object",
        "properties": {
          "measurementId": {
            "type": "string"
          },
          "locationId": {
            "type": [
              "null",
              "string"
            ]
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AnalyticsEventDto"
            }
          }
        }
      },
      "AnalyticsEventDto": {
        "required": [
          "key",
          "customName"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "customName": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AnnouncementDto": {
        "required": [
          "id",
          "title",
          "body",
          "linkUrl",
          "linkText",
          "startUtc",
          "endUtc",
          "pinned",
          "state",
          "status",
          "updatedUtc",
          "version"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "body": {
            "type": [
              "null",
              "string"
            ]
          },
          "linkUrl": {
            "type": [
              "null",
              "string"
            ]
          },
          "linkText": {
            "type": [
              "null",
              "string"
            ]
          },
          "startUtc": {
            "type": "string",
            "format": "date-time"
          },
          "endUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "pinned": {
            "type": "boolean"
          },
          "state": {
            "$ref": "#/components/schemas/PublishState"
          },
          "status": {
            "$ref": "#/components/schemas/ContentStatus"
          },
          "updatedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "version": {
            "type": "string"
          }
        }
      },
      "AnnouncementUpdate": {
        "required": [
          "title",
          "body",
          "linkUrl",
          "linkText",
          "startUtc",
          "endUtc",
          "pinned",
          "state"
        ],
        "type": "object",
        "properties": {
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "body": {
            "type": [
              "null",
              "string"
            ]
          },
          "linkUrl": {
            "type": [
              "null",
              "string"
            ]
          },
          "linkText": {
            "type": [
              "null",
              "string"
            ]
          },
          "startUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "endUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "pinned": {
            "type": "boolean"
          },
          "state": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/PublishState"
              }
            ]
          }
        }
      },
      "AuditEventDto": {
        "required": [
          "id",
          "createdUtc",
          "actorEmail",
          "action",
          "entityType",
          "entityId",
          "summary"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "actorEmail": {
            "type": "string"
          },
          "action": {
            "type": "string"
          },
          "entityType": {
            "type": [
              "null",
              "string"
            ]
          },
          "entityId": {
            "type": [
              "null",
              "string"
            ]
          },
          "summary": {
            "type": [
              "null",
              "string"
            ]
          },
          "siteId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "organizationId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          }
        }
      },
      "AutomaticPaymentCardDto": {
        "required": [
          "id",
          "name",
          "lastFour",
          "expired"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "lastFour": {
            "type": [
              "null",
              "string"
            ]
          },
          "expired": {
            "type": "boolean"
          }
        }
      },
      "AutomaticPaymentCardRequest": {
        "required": [
          "paymentMethodId"
        ],
        "type": "object",
        "properties": {
          "paymentMethodId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          }
        }
      },
      "AutomaticPaymentChargeDto": {
        "required": [
          "chargeId",
          "description",
          "personName",
          "amountCents"
        ],
        "type": "object",
        "properties": {
          "chargeId": {
            "type": "integer",
            "format": "int32"
          },
          "description": {
            "type": "string"
          },
          "personName": {
            "type": [
              "null",
              "string"
            ]
          },
          "amountCents": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "AutomaticPaymentDto": {
        "required": [
          "id",
          "date",
          "status",
          "organization",
          "amountCents",
          "convenienceFeeCents",
          "totalCents",
          "card",
          "charges",
          "canCancel",
          "canChangeCard"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "date": {
            "type": "string",
            "format": "date"
          },
          "status": {
            "type": "string"
          },
          "organization": {
            "$ref": "#/components/schemas/AutomaticPaymentOrganizationDto"
          },
          "amountCents": {
            "type": "integer",
            "format": "int64"
          },
          "convenienceFeeCents": {
            "type": "integer",
            "format": "int64"
          },
          "totalCents": {
            "type": "integer",
            "format": "int64"
          },
          "card": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/AutomaticPaymentCardDto"
              }
            ]
          },
          "charges": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AutomaticPaymentChargeDto"
            }
          },
          "canCancel": {
            "type": "boolean"
          },
          "canChangeCard": {
            "type": "boolean"
          }
        }
      },
      "AutomaticPaymentOrganizationDto": {
        "required": [
          "id",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "AutomaticPaymentsDto": {
        "required": [
          "offered",
          "cancelAllowed",
          "payments",
          "scheduledCents"
        ],
        "type": "object",
        "properties": {
          "offered": {
            "type": "boolean"
          },
          "cancelAllowed": {
            "type": "boolean"
          },
          "payments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AutomaticPaymentDto"
            }
          },
          "scheduledCents": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "Availability": {
        "enum": [
          "open",
          "upcoming",
          "waitlist",
          "fullWaitlist",
          "full",
          "closed",
          "mixed"
        ]
      },
      "BillingAddressDto": {
        "required": [
          "firstName",
          "lastName",
          "street1",
          "city",
          "stateProvince",
          "postalCode"
        ],
        "type": "object",
        "properties": {
          "firstName": {
            "type": [
              "null",
              "string"
            ]
          },
          "lastName": {
            "type": [
              "null",
              "string"
            ]
          },
          "street1": {
            "type": [
              "null",
              "string"
            ]
          },
          "city": {
            "type": [
              "null",
              "string"
            ]
          },
          "stateProvince": {
            "type": [
              "null",
              "string"
            ]
          },
          "postalCode": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "BillingRequest": {
        "required": [
          "firstName",
          "lastName",
          "street1",
          "city",
          "stateProvince",
          "postalCode"
        ],
        "type": "object",
        "properties": {
          "firstName": {
            "type": [
              "null",
              "string"
            ]
          },
          "lastName": {
            "type": [
              "null",
              "string"
            ]
          },
          "street1": {
            "type": [
              "null",
              "string"
            ]
          },
          "city": {
            "type": [
              "null",
              "string"
            ]
          },
          "stateProvince": {
            "type": [
              "null",
              "string"
            ]
          },
          "postalCode": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "BrandingDto": {
        "required": [
          "palette",
          "logos",
          "favicon",
          "themeColor"
        ],
        "type": "object",
        "properties": {
          "palette": {
            "$ref": "#/components/schemas/PaletteDto"
          },
          "logos": {
            "$ref": "#/components/schemas/LogosDto"
          },
          "favicon": {
            "type": [
              "null",
              "string"
            ],
            "format": "uri"
          },
          "themeColor": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CapabilitiesDto": {
        "required": [
          "capabilities"
        ],
        "type": "object",
        "properties": {
          "capabilities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CapabilityDto"
            }
          }
        }
      },
      "CapabilitiesUpdate": {
        "required": [
          "values",
          "locks"
        ],
        "type": "object",
        "properties": {
          "values": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "type": [
                "null",
                "boolean"
              ]
            }
          },
          "locks": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "type": "boolean"
            }
          }
        }
      },
      "CapabilityControl": {
        "enum": [
          "switchboard",
          "registrationSettings",
          "nfocus"
        ]
      },
      "CapabilityDto": {
        "required": [
          "key",
          "name",
          "gates",
          "owner",
          "controlledBy",
          "nfocusState",
          "choice",
          "locked",
          "inherited",
          "inheritedFrom",
          "lockedAbove",
          "legacy",
          "effective",
          "canChange"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "gates": {
            "type": "string"
          },
          "owner": {
            "$ref": "#/components/schemas/CapabilityOwner"
          },
          "controlledBy": {
            "$ref": "#/components/schemas/CapabilityControl"
          },
          "nfocusState": {
            "$ref": "#/components/schemas/CapabilityState"
          },
          "choice": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "locked": {
            "type": "boolean"
          },
          "inherited": {
            "type": "boolean"
          },
          "inheritedFrom": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "lockedAbove": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "legacy": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "effective": {
            "type": "boolean"
          },
          "canChange": {
            "type": "boolean"
          }
        }
      },
      "CapabilityOwner": {
        "enum": [
          "platform",
          "legacy"
        ]
      },
      "CapabilityState": {
        "enum": [
          "off",
          "available",
          "onLocked"
        ]
      },
      "CapabilityStateSource": {
        "enum": [
          "default",
          "client",
          "portal"
        ]
      },
      "CartActivityDto": {
        "required": [
          "id",
          "name",
          "program",
          "startDate",
          "endDate",
          "parentId"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "program": {
            "$ref": "#/components/schemas/NamedDto"
          },
          "startDate": {
            "type": "string",
            "format": "date"
          },
          "endDate": {
            "type": "string",
            "format": "date"
          },
          "parentId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          }
        }
      },
      "CartChargeDto": {
        "required": [
          "id",
          "description",
          "invoiceNumber",
          "dueDate",
          "amountCents",
          "remainingCents",
          "pastDue",
          "personName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "description": {
            "type": "string"
          },
          "invoiceNumber": {
            "type": [
              "null",
              "string"
            ]
          },
          "dueDate": {
            "type": "string",
            "format": "date"
          },
          "amountCents": {
            "type": "integer",
            "format": "int64"
          },
          "remainingCents": {
            "type": "integer",
            "format": "int64"
          },
          "pastDue": {
            "type": "boolean"
          },
          "personName": {
            "type": [
              "null",
              "string"
            ]
          },
          "scheduledPayment": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ScheduledPaymentRefDto"
              }
            ]
          }
        }
      },
      "CartConfigDto": {
        "required": [
          "guestCartDays"
        ],
        "type": "object",
        "properties": {
          "guestCartDays": {
            "type": "integer",
            "format": "int32"
          },
          "holdMinutes": {
            "type": "integer",
            "format": "int32",
            "default": 15
          },
          "holdExtensions": {
            "type": "integer",
            "format": "int32",
            "default": 1
          },
          "holdExtensionMinutes": {
            "type": "integer",
            "format": "int32",
            "default": 10
          },
          "remindersOffered": {
            "type": "boolean",
            "default": false
          }
        }
      },
      "CartDiscountDto": {
        "required": [
          "name",
          "percent"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "percent": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "CartDto": {
        "required": [
          "lines",
          "subtotalCents",
          "convenienceFeeCents",
          "totalCents",
          "laterCents",
          "creditCents",
          "canCheckOut"
        ],
        "type": "object",
        "properties": {
          "lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CartLineDto"
            }
          },
          "subtotalCents": {
            "type": "integer",
            "format": "int64"
          },
          "convenienceFeeCents": {
            "type": "integer",
            "format": "int64"
          },
          "totalCents": {
            "type": "integer",
            "format": "int64"
          },
          "laterCents": {
            "type": "integer",
            "format": "int64"
          },
          "creditCents": {
            "type": "integer",
            "format": "int64"
          },
          "canCheckOut": {
            "type": "boolean"
          },
          "automaticPayments": {
            "type": "boolean",
            "default": false
          },
          "savedForLater": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/CartLineDto"
            }
          },
          "reminders": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/CartRemindersDto"
              }
            ]
          },
          "laterSchedule": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/LaterPaymentDto"
            }
          }
        }
      },
      "CartFormAnswersDto": {
        "required": [
          "personId",
          "forms",
          "answers",
          "acceptedWaivers",
          "signatures",
          "savedUtc"
        ],
        "type": "object",
        "properties": {
          "personId": {
            "type": "integer",
            "format": "int32"
          },
          "forms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CartFormRefDto"
            }
          },
          "answers": {
            "type": "object"
          },
          "acceptedWaivers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AcceptedWaiverDto"
            }
          },
          "signatures": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SignatureDto"
            }
          },
          "savedUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "CartFormPersonDto": {
        "required": [
          "person",
          "forms",
          "waivers",
          "signatures",
          "savedUtc",
          "complete",
          "problems",
          "errors"
        ],
        "type": "object",
        "properties": {
          "person": {
            "$ref": "#/components/schemas/CartPersonDto"
          },
          "forms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CartFormRefDto"
            }
          },
          "waivers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CartWaiverDto"
            }
          },
          "signatures": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CartSignatureDto"
            }
          },
          "savedUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "complete": {
            "type": "boolean"
          },
          "problems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CartFormProblemDto"
            }
          },
          "errors": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        }
      },
      "CartFormProblemDto": {
        "required": [
          "code",
          "message"
        ],
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "formId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "waiverKind": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/WaiverKind"
              }
            ]
          },
          "waiverId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "signatureId": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CartFormRefDto": {
        "required": [
          "formId",
          "kind",
          "title",
          "definitionHash",
          "activityIds"
        ],
        "type": "object",
        "properties": {
          "formId": {
            "type": "integer",
            "format": "int32"
          },
          "kind": {
            "$ref": "#/components/schemas/FormKind"
          },
          "title": {
            "type": "string"
          },
          "definitionHash": {
            "type": "string"
          },
          "activityIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          }
        }
      },
      "CartFormsDto": {
        "required": [
          "people",
          "complete"
        ],
        "type": "object",
        "properties": {
          "people": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CartFormPersonDto"
            }
          },
          "complete": {
            "type": "boolean"
          }
        }
      },
      "CartHoldDto": {
        "required": [
          "expiresUtc",
          "secondsLeft",
          "extensionsLeft",
          "extensionMinutes"
        ],
        "type": "object",
        "properties": {
          "expiresUtc": {
            "type": "string",
            "format": "date-time"
          },
          "secondsLeft": {
            "type": "integer",
            "format": "int32"
          },
          "extensionsLeft": {
            "type": "integer",
            "format": "int32"
          },
          "extensionMinutes": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "CartInstallmentDto": {
        "required": [
          "id",
          "name",
          "amountCents",
          "chargeCents",
          "minimumDueCents",
          "dueDate",
          "payTodayCents"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "amountCents": {
            "type": "integer",
            "format": "int64"
          },
          "chargeCents": {
            "type": "integer",
            "format": "int64"
          },
          "minimumDueCents": {
            "type": "integer",
            "format": "int64"
          },
          "dueDate": {
            "type": "string",
            "format": "date"
          },
          "payTodayCents": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "CartLineDto": {
        "required": [
          "id",
          "kind",
          "person",
          "activity",
          "charge",
          "registration",
          "totalCents",
          "minimumCents",
          "payCents",
          "laterCents",
          "discount",
          "installments",
          "problems"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "$ref": "#/components/schemas/CartLineKind"
          },
          "person": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/CartPersonDto"
              }
            ]
          },
          "activity": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/CartActivityDto"
              }
            ]
          },
          "charge": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/CartChargeDto"
              }
            ]
          },
          "registration": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Registration"
              }
            ]
          },
          "totalCents": {
            "type": "integer",
            "format": "int64"
          },
          "minimumCents": {
            "type": "integer",
            "format": "int64"
          },
          "payCents": {
            "type": "integer",
            "format": "int64"
          },
          "laterCents": {
            "type": "integer",
            "format": "int64"
          },
          "discount": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/CartDiscountDto"
              }
            ]
          },
          "installments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CartInstallmentDto"
            }
          },
          "problems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EligibilityProblemDto"
            }
          },
          "membership": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/CartMembershipDto"
              }
            ]
          },
          "hold": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/CartHoldDto"
              }
            ]
          },
          "notices": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/CartNoticeDto"
            }
          },
          "designation": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/DonationDesignationDto"
              }
            ]
          }
        }
      },
      "CartLineKind": {
        "enum": [
          "activity",
          "charge",
          "membership",
          "donation"
        ]
      },
      "CartMembershipDto": {
        "required": [
          "id",
          "name",
          "forActivity",
          "waiverText",
          "periods"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "forActivity": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/NamedDto"
              }
            ]
          },
          "waiverText": {
            "type": [
              "null",
              "string"
            ]
          },
          "periods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CartPeriodDto"
            }
          }
        }
      },
      "CartMergeDto": {
        "required": [
          "merged",
          "dropped",
          "message",
          "cart"
        ],
        "type": "object",
        "properties": {
          "merged": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MergedLineDto"
            }
          },
          "dropped": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DroppedLineDto"
            }
          },
          "message": {
            "type": [
              "null",
              "string"
            ]
          },
          "cart": {
            "$ref": "#/components/schemas/CartDto"
          }
        }
      },
      "CartNoticeDto": {
        "required": [
          "code",
          "message"
        ],
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "oldCents": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          },
          "newCents": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          }
        }
      },
      "CartPeriodDto": {
        "required": [
          "startDate",
          "endDate",
          "amountCents",
          "minimumDueCents",
          "dueDate",
          "payTodayCents"
        ],
        "type": "object",
        "properties": {
          "startDate": {
            "type": "string",
            "format": "date"
          },
          "endDate": {
            "type": "string",
            "format": "date"
          },
          "amountCents": {
            "type": "integer",
            "format": "int64"
          },
          "minimumDueCents": {
            "type": "integer",
            "format": "int64"
          },
          "dueDate": {
            "type": "string",
            "format": "date"
          },
          "payTodayCents": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "CartPersonDto": {
        "required": [
          "id",
          "firstName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "firstName": {
            "type": "string"
          }
        }
      },
      "CartRemindersDto": {
        "required": [
          "offered",
          "optedIn"
        ],
        "type": "object",
        "properties": {
          "offered": {
            "type": "boolean"
          },
          "optedIn": {
            "type": "boolean"
          }
        }
      },
      "CartRemindersRequest": {
        "required": [
          "optIn"
        ],
        "type": "object",
        "properties": {
          "optIn": {
            "type": [
              "null",
              "boolean"
            ]
          }
        }
      },
      "CartSignatureDto": {
        "required": [
          "signatureId",
          "formId",
          "signeeRole",
          "required",
          "signedUtc"
        ],
        "type": "object",
        "properties": {
          "signatureId": {
            "type": "string"
          },
          "formId": {
            "type": "integer",
            "format": "int32"
          },
          "signeeRole": {
            "type": [
              "null",
              "string"
            ]
          },
          "required": {
            "type": "boolean"
          },
          "signedUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "CartWaiverDto": {
        "required": [
          "kind",
          "id",
          "title",
          "text",
          "textHash",
          "activityIds",
          "accepted"
        ],
        "type": "object",
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/WaiverKind"
          },
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "title": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "textHash": {
            "type": "string"
          },
          "activityIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          },
          "accepted": {
            "type": "boolean"
          }
        }
      },
      "CatalogFiltersDto": {
        "required": [
          "programs",
          "categories",
          "locations",
          "genders",
          "schoolYears",
          "gradeLevels",
          "days",
          "tags",
          "ages",
          "minFeeCents",
          "maxFeeCents"
        ],
        "type": "object",
        "properties": {
          "programs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NamedDto"
            }
          },
          "categories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NamedDto"
            }
          },
          "locations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NamedDto"
            }
          },
          "genders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NamedDto"
            }
          },
          "schoolYears": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NamedDto"
            }
          },
          "gradeLevels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NamedDto"
            }
          },
          "days": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "ages": {
            "$ref": "#/components/schemas/AgesDto"
          },
          "minFeeCents": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          },
          "maxFeeCents": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          }
        }
      },
      "ChangeEmailRequest": {
        "required": [
          "password",
          "newEmail"
        ],
        "type": "object",
        "properties": {
          "password": {
            "type": [
              "null",
              "string"
            ]
          },
          "newEmail": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ChangePasswordRequest": {
        "required": [
          "currentPassword",
          "newPassword"
        ],
        "type": "object",
        "properties": {
          "currentPassword": {
            "type": [
              "null",
              "string"
            ]
          },
          "newPassword": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ChangeRoleRequest": {
        "required": [
          "role"
        ],
        "type": "object",
        "properties": {
          "role": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/StaffRole"
              }
            ]
          }
        }
      },
      "CheckoutPaymentRequest": {
        "required": [
          "nonce",
          "firstName",
          "lastName",
          "street1",
          "city",
          "stateProvince",
          "postalCode",
          "phone"
        ],
        "type": "object",
        "properties": {
          "nonce": {
            "type": [
              "null",
              "string"
            ]
          },
          "firstName": {
            "type": [
              "null",
              "string"
            ]
          },
          "lastName": {
            "type": [
              "null",
              "string"
            ]
          },
          "street1": {
            "type": [
              "null",
              "string"
            ]
          },
          "city": {
            "type": [
              "null",
              "string"
            ]
          },
          "stateProvince": {
            "type": [
              "null",
              "string"
            ]
          },
          "postalCode": {
            "type": [
              "null",
              "string"
            ]
          },
          "phone": {
            "type": [
              "null",
              "string"
            ]
          },
          "paymentMethodId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "saveCard": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "cardName": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CheckoutRequest": {
        "required": [
          "expectedTotalCents",
          "payment"
        ],
        "type": "object",
        "properties": {
          "expectedTotalCents": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          },
          "payment": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/CheckoutPaymentRequest"
              }
            ]
          },
          "captchaToken": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CheckoutStatus": {
        "enum": [
          "pending",
          "completed",
          "failed"
        ]
      },
      "ChoiceOption": {
        "required": [
          "value",
          "label"
        ],
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "label": {
            "type": "string"
          }
        }
      },
      "ClientAvailability": {
        "enum": [
          "available",
          "unavailable"
        ]
      },
      "ClientContactDto": {
        "required": [
          "id",
          "kind",
          "name",
          "title",
          "email",
          "phone",
          "notes",
          "updatedUtc",
          "updatedBy"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "kind": {
            "$ref": "#/components/schemas/ClientContactKind"
          },
          "name": {
            "type": "string"
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "phone": {
            "type": [
              "null",
              "string"
            ]
          },
          "notes": {
            "type": [
              "null",
              "string"
            ]
          },
          "updatedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedBy": {
            "type": "string"
          }
        }
      },
      "ClientContactKind": {
        "enum": [
          "primary",
          "billing",
          "technical",
          "other"
        ]
      },
      "ClientContactRequest": {
        "required": [
          "kind",
          "name"
        ],
        "type": "object",
        "properties": {
          "kind": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ClientContactKind"
              }
            ]
          },
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "phone": {
            "type": [
              "null",
              "string"
            ]
          },
          "notes": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ClientContactsDto": {
        "required": [
          "databaseId",
          "contacts"
        ],
        "type": "object",
        "properties": {
          "databaseId": {
            "type": "integer",
            "format": "int32"
          },
          "contacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ClientContactDto"
            }
          }
        }
      },
      "ClientContactsUpdate": {
        "required": [
          "contacts"
        ],
        "type": "object",
        "properties": {
          "contacts": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/ClientContactRequest"
            }
          }
        }
      },
      "ClientTemplatesDto": {
        "required": [
          "databaseId",
          "templateKeys",
          "available"
        ],
        "type": "object",
        "properties": {
          "databaseId": {
            "type": "integer",
            "format": "int32"
          },
          "templateKeys": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "available": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ClientTemplatesUpdate": {
        "required": [
          "templateKeys"
        ],
        "type": "object",
        "properties": {
          "templateKeys": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ClientTokenDto": {
        "required": [
          "clientToken"
        ],
        "type": "object",
        "properties": {
          "clientToken": {
            "type": "string"
          }
        }
      },
      "CollectionConnection": {
        "required": [
          "name",
          "feed",
          "connected"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "feed": {
            "type": "string"
          },
          "connected": {
            "type": "boolean"
          }
        }
      },
      "ColorSlot": {
        "required": [
          "slot",
          "label",
          "default",
          "checks"
        ],
        "type": "object",
        "properties": {
          "slot": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "default": {
            "type": "string"
          },
          "checks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContrastCheck"
            }
          }
        }
      },
      "ContactDto": {
        "required": [
          "id",
          "locationId",
          "name",
          "role",
          "phone",
          "email",
          "public",
          "state",
          "displayOrder",
          "updatedUtc",
          "updatedBy",
          "version"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "locationId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "role": {
            "type": [
              "null",
              "string"
            ]
          },
          "phone": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "public": {
            "type": "boolean"
          },
          "state": {
            "$ref": "#/components/schemas/PublishState"
          },
          "displayOrder": {
            "type": "integer",
            "format": "int32"
          },
          "updatedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedBy": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        }
      },
      "ContactUpdate": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "role": {
            "type": [
              "null",
              "string"
            ]
          },
          "phone": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "public": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "locationId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          }
        }
      },
      "ContentStatus": {
        "enum": [
          "draft",
          "scheduled",
          "published",
          "active",
          "ended",
          "archived"
        ]
      },
      "ContrastCheck": {
        "required": [
          "against",
          "level",
          "use"
        ],
        "type": "object",
        "properties": {
          "against": {
            "type": "string"
          },
          "level": {
            "type": "string"
          },
          "use": {
            "type": "string"
          }
        }
      },
      "CreateTemplateRequest": {
        "required": [
          "key",
          "name",
          "description"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": [
              "null",
              "string"
            ]
          },
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "DayOfWeek": {
        "enum": [
          "sunday",
          "monday",
          "tuesday",
          "wednesday",
          "thursday",
          "friday",
          "saturday"
        ]
      },
      "DefaultsBranding": {
        "type": "object",
        "properties": {
          "colors": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "type": "string"
            }
          },
          "headingFont": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "DesignationOptionDto": {
        "required": [
          "kind",
          "id",
          "name"
        ],
        "type": "object",
        "properties": {
          "kind": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "amountCents": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          },
          "minimumCents": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          },
          "maximumCents": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          },
          "locationId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          }
        }
      },
      "DesignationRequest": {
        "type": "object",
        "properties": {
          "kind": {
            "type": [
              "null",
              "string"
            ]
          },
          "id": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "DocumentDto": {
        "required": [
          "documentId",
          "name",
          "contentType",
          "createdUtc",
          "length",
          "url"
        ],
        "type": "object",
        "properties": {
          "documentId": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "contentType": {
            "type": "string"
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "length": {
            "type": "integer",
            "format": "int64"
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "DomainOwnershipDto": {
        "required": [
          "recordType",
          "recordName",
          "recordValue",
          "provedUtc"
        ],
        "type": "object",
        "properties": {
          "recordType": {
            "type": "string"
          },
          "recordName": {
            "type": "string"
          },
          "recordValue": {
            "type": "string"
          },
          "provedUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "DomainUpdate": {
        "required": [
          "domainType",
          "domainPrefix",
          "customDomain"
        ],
        "type": "object",
        "properties": {
          "domainType": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SiteDomainType"
              }
            ]
          },
          "domainPrefix": {
            "type": [
              "null",
              "string"
            ]
          },
          "customDomain": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "DonationDesignationDto": {
        "required": [
          "kind",
          "id",
          "name"
        ],
        "type": "object",
        "properties": {
          "kind": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "DonationOptionsDto": {
        "required": [
          "enabled",
          "minimumCents",
          "maximumCents",
          "greetingContentKey",
          "captchaSiteKey"
        ],
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "minimumCents": {
            "type": "integer",
            "format": "int64"
          },
          "maximumCents": {
            "type": "integer",
            "format": "int64"
          },
          "greetingContentKey": {
            "type": "string"
          },
          "captchaSiteKey": {
            "type": [
              "null",
              "string"
            ]
          },
          "designations": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/DesignationOptionDto"
            }
          },
          "minimumCardPaymentCents": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          }
        }
      },
      "DonationRequest": {
        "required": [
          "amountCents",
          "donor",
          "nonce"
        ],
        "type": "object",
        "properties": {
          "amountCents": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          },
          "donor": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/DonorRequest"
              }
            ]
          },
          "nonce": {
            "type": [
              "null",
              "string"
            ]
          },
          "captchaToken": {
            "type": [
              "null",
              "string"
            ]
          },
          "designation": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/DesignationRequest"
              }
            ]
          }
        }
      },
      "DonorRequest": {
        "required": [
          "firstName",
          "lastName",
          "email",
          "street1",
          "city",
          "stateProvince",
          "postalCode",
          "phone"
        ],
        "type": "object",
        "properties": {
          "firstName": {
            "type": [
              "null",
              "string"
            ]
          },
          "lastName": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "street1": {
            "type": [
              "null",
              "string"
            ]
          },
          "city": {
            "type": [
              "null",
              "string"
            ]
          },
          "stateProvince": {
            "type": [
              "null",
              "string"
            ]
          },
          "postalCode": {
            "type": [
              "null",
              "string"
            ]
          },
          "phone": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "DroppedLineDto": {
        "required": [
          "kind",
          "name",
          "code",
          "message"
        ],
        "type": "object",
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/CartLineKind"
          },
          "name": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        }
      },
      "DudaStatusDto": {
        "required": [
          "provisioned",
          "dudaSiteName",
          "template",
          "templateLocked",
          "domainType",
          "domainPrefix",
          "customDomain",
          "siteUrl",
          "dudaUrl",
          "published",
          "contentSyncedUtc",
          "pendingJobs"
        ],
        "type": "object",
        "properties": {
          "provisioned": {
            "type": "boolean"
          },
          "dudaSiteName": {
            "type": [
              "null",
              "string"
            ]
          },
          "template": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/TemplateDto"
              }
            ]
          },
          "templateLocked": {
            "type": "boolean"
          },
          "domainType": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SiteDomainType"
              }
            ]
          },
          "domainPrefix": {
            "type": [
              "null",
              "string"
            ]
          },
          "customDomain": {
            "type": [
              "null",
              "string"
            ]
          },
          "siteUrl": {
            "type": [
              "null",
              "string"
            ]
          },
          "dudaUrl": {
            "type": [
              "null",
              "string"
            ]
          },
          "published": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "contentSyncedUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "pendingJobs": {
            "type": "integer",
            "format": "int32"
          },
          "collections": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/CollectionConnection"
            }
          }
        }
      },
      "EligibilityBatchDto": {
        "required": [
          "items"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EligibilityItemDto"
            }
          }
        }
      },
      "EligibilityBatchRequest": {
        "required": [
          "items"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/EligibilityItemRequest"
            }
          }
        }
      },
      "EligibilityItemDto": {
        "required": [
          "activityId",
          "personId",
          "eligible",
          "registration",
          "problems"
        ],
        "type": "object",
        "properties": {
          "activityId": {
            "type": "integer",
            "format": "int32"
          },
          "personId": {
            "type": "integer",
            "format": "int32"
          },
          "eligible": {
            "type": "boolean"
          },
          "registration": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Registration"
              }
            ]
          },
          "problems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EligibilityProblemDto"
            }
          }
        }
      },
      "EligibilityItemRequest": {
        "required": [
          "activityId",
          "personId"
        ],
        "type": "object",
        "properties": {
          "activityId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "personId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          }
        }
      },
      "EligibilityProblemDto": {
        "required": [
          "code",
          "message",
          "membershipTypes",
          "amountCents",
          "parent"
        ],
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "membershipTypes": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/MembershipOptionDto"
            }
          },
          "amountCents": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          },
          "parent": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/NamedDto"
              }
            ]
          },
          "renewsOn": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          }
        }
      },
      "EnrollmentStatus": {
        "enum": [
          "enrolled",
          "waitListed",
          "cancelled",
          "noShow",
          "dropped",
          "completed",
          "didNotFinish",
          "approved",
          "attended",
          null
        ]
      },
      "FeaturesDto": {
        "required": [
          "activities",
          "memberships",
          "donations",
          "parentPortalOnly",
          "paymentPlans",
          "newDashboard",
          "traxTalkSmsOptIn"
        ],
        "type": "object",
        "properties": {
          "activities": {
            "type": "boolean"
          },
          "memberships": {
            "type": "boolean"
          },
          "donations": {
            "type": "boolean"
          },
          "parentPortalOnly": {
            "type": "boolean"
          },
          "paymentPlans": {
            "type": "boolean"
          },
          "newDashboard": {
            "type": "boolean"
          },
          "traxTalkSmsOptIn": {
            "type": "boolean"
          }
        }
      },
      "FeeBreakdownDto": {
        "required": [
          "activityId",
          "feeId",
          "name",
          "totalCents",
          "minimumDueCents",
          "text",
          "installments"
        ],
        "type": "object",
        "properties": {
          "activityId": {
            "type": "integer",
            "format": "int32"
          },
          "feeId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "totalCents": {
            "type": "integer",
            "format": "int64"
          },
          "minimumDueCents": {
            "type": "integer",
            "format": "int64"
          },
          "text": {
            "type": "string"
          },
          "installments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InstallmentDto"
            }
          }
        }
      },
      "FieldDef": {
        "required": [
          "name",
          "type",
          "label"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "help": {
            "type": [
              "null",
              "string"
            ]
          },
          "required": {
            "type": "boolean",
            "default": false
          },
          "max": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "min": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "aspect": {
            "type": [
              "null",
              "string"
            ]
          },
          "tolerance": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "minWidth": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "options": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/ChoiceOption"
            }
          },
          "minItems": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "maxItems": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "fields": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/FieldDef"
            }
          },
          "kinds": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "FormAnswersDto": {
        "required": [
          "formId",
          "definitionHash",
          "answers"
        ],
        "type": "object",
        "properties": {
          "formId": {
            "type": "integer",
            "format": "int32"
          },
          "definitionHash": {
            "type": "string"
          },
          "answers": {
            "type": "object"
          }
        }
      },
      "FormColumnDto": {
        "required": [
          "width",
          "element",
          "rows"
        ],
        "type": "object",
        "properties": {
          "width": {
            "type": [
              "null",
              "string"
            ]
          },
          "element": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/FormElementDto"
              }
            ]
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FormRowDto"
            }
          }
        }
      },
      "FormDefinitionDto": {
        "required": [
          "formId",
          "kind",
          "title",
          "definitionHash",
          "rows"
        ],
        "type": "object",
        "properties": {
          "formId": {
            "type": "integer",
            "format": "int32"
          },
          "kind": {
            "$ref": "#/components/schemas/FormKind"
          },
          "title": {
            "type": "string"
          },
          "definitionHash": {
            "type": "string"
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FormRowDto"
            }
          }
        }
      },
      "FormElementDto": {
        "required": [
          "type"
        ],
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "key": {
            "type": [
              "null",
              "string"
            ]
          },
          "label": {
            "type": [
              "null",
              "string"
            ]
          },
          "required": {
            "type": "boolean"
          },
          "requiredWhen": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxLength": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "minLength": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "min": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "max": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "step": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "isDob": {
            "type": "boolean"
          },
          "options": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/FormOptionDto"
            }
          },
          "listType": {
            "type": [
              "null",
              "string"
            ]
          },
          "columnCount": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "lines": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "readOnly": {
            "type": "boolean"
          },
          "writeOnly": {
            "type": "boolean"
          },
          "email": {
            "type": "boolean"
          },
          "item": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/FormRowDto"
            }
          },
          "allowAdd": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "singleItem": {
            "type": "boolean"
          },
          "typeKey": {
            "type": [
              "null",
              "string"
            ]
          },
          "typeLabel": {
            "type": [
              "null",
              "string"
            ]
          },
          "typeOptions": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/FormOptionDto"
            }
          },
          "allowEdit": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "allowRemove": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "html": {
            "type": [
              "null",
              "string"
            ]
          },
          "text": {
            "type": [
              "null",
              "string"
            ]
          },
          "align": {
            "type": [
              "null",
              "string"
            ]
          },
          "signatureId": {
            "type": [
              "null",
              "string"
            ]
          },
          "signeeRole": {
            "type": [
              "null",
              "string"
            ]
          },
          "usageDescription": {
            "type": [
              "null",
              "string"
            ]
          },
          "showPrintedName": {
            "type": "boolean"
          },
          "showDate": {
            "type": "boolean"
          }
        }
      },
      "FormKind": {
        "enum": [
          "household",
          "participant",
          "activity"
        ]
      },
      "FormOptionDto": {
        "required": [
          "value",
          "text"
        ],
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        }
      },
      "FormRowDto": {
        "required": [
          "columns"
        ],
        "type": "object",
        "properties": {
          "columns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FormColumnDto"
            }
          }
        }
      },
      "GeoPoint": {
        "required": [
          "latitude",
          "longitude"
        ],
        "type": "object",
        "properties": {
          "latitude": {
            "type": "number",
            "format": "double"
          },
          "longitude": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "GradeDto": {
        "required": [
          "schoolYearId",
          "schoolYear",
          "gradeLevelId",
          "gradeLevel"
        ],
        "type": "object",
        "properties": {
          "schoolYearId": {
            "type": "integer",
            "format": "int32"
          },
          "schoolYear": {
            "type": "string"
          },
          "gradeLevelId": {
            "type": "integer",
            "format": "int32"
          },
          "gradeLevel": {
            "type": "string"
          }
        }
      },
      "GrantOrgRoleRequest": {
        "required": [
          "databaseId",
          "organizationId",
          "email",
          "role"
        ],
        "type": "object",
        "properties": {
          "databaseId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "organizationId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "role": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/StaffRole"
              }
            ]
          }
        }
      },
      "GuestCartCreatedDto": {
        "required": [
          "token",
          "expiresUtc",
          "cart"
        ],
        "type": "object",
        "properties": {
          "token": {
            "type": "string"
          },
          "expiresUtc": {
            "type": "string",
            "format": "date-time"
          },
          "cart": {
            "$ref": "#/components/schemas/GuestCartDto"
          }
        }
      },
      "GuestCartDto": {
        "required": [
          "expiresUtc",
          "lines",
          "subtotalCents",
          "convenienceFeeCents",
          "totalCents",
          "laterCents"
        ],
        "type": "object",
        "properties": {
          "expiresUtc": {
            "type": "string",
            "format": "date-time"
          },
          "lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CartLineDto"
            }
          },
          "subtotalCents": {
            "type": "integer",
            "format": "int64"
          },
          "convenienceFeeCents": {
            "type": "integer",
            "format": "int64"
          },
          "totalCents": {
            "type": "integer",
            "format": "int64"
          },
          "laterCents": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "HealthResponse": {
        "required": [
          "status"
        ],
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          }
        }
      },
      "HoursLine": {
        "required": [
          "days",
          "hours"
        ],
        "type": "object",
        "properties": {
          "days": {
            "type": "string"
          },
          "hours": {
            "type": "string"
          }
        }
      },
      "HouseholdDto": {
        "required": [
          "verified",
          "accountHolder",
          "members"
        ],
        "type": "object",
        "properties": {
          "verified": {
            "type": "boolean"
          },
          "accountHolder": {
            "$ref": "#/components/schemas/AccountHolderDto"
          },
          "members": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MemberDto"
            }
          }
        }
      },
      "HttpValidationProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": [
              "null",
              "string"
            ]
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "detail": {
            "type": [
              "null",
              "string"
            ]
          },
          "instance": {
            "type": [
              "null",
              "string"
            ]
          },
          "errors": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        }
      },
      "IFormFile": {
        "type": "string",
        "format": "binary"
      },
      "ImpactNumberDto": {
        "required": [
          "id",
          "locationId",
          "value",
          "label",
          "sourceTitle",
          "sourceNote",
          "state",
          "displayOrder",
          "updatedUtc",
          "updatedBy",
          "version"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "locationId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "value": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "sourceTitle": {
            "type": [
              "null",
              "string"
            ]
          },
          "sourceNote": {
            "type": [
              "null",
              "string"
            ]
          },
          "state": {
            "$ref": "#/components/schemas/PublishState"
          },
          "displayOrder": {
            "type": "integer",
            "format": "int32"
          },
          "updatedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedBy": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        }
      },
      "ImpactNumberUpdate": {
        "required": [
          "value",
          "label"
        ],
        "type": "object",
        "properties": {
          "value": {
            "type": [
              "null",
              "string"
            ]
          },
          "label": {
            "type": [
              "null",
              "string"
            ]
          },
          "sourceTitle": {
            "type": [
              "null",
              "string"
            ]
          },
          "sourceNote": {
            "type": [
              "null",
              "string"
            ]
          },
          "locationId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          }
        }
      },
      "InheritedDefaultsDto": {
        "required": [
          "template",
          "templateFrom",
          "templateLockedAt",
          "branding",
          "brandingFrom",
          "brandingLockedAt"
        ],
        "type": "object",
        "properties": {
          "template": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/WebsiteTemplateRef"
              }
            ]
          },
          "templateFrom": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "templateLockedAt": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "branding": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/DefaultsBranding"
              }
            ]
          },
          "brandingFrom": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "brandingLockedAt": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          }
        }
      },
      "InstallmentDto": {
        "required": [
          "id",
          "name",
          "amountCents",
          "discountedAmountCents",
          "minimumDueCents",
          "dueDate"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "amountCents": {
            "type": "integer",
            "format": "int64"
          },
          "discountedAmountCents": {
            "type": "integer",
            "format": "int64"
          },
          "minimumDueCents": {
            "type": "integer",
            "format": "int64"
          },
          "dueDate": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          }
        }
      },
      "InviteRequest": {
        "required": [
          "email",
          "role"
        ],
        "type": "object",
        "properties": {
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "role": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/StaffRole"
              }
            ]
          }
        }
      },
      "IssuedKeyDto": {
        "required": [
          "id",
          "kind",
          "key",
          "prefix",
          "createdUtc",
          "revoked"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "kind": {
            "$ref": "#/components/schemas/SiteKeyKind"
          },
          "key": {
            "type": "string"
          },
          "prefix": {
            "type": "string"
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "revoked": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "IssueKeyRequest": {
        "required": [
          "kind"
        ],
        "type": "object",
        "properties": {
          "kind": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SiteKeyKind"
              }
            ]
          }
        }
      },
      "JobStatusDto": {
        "required": [
          "name",
          "instance",
          "intervalSeconds",
          "lastPassUtc",
          "lastSuccessUtc",
          "consecutiveFailures",
          "lastErrorType",
          "stalled"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "instance": {
            "type": "string"
          },
          "intervalSeconds": {
            "type": "integer",
            "format": "int32"
          },
          "lastPassUtc": {
            "type": "string",
            "format": "date-time"
          },
          "lastSuccessUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "consecutiveFailures": {
            "type": "integer",
            "format": "int32"
          },
          "lastErrorType": {
            "type": [
              "null",
              "string"
            ]
          },
          "stalled": {
            "type": "boolean"
          },
          "latestEventId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          }
        }
      },
      "JsonElement": { },
      "JsonObject": {
        "type": "object"
      },
      "LaterPaidBy": {
        "enum": [
          "automatic",
          "plan",
          "invoice"
        ]
      },
      "LaterPaymentDto": {
        "required": [
          "date",
          "amountCents",
          "paidBy",
          "processingFee"
        ],
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "format": "date"
          },
          "amountCents": {
            "type": "integer",
            "format": "int64"
          },
          "paidBy": {
            "$ref": "#/components/schemas/LaterPaidBy"
          },
          "processingFee": {
            "type": "boolean"
          }
        }
      },
      "ListingDto": {
        "required": [
          "listingId",
          "kind",
          "id",
          "slug",
          "name",
          "description",
          "imageUrl",
          "location",
          "programs",
          "categories",
          "startDate",
          "endDate",
          "days",
          "ages",
          "bornOnOrAfter",
          "bornBefore",
          "genders",
          "grades",
          "fee",
          "availability",
          "availabilityLabel",
          "spotsLeft",
          "requiresMembership",
          "memberships",
          "prerequisites",
          "tags",
          "sessions"
        ],
        "type": "object",
        "properties": {
          "listingId": {
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/ListingKind"
          },
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "imageUrl": {
            "type": [
              "null",
              "string"
            ],
            "format": "uri"
          },
          "location": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/NamedDto"
              }
            ]
          },
          "programs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NamedDto"
            }
          },
          "categories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NamedDto"
            }
          },
          "startDate": {
            "type": "string",
            "format": "date"
          },
          "endDate": {
            "type": "string",
            "format": "date"
          },
          "days": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "ages": {
            "$ref": "#/components/schemas/AgesDto"
          },
          "bornOnOrAfter": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "bornBefore": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "genders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NamedDto"
            }
          },
          "grades": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GradeDto"
            }
          },
          "fee": {
            "$ref": "#/components/schemas/ListingFeeDto"
          },
          "availability": {
            "$ref": "#/components/schemas/Availability"
          },
          "availabilityLabel": {
            "type": "string"
          },
          "spotsLeft": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "requiresMembership": {
            "type": "boolean"
          },
          "memberships": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NamedDto"
            }
          },
          "prerequisites": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sessions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SessionDto"
            }
          },
          "spotsHeld": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          }
        }
      },
      "ListingFeeDto": {
        "required": [
          "fromCents",
          "text"
        ],
        "type": "object",
        "properties": {
          "fromCents": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          },
          "text": {
            "type": "string"
          }
        }
      },
      "ListingKind": {
        "enum": [
          "activity",
          "group",
          "hierarchy"
        ]
      },
      "LocationAction": {
        "required": [
          "kind",
          "label"
        ],
        "type": "object",
        "properties": {
          "kind": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean",
            "default": true
          },
          "url": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "LocationDetailsDto": {
        "required": [
          "slug",
          "roleLine",
          "description",
          "accessibilityNotes",
          "photo",
          "latitude",
          "longitude",
          "openingHours",
          "specialHours",
          "actions",
          "layout",
          "traxLocationId"
        ],
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "roleLine": {
            "type": [
              "null",
              "string"
            ]
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "accessibilityNotes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LocationNote"
            }
          },
          "photo": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/MediaRef"
              }
            ]
          },
          "latitude": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "longitude": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "openingHours": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpeningSpan"
            }
          },
          "specialHours": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SpecialHours"
            }
          },
          "actions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LocationAction"
            }
          },
          "layout": {
            "type": [
              "null",
              "string"
            ]
          },
          "traxLocationId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          }
        }
      },
      "LocationDetailsUpdate": {
        "type": "object",
        "properties": {
          "slug": {
            "type": [
              "null",
              "string"
            ]
          },
          "roleLine": {
            "type": [
              "null",
              "string"
            ]
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "accessibilityNotes": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/LocationNote"
            }
          },
          "photoMediaId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "latitude": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "longitude": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "openingHours": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/OpeningSpan"
            }
          },
          "specialHours": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/SpecialHours"
            }
          },
          "actions": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/LocationAction"
            }
          },
          "layout": {
            "type": [
              "null",
              "string"
            ]
          },
          "traxLocationId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          }
        }
      },
      "LocationDto": {
        "required": [
          "id",
          "name",
          "address1",
          "address2",
          "city",
          "stateProvince",
          "postalCode",
          "phone",
          "email",
          "hours",
          "notes",
          "isPrimary",
          "displayOrder",
          "version"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "address1": {
            "type": [
              "null",
              "string"
            ]
          },
          "address2": {
            "type": [
              "null",
              "string"
            ]
          },
          "city": {
            "type": [
              "null",
              "string"
            ]
          },
          "stateProvince": {
            "type": [
              "null",
              "string"
            ]
          },
          "postalCode": {
            "type": [
              "null",
              "string"
            ]
          },
          "phone": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "hours": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HoursLine"
            }
          },
          "notes": {
            "type": [
              "null",
              "string"
            ]
          },
          "isPrimary": {
            "type": "boolean"
          },
          "displayOrder": {
            "type": "integer",
            "format": "int32"
          },
          "version": {
            "type": "string"
          },
          "details": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/LocationDetailsDto"
              }
            ]
          }
        }
      },
      "LocationNote": {
        "required": [
          "title",
          "text",
          "icon"
        ],
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "text": {
            "type": [
              "null",
              "string"
            ]
          },
          "icon": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "LocationUpdate": {
        "required": [
          "name",
          "address1",
          "address2",
          "city",
          "stateProvince",
          "postalCode",
          "phone",
          "email",
          "hours",
          "notes",
          "isPrimary"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "address1": {
            "type": [
              "null",
              "string"
            ]
          },
          "address2": {
            "type": [
              "null",
              "string"
            ]
          },
          "city": {
            "type": [
              "null",
              "string"
            ]
          },
          "stateProvince": {
            "type": [
              "null",
              "string"
            ]
          },
          "postalCode": {
            "type": [
              "null",
              "string"
            ]
          },
          "phone": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "hours": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/HoursLine"
            }
          },
          "notes": {
            "type": [
              "null",
              "string"
            ]
          },
          "isPrimary": {
            "type": "boolean"
          },
          "details": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/LocationDetailsUpdate"
              }
            ]
          }
        }
      },
      "LogEventDto": {
        "required": [
          "id",
          "occurredUtc",
          "lastOccurredUtc",
          "kind",
          "severity",
          "code",
          "count",
          "summary",
          "organizationId",
          "siteId",
          "endpoint",
          "traceId",
          "orderId",
          "domain",
          "actor"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "occurredUtc": {
            "type": "string",
            "format": "date-time"
          },
          "lastOccurredUtc": {
            "type": "string",
            "format": "date-time"
          },
          "kind": {
            "type": "string"
          },
          "severity": {
            "$ref": "#/components/schemas/TroubleshootingSeverity"
          },
          "code": {
            "type": "string"
          },
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "summary": {
            "type": "string"
          },
          "organizationId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "siteId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "endpoint": {
            "type": [
              "null",
              "string"
            ]
          },
          "traceId": {
            "type": [
              "null",
              "string"
            ]
          },
          "orderId": {
            "type": [
              "null",
              "string"
            ]
          },
          "domain": {
            "type": [
              "null",
              "string"
            ]
          },
          "actor": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "LogosDto": {
        "required": [
          "main",
          "small",
          "menu"
        ],
        "type": "object",
        "properties": {
          "main": {
            "type": [
              "null",
              "string"
            ],
            "format": "uri"
          },
          "small": {
            "type": [
              "null",
              "string"
            ],
            "format": "uri"
          },
          "menu": {
            "type": [
              "null",
              "string"
            ],
            "format": "uri"
          }
        }
      },
      "LogSource": {
        "enum": [
          "api",
          "worker",
          "audit",
          "adminAudit"
        ]
      },
      "LookupsDto": {
        "required": [
          "genders",
          "relationshipTypes",
          "states",
          "schools",
          "schoolYears",
          "gradeLevels",
          "addressTypes",
          "phoneTypes",
          "emailTypes"
        ],
        "type": "object",
        "properties": {
          "genders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NamedDto"
            }
          },
          "relationshipTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NamedDto"
            }
          },
          "states": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StateDto"
            }
          },
          "schools": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NamedDto"
            }
          },
          "schoolYears": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SchoolYearDto"
            }
          },
          "gradeLevels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NamedDto"
            }
          },
          "addressTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NamedDto"
            }
          },
          "phoneTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NamedDto"
            }
          },
          "emailTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NamedDto"
            }
          }
        }
      },
      "MediaAltUpdate": {
        "required": [
          "altText"
        ],
        "type": "object",
        "properties": {
          "altText": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "MediaDto": {
        "required": [
          "id",
          "url",
          "fileName",
          "contentType",
          "width",
          "height",
          "length",
          "altText",
          "createdUtc",
          "createdBy"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "fileName": {
            "type": "string"
          },
          "contentType": {
            "type": "string"
          },
          "width": {
            "type": "integer",
            "format": "int32"
          },
          "height": {
            "type": "integer",
            "format": "int32"
          },
          "length": {
            "type": "integer",
            "format": "int64"
          },
          "altText": {
            "type": "string"
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "createdBy": {
            "type": "string"
          }
        }
      },
      "MediaRef": {
        "required": [
          "id",
          "url",
          "altText",
          "width",
          "height"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "altText": {
            "type": "string"
          },
          "width": {
            "type": "integer",
            "format": "int32"
          },
          "height": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "MemberDto": {
        "required": [
          "personId",
          "firstName",
          "lastName",
          "birthDate",
          "gender",
          "isAccountHolder",
          "relationship",
          "school",
          "membershipStatus",
          "memberships",
          "documentCount"
        ],
        "type": "object",
        "properties": {
          "personId": {
            "type": "integer",
            "format": "int32"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "birthDate": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "gender": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/NamedDto"
              }
            ]
          },
          "isAccountHolder": {
            "type": "boolean"
          },
          "relationship": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/NamedDto"
              }
            ]
          },
          "school": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SchoolDto"
              }
            ]
          },
          "membershipStatus": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/MembershipState"
              }
            ]
          },
          "memberships": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MemberMembershipDto"
            }
          },
          "documentCount": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "MemberEligibilityDto": {
        "required": [
          "personId",
          "firstName",
          "eligible",
          "registration",
          "problems"
        ],
        "type": "object",
        "properties": {
          "personId": {
            "type": "integer",
            "format": "int32"
          },
          "firstName": {
            "type": "string"
          },
          "eligible": {
            "type": "boolean"
          },
          "registration": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Registration"
              }
            ]
          },
          "problems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EligibilityProblemDto"
            }
          }
        }
      },
      "MemberMembershipDto": {
        "required": [
          "membershipTypeId",
          "name",
          "startDate",
          "endDate",
          "status"
        ],
        "type": "object",
        "properties": {
          "membershipTypeId": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "startDate": {
            "type": "string",
            "format": "date"
          },
          "endDate": {
            "type": "string",
            "format": "date"
          },
          "status": {
            "$ref": "#/components/schemas/MembershipState"
          }
        }
      },
      "MemberRequest": {
        "required": [
          "firstName",
          "lastName",
          "birthDate",
          "genderId",
          "schoolYearId",
          "schoolId",
          "gradeLevelId"
        ],
        "type": "object",
        "properties": {
          "firstName": {
            "type": [
              "null",
              "string"
            ]
          },
          "lastName": {
            "type": [
              "null",
              "string"
            ]
          },
          "birthDate": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "genderId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "schoolYearId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "schoolId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "gradeLevelId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          }
        }
      },
      "MembershipCollectionItem": {
        "required": [
          "id",
          "slug",
          "name",
          "duration",
          "fee",
          "feeCents",
          "waiverText"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "duration": {
            "type": "string"
          },
          "fee": {
            "type": "string"
          },
          "feeCents": {
            "type": "integer",
            "format": "int64"
          },
          "waiverText": {
            "type": "string"
          }
        }
      },
      "MembershipDto": {
        "required": [
          "id",
          "name",
          "parent",
          "duration",
          "waiverText",
          "fee",
          "canPurchase"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "parent": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/NamedDto"
              }
            ]
          },
          "duration": {
            "$ref": "#/components/schemas/MembershipDurationDto"
          },
          "waiverText": {
            "type": [
              "null",
              "string"
            ]
          },
          "fee": {
            "$ref": "#/components/schemas/MembershipFeeDto"
          },
          "canPurchase": {
            "type": "boolean"
          }
        }
      },
      "MembershipDurationDto": {
        "required": [
          "type",
          "startMonth",
          "startDay",
          "endMonth",
          "endDay",
          "unit",
          "quantity"
        ],
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "startMonth": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "startDay": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "endMonth": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "endDay": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "unit": {
            "type": [
              "null",
              "string"
            ]
          },
          "quantity": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          }
        }
      },
      "MembershipEligibilityDto": {
        "required": [
          "membershipTypeId",
          "name",
          "members"
        ],
        "type": "object",
        "properties": {
          "membershipTypeId": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "members": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MembershipMemberDto"
            }
          }
        }
      },
      "MembershipFeeDto": {
        "required": [
          "amountCents",
          "minimumDueCents",
          "text"
        ],
        "type": "object",
        "properties": {
          "amountCents": {
            "type": "integer",
            "format": "int64"
          },
          "minimumDueCents": {
            "type": "integer",
            "format": "int64"
          },
          "text": {
            "type": "string"
          }
        }
      },
      "MembershipMemberDto": {
        "required": [
          "personId",
          "firstName",
          "canBuy",
          "periods",
          "totalCents",
          "problems"
        ],
        "type": "object",
        "properties": {
          "personId": {
            "type": "integer",
            "format": "int32"
          },
          "firstName": {
            "type": "string"
          },
          "canBuy": {
            "type": "boolean"
          },
          "periods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CartPeriodDto"
            }
          },
          "totalCents": {
            "type": "integer",
            "format": "int64"
          },
          "problems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EligibilityProblemDto"
            }
          }
        }
      },
      "MembershipOptionDto": {
        "required": [
          "id",
          "name",
          "canBuy"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "canBuy": {
            "type": "boolean"
          }
        }
      },
      "MembershipRegistrationDto": {
        "required": [
          "id",
          "personId",
          "participantName",
          "membershipTypeId",
          "name",
          "startDate",
          "endDate",
          "status",
          "organizationName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "personId": {
            "type": "integer",
            "format": "int32"
          },
          "participantName": {
            "type": "string"
          },
          "membershipTypeId": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "startDate": {
            "type": "string",
            "format": "date"
          },
          "endDate": {
            "type": "string",
            "format": "date"
          },
          "status": {
            "$ref": "#/components/schemas/MembershipState"
          },
          "organizationName": {
            "type": "string"
          }
        }
      },
      "MembershipState": {
        "enum": [
          "active",
          "upcoming",
          "expired",
          null
        ]
      },
      "MeResponse": {
        "required": [
          "email",
          "firstName",
          "lastName",
          "personId"
        ],
        "type": "object",
        "properties": {
          "email": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "personId": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "MergedLineDto": {
        "required": [
          "itemId",
          "kind",
          "name"
        ],
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "$ref": "#/components/schemas/CartLineKind"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "MoneySettingsDto": {
        "required": [
          "convenienceFeeCents",
          "convenienceFeePercent",
          "showMinimumPaymentAmount",
          "showCurrentMonthBalance",
          "allowPaymentPlanForBalanceDue",
          "automaticPayments",
          "automaticPaymentCancel",
          "paymentPlanCustomAmounts"
        ],
        "type": "object",
        "properties": {
          "convenienceFeeCents": {
            "type": "integer",
            "format": "int64"
          },
          "convenienceFeePercent": {
            "type": "number",
            "format": "double"
          },
          "showMinimumPaymentAmount": {
            "type": "boolean"
          },
          "showCurrentMonthBalance": {
            "type": "boolean"
          },
          "allowPaymentPlanForBalanceDue": {
            "type": "boolean"
          },
          "automaticPayments": {
            "type": "boolean"
          },
          "automaticPaymentCancel": {
            "type": "boolean"
          },
          "paymentPlanCustomAmounts": {
            "type": "boolean"
          }
        }
      },
      "NamedDto": {
        "required": [
          "id",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "NfocusTemplateDto": {
        "required": [
          "key",
          "name",
          "description",
          "status",
          "versions"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "$ref": "#/components/schemas/TemplateStatus"
          },
          "versions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TemplateVersionSummary"
            }
          },
          "thumbnailUrl": {
            "type": [
              "null",
              "string"
            ],
            "format": "uri"
          },
          "thumbnailAltText": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "OnboardedSiteDto": {
        "required": [
          "siteId",
          "name",
          "clientToken",
          "orgToken",
          "provider",
          "status",
          "portalUrl",
          "signInClientId",
          "template"
        ],
        "type": "object",
        "properties": {
          "siteId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "clientToken": {
            "type": "string"
          },
          "orgToken": {
            "type": "string"
          },
          "provider": {
            "$ref": "#/components/schemas/WebsiteProvider"
          },
          "status": {
            "$ref": "#/components/schemas/SiteStatus"
          },
          "portalUrl": {
            "type": [
              "null",
              "string"
            ],
            "format": "uri"
          },
          "signInClientId": {
            "type": [
              "null",
              "string"
            ]
          },
          "template": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/WebsiteTemplateRef"
              }
            ]
          }
        }
      },
      "OnboardingPlanDto": {
        "required": [
          "clientToken",
          "orgToken",
          "organizationId",
          "name",
          "provider",
          "existingSiteId",
          "template",
          "templateFrom",
          "defaultsFrom",
          "brandingFromOrganization",
          "domains",
          "signInClientId",
          "invitations",
          "problems"
        ],
        "type": "object",
        "properties": {
          "clientToken": {
            "type": "string"
          },
          "orgToken": {
            "type": "string"
          },
          "organizationId": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "provider": {
            "$ref": "#/components/schemas/WebsiteProvider"
          },
          "existingSiteId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "template": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/WebsiteTemplateRef"
              }
            ]
          },
          "templateFrom": {
            "type": [
              "null",
              "string"
            ]
          },
          "defaultsFrom": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "brandingFromOrganization": {
            "type": "boolean"
          },
          "domains": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PlannedDomainDto"
            }
          },
          "signInClientId": {
            "type": "string"
          },
          "invitations": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "problems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PlanProblemDto"
            }
          }
        }
      },
      "OnboardSiteRequest": {
        "required": [
          "clientToken",
          "orgToken",
          "provider",
          "siteAdminEmail",
          "domains",
          "templateId",
          "domainType",
          "domainPrefix",
          "customDomain"
        ],
        "type": "object",
        "properties": {
          "clientToken": {
            "type": [
              "null",
              "string"
            ]
          },
          "orgToken": {
            "type": [
              "null",
              "string"
            ]
          },
          "provider": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/WebsiteProvider"
              }
            ]
          },
          "siteAdminEmail": {
            "type": [
              "null",
              "string"
            ]
          },
          "domains": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "templateId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "domainType": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SiteDomainType"
              }
            ]
          },
          "domainPrefix": {
            "type": [
              "null",
              "string"
            ]
          },
          "customDomain": {
            "type": [
              "null",
              "string"
            ]
          },
          "templateKey": {
            "type": [
              "null",
              "string"
            ]
          },
          "templateVersion": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          }
        }
      },
      "OpeningSpan": {
        "required": [
          "day",
          "opens",
          "closes"
        ],
        "type": "object",
        "properties": {
          "day": {
            "$ref": "#/components/schemas/DayOfWeek"
          },
          "opens": {
            "type": "string"
          },
          "closes": {
            "type": "string"
          }
        }
      },
      "OperationsStatusDto": {
        "required": [
          "checkedUtc",
          "queues",
          "jobs",
          "alarms"
        ],
        "type": "object",
        "properties": {
          "checkedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "queues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QueueStatusDto"
            }
          },
          "jobs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/JobStatusDto"
            }
          },
          "alarms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AlarmDto"
            }
          }
        }
      },
      "OrderCardDto": {
        "required": [
          "type",
          "lastFour"
        ],
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "lastFour": {
            "type": "string"
          },
          "paymentMethodId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          }
        }
      },
      "OrderDto": {
        "required": [
          "id",
          "status",
          "createdUtc",
          "receiptNumber",
          "accountNumber",
          "lines",
          "convenienceFeeCents",
          "paidCents",
          "laterCents",
          "card"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/CheckoutStatus"
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "receiptNumber": {
            "type": [
              "null",
              "string"
            ]
          },
          "accountNumber": {
            "type": [
              "null",
              "string"
            ]
          },
          "lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrderLineDto"
            }
          },
          "convenienceFeeCents": {
            "type": "integer",
            "format": "int64"
          },
          "paidCents": {
            "type": "integer",
            "format": "int64"
          },
          "laterCents": {
            "type": "integer",
            "format": "int64"
          },
          "card": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OrderCardDto"
              }
            ]
          }
        }
      },
      "OrderLineDto": {
        "required": [
          "kind",
          "description",
          "person",
          "activityId",
          "registration",
          "amountCents",
          "paidCents"
        ],
        "type": "object",
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/CartLineKind"
          },
          "description": {
            "type": "string"
          },
          "person": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/CartPersonDto"
              }
            ]
          },
          "activityId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "registration": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Registration"
              }
            ]
          },
          "amountCents": {
            "type": "integer",
            "format": "int64"
          },
          "paidCents": {
            "type": "integer",
            "format": "int64"
          },
          "membershipTypeId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "periods": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/OrderPeriodDto"
            }
          },
          "designation": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/DonationDesignationDto"
              }
            ]
          }
        }
      },
      "OrderPeriodDto": {
        "required": [
          "startDate",
          "endDate",
          "amountCents",
          "dueDate",
          "paidCents"
        ],
        "type": "object",
        "properties": {
          "startDate": {
            "type": "string",
            "format": "date"
          },
          "endDate": {
            "type": "string",
            "format": "date"
          },
          "amountCents": {
            "type": "integer",
            "format": "int64"
          },
          "dueDate": {
            "type": "string",
            "format": "date"
          },
          "paidCents": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "OrderRecoveryState": {
        "enum": [
          "none",
          "interrupted",
          "settling",
          "settlementFailed",
          "voiding"
        ]
      },
      "OrderUpdate": {
        "required": [
          "ids"
        ],
        "type": "object",
        "properties": {
          "ids": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string",
              "format": "uuid"
            }
          }
        }
      },
      "OrganizationDefaultsDto": {
        "required": [
          "organizationId",
          "own",
          "inherited",
          "canChangeTemplate",
          "canChangeBranding"
        ],
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "integer",
            "format": "int32"
          },
          "own": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OrganizationDefaultsValues"
              }
            ]
          },
          "inherited": {
            "$ref": "#/components/schemas/InheritedDefaultsDto"
          },
          "canChangeTemplate": {
            "type": "boolean"
          },
          "canChangeBranding": {
            "type": "boolean"
          }
        }
      },
      "OrganizationDefaultsUpdate": {
        "type": "object",
        "properties": {
          "templateKey": {
            "type": [
              "null",
              "string"
            ]
          },
          "templateVersion": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "branding": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/DefaultsBranding"
              }
            ]
          },
          "templateLocked": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "brandingLocked": {
            "type": [
              "null",
              "boolean"
            ]
          }
        }
      },
      "OrganizationDefaultsValues": {
        "required": [
          "template",
          "branding",
          "templateLocked",
          "brandingLocked"
        ],
        "type": "object",
        "properties": {
          "template": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/WebsiteTemplateRef"
              }
            ]
          },
          "branding": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/DefaultsBranding"
              }
            ]
          },
          "templateLocked": {
            "type": "boolean"
          },
          "brandingLocked": {
            "type": "boolean"
          }
        }
      },
      "OrganizationDetailDto": {
        "required": [
          "clientToken",
          "organizationId",
          "name",
          "parentId",
          "yourRole",
          "organizations"
        ],
        "type": "object",
        "properties": {
          "clientToken": {
            "type": "string"
          },
          "organizationId": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "parentId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "yourRole": {
            "$ref": "#/components/schemas/StaffRole"
          },
          "organizations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrganizationNodeDto"
            }
          }
        }
      },
      "OrganizationDto": {
        "required": [
          "id",
          "name",
          "address",
          "phone",
          "email",
          "website"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "address": {
            "$ref": "#/components/schemas/AddressDto"
          },
          "phone": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "website": {
            "type": [
              "null",
              "string"
            ],
            "format": "uri"
          }
        }
      },
      "OrganizationNodeDto": {
        "required": [
          "organizationId",
          "name",
          "parentId",
          "depth",
          "portal",
          "site"
        ],
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "parentId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "depth": {
            "type": "integer",
            "format": "int32"
          },
          "portal": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OrganizationPortalDto"
              }
            ]
          },
          "site": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OrganizationSiteDto"
              }
            ]
          }
        }
      },
      "OrganizationOnboardRequest": {
        "required": [
          "orgToken"
        ],
        "type": "object",
        "properties": {
          "orgToken": {
            "type": [
              "null",
              "string"
            ]
          },
          "templateKey": {
            "type": [
              "null",
              "string"
            ]
          },
          "templateVersion": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "siteAdminEmail": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "OrganizationPortalDto": {
        "required": [
          "orgToken",
          "title"
        ],
        "type": "object",
        "properties": {
          "orgToken": {
            "type": "string"
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "OrganizationRoleDto": {
        "required": [
          "id",
          "organizationId",
          "organizationName",
          "email",
          "role",
          "linked",
          "grantedUtc",
          "grantedBy"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "organizationId": {
            "type": "integer",
            "format": "int32"
          },
          "organizationName": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": "string"
          },
          "role": {
            "$ref": "#/components/schemas/StaffRole"
          },
          "linked": {
            "type": "boolean"
          },
          "grantedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "grantedBy": {
            "type": "string"
          }
        }
      },
      "OrganizationRoleRequest": {
        "required": [
          "organizationId",
          "email",
          "role"
        ],
        "type": "object",
        "properties": {
          "organizationId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "role": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/StaffRole"
              }
            ]
          }
        }
      },
      "OrganizationSiteDto": {
        "required": [
          "siteId",
          "name",
          "provider",
          "status"
        ],
        "type": "object",
        "properties": {
          "siteId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "provider": {
            "$ref": "#/components/schemas/WebsiteProvider"
          },
          "status": {
            "$ref": "#/components/schemas/SiteStatus"
          }
        }
      },
      "OutcomeDto": {
        "required": [
          "id",
          "locationId",
          "title",
          "text",
          "measures",
          "programs",
          "accent",
          "state",
          "displayOrder",
          "updatedUtc",
          "updatedBy",
          "version"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "locationId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "text": {
            "type": [
              "null",
              "string"
            ]
          },
          "measures": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "programs": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "accent": {
            "type": [
              "null",
              "string"
            ]
          },
          "state": {
            "$ref": "#/components/schemas/PublishState"
          },
          "displayOrder": {
            "type": "integer",
            "format": "int32"
          },
          "updatedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedBy": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        }
      },
      "OutcomeUpdate": {
        "required": [
          "title"
        ],
        "type": "object",
        "properties": {
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "text": {
            "type": [
              "null",
              "string"
            ]
          },
          "measures": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "programs": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "accent": {
            "type": [
              "null",
              "string"
            ]
          },
          "locationId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          }
        }
      },
      "PageDef": {
        "required": [
          "key",
          "title",
          "path",
          "layout",
          "nav",
          "sections"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "path": {
            "type": [
              "null",
              "string"
            ]
          },
          "layout": {
            "type": [
              "null",
              "string"
            ]
          },
          "nav": {
            "type": "boolean"
          },
          "sections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SectionDef"
            }
          }
        }
      },
      "PageDtoOfAdminAuditEventDto": {
        "required": [
          "items",
          "page",
          "pageSize",
          "totalItems",
          "totalPages"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminAuditEventDto"
            }
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalItems": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "PageDtoOfAdminLogEventDto": {
        "required": [
          "items",
          "page",
          "pageSize",
          "totalItems",
          "totalPages"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminLogEventDto"
            }
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalItems": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "PageDtoOfAdminOrgRoleDto": {
        "required": [
          "items",
          "page",
          "pageSize",
          "totalItems",
          "totalPages"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminOrgRoleDto"
            }
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalItems": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "PageDtoOfAdminSiteSummaryDto": {
        "required": [
          "items",
          "page",
          "pageSize",
          "totalItems",
          "totalPages"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminSiteSummaryDto"
            }
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalItems": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "PageDtoOfAuditEventDto": {
        "required": [
          "items",
          "page",
          "pageSize",
          "totalItems",
          "totalPages"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AuditEventDto"
            }
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalItems": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "PageDtoOfListingDto": {
        "required": [
          "items",
          "page",
          "pageSize",
          "totalItems",
          "totalPages"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListingDto"
            }
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalItems": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "PageDtoOfLogEventDto": {
        "required": [
          "items",
          "page",
          "pageSize",
          "totalItems",
          "totalPages"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LogEventDto"
            }
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalItems": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "PageDtoOfMediaDto": {
        "required": [
          "items",
          "page",
          "pageSize",
          "totalItems",
          "totalPages"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MediaDto"
            }
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalItems": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "PageDtoOfPostSummaryDto": {
        "required": [
          "items",
          "page",
          "pageSize",
          "totalItems",
          "totalPages"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PostSummaryDto"
            }
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalItems": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "PageDtoOfReportGrantDto": {
        "required": [
          "items",
          "page",
          "pageSize",
          "totalItems",
          "totalPages"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReportGrantDto"
            }
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalItems": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "PageDtoOfWebsitePostSummary": {
        "required": [
          "items",
          "page",
          "pageSize",
          "totalItems",
          "totalPages"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebsitePostSummary"
            }
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalItems": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "PaletteDto": {
        "required": [
          "primary",
          "accent",
          "warn",
          "primaryContrast"
        ],
        "type": "object",
        "properties": {
          "primary": {
            "type": [
              "null",
              "string"
            ]
          },
          "accent": {
            "type": [
              "null",
              "string"
            ]
          },
          "warn": {
            "type": [
              "null",
              "string"
            ]
          },
          "primaryContrast": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PathwayDto": {
        "required": [
          "id",
          "locationId",
          "name",
          "minAge",
          "maxAge",
          "text",
          "state",
          "displayOrder",
          "updatedUtc",
          "updatedBy",
          "version"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "locationId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "minAge": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "maxAge": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "text": {
            "type": [
              "null",
              "string"
            ]
          },
          "state": {
            "$ref": "#/components/schemas/PublishState"
          },
          "displayOrder": {
            "type": "integer",
            "format": "int32"
          },
          "updatedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedBy": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        }
      },
      "PathwayUpdate": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "minAge": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "maxAge": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "text": {
            "type": [
              "null",
              "string"
            ]
          },
          "locationId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          }
        }
      },
      "PayAmountRequest": {
        "required": [
          "amountCents"
        ],
        "type": "object",
        "properties": {
          "amountCents": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          }
        }
      },
      "PaymentMethodDto": {
        "required": [
          "id",
          "name",
          "cardType",
          "lastFour",
          "expirationMonth",
          "expirationYear",
          "expired",
          "cardholderName",
          "isDefault",
          "inUse",
          "billingAddress"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "cardType": {
            "type": "string"
          },
          "lastFour": {
            "type": "string"
          },
          "expirationMonth": {
            "type": "string"
          },
          "expirationYear": {
            "type": "string"
          },
          "expired": {
            "type": "boolean"
          },
          "cardholderName": {
            "type": [
              "null",
              "string"
            ]
          },
          "isDefault": {
            "type": "boolean"
          },
          "inUse": {
            "type": "boolean"
          },
          "billingAddress": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/BillingAddressDto"
              }
            ]
          }
        }
      },
      "PaymentMethodListDto": {
        "required": [
          "items",
          "maximum"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PaymentMethodDto"
            }
          },
          "maximum": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "PaymentPlanDto": {
        "required": [
          "status",
          "offered",
          "customAmountsOffered",
          "terms",
          "card",
          "payments",
          "scheduledCents",
          "uncoveredCents",
          "earliestStartDate",
          "latestStartDate"
        ],
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          },
          "offered": {
            "type": "boolean"
          },
          "customAmountsOffered": {
            "type": "boolean"
          },
          "terms": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/PaymentPlanTermsDto"
              }
            ]
          },
          "card": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/PlanCardDto"
              }
            ]
          },
          "payments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PlanPaymentDto"
            }
          },
          "scheduledCents": {
            "type": "integer",
            "format": "int64"
          },
          "uncoveredCents": {
            "type": "integer",
            "format": "int64"
          },
          "earliestStartDate": {
            "type": "string",
            "format": "date"
          },
          "latestStartDate": {
            "type": "string",
            "format": "date"
          }
        }
      },
      "PaymentPlanPreviewDto": {
        "required": [
          "payments",
          "scheduledCents",
          "uncoveredCents",
          "startDate",
          "endDate"
        ],
        "type": "object",
        "properties": {
          "payments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PlanPaymentDto"
            }
          },
          "scheduledCents": {
            "type": "integer",
            "format": "int64"
          },
          "uncoveredCents": {
            "type": "integer",
            "format": "int64"
          },
          "startDate": {
            "type": "string",
            "format": "date"
          },
          "endDate": {
            "type": "string",
            "format": "date"
          }
        }
      },
      "PaymentPlanRequest": {
        "required": [
          "type",
          "paymentDay",
          "startDate",
          "payments",
          "endDate",
          "amountCents",
          "paymentMethodId"
        ],
        "type": "object",
        "properties": {
          "type": {
            "type": [
              "null",
              "string"
            ]
          },
          "paymentDay": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "startDate": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "payments": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "endDate": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "amountCents": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          },
          "paymentMethodId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          }
        }
      },
      "PaymentPlanTermsDto": {
        "required": [
          "type",
          "paymentDay",
          "startDate",
          "endDate",
          "payments",
          "amountCents"
        ],
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "paymentDay": {
            "type": "integer",
            "format": "int32"
          },
          "startDate": {
            "type": "string",
            "format": "date"
          },
          "endDate": {
            "type": "string",
            "format": "date"
          },
          "payments": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "amountCents": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          }
        }
      },
      "PayNowModesDto": {
        "required": [
          "dueNow",
          "currentMonth",
          "accountBalance"
        ],
        "type": "object",
        "properties": {
          "dueNow": {
            "$ref": "#/components/schemas/PayNowSetDto"
          },
          "currentMonth": {
            "$ref": "#/components/schemas/PayNowSetDto"
          },
          "accountBalance": {
            "$ref": "#/components/schemas/PayNowSetDto"
          }
        }
      },
      "PayNowSetDto": {
        "required": [
          "chargeIds",
          "totalCents"
        ],
        "type": "object",
        "properties": {
          "chargeIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          },
          "totalCents": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "PlanCardDto": {
        "required": [
          "id",
          "name",
          "lastFour",
          "expired"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "lastFour": {
            "type": [
              "null",
              "string"
            ]
          },
          "expired": {
            "type": "boolean"
          }
        }
      },
      "PlanCardRequest": {
        "required": [
          "paymentMethodId"
        ],
        "type": "object",
        "properties": {
          "paymentMethodId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          }
        }
      },
      "PlanChargeDto": {
        "required": [
          "chargeId",
          "description",
          "personName",
          "amountCents"
        ],
        "type": "object",
        "properties": {
          "chargeId": {
            "type": "integer",
            "format": "int32"
          },
          "description": {
            "type": "string"
          },
          "personName": {
            "type": [
              "null",
              "string"
            ]
          },
          "amountCents": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "PlannedDomainDto": {
        "required": [
          "host",
          "kind",
          "expectedStatus",
          "heldElsewhere"
        ],
        "type": "object",
        "properties": {
          "host": {
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/SiteDomainKind"
          },
          "expectedStatus": {
            "$ref": "#/components/schemas/SiteDomainStatus"
          },
          "heldElsewhere": {
            "type": "boolean"
          }
        }
      },
      "PlanPaymentDto": {
        "required": [
          "id",
          "date",
          "amountCents",
          "convenienceFeeCents",
          "totalCents",
          "pending",
          "charges"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "date": {
            "type": "string",
            "format": "date"
          },
          "amountCents": {
            "type": "integer",
            "format": "int64"
          },
          "convenienceFeeCents": {
            "type": "integer",
            "format": "int64"
          },
          "totalCents": {
            "type": "integer",
            "format": "int64"
          },
          "pending": {
            "type": "boolean"
          },
          "charges": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PlanChargeDto"
            }
          }
        }
      },
      "PlanProblemDto": {
        "required": [
          "code",
          "detail"
        ],
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          }
        }
      },
      "PortalConfigResponse": {
        "required": [
          "clientName",
          "organizationId",
          "organizationName",
          "title",
          "culture",
          "timeZoneId",
          "siteUrl",
          "organization",
          "branding",
          "features",
          "money",
          "phoneValidationMode",
          "analytics",
          "captchaSiteKey"
        ],
        "type": "object",
        "properties": {
          "clientName": {
            "type": "string"
          },
          "organizationId": {
            "type": "integer",
            "format": "int32"
          },
          "organizationName": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "culture": {
            "type": "string"
          },
          "timeZoneId": {
            "type": [
              "null",
              "string"
            ]
          },
          "siteUrl": {
            "type": [
              "null",
              "string"
            ],
            "format": "uri"
          },
          "organization": {
            "$ref": "#/components/schemas/OrganizationDto"
          },
          "branding": {
            "$ref": "#/components/schemas/BrandingDto"
          },
          "features": {
            "$ref": "#/components/schemas/FeaturesDto"
          },
          "money": {
            "$ref": "#/components/schemas/MoneySettingsDto"
          },
          "phoneValidationMode": {
            "type": "string"
          },
          "analytics": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/AnalyticsDto"
              }
            ]
          },
          "captchaSiteKey": {
            "type": [
              "null",
              "string"
            ]
          },
          "cart": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/CartConfigDto"
              }
            ]
          },
          "website": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/PortalWebsiteDto"
              }
            ]
          },
          "capabilities": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "type": "boolean"
            }
          }
        }
      },
      "PortalContentResponse": {
        "required": [
          "key",
          "html"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "html": {
            "type": "string"
          }
        }
      },
      "PortalOrganizationDto": {
        "required": [
          "organizationId",
          "name",
          "title",
          "orgToken",
          "siteUrl",
          "isCurrent"
        ],
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "orgToken": {
            "type": "string"
          },
          "siteUrl": {
            "type": [
              "null",
              "string"
            ],
            "format": "uri"
          },
          "isCurrent": {
            "type": "boolean"
          }
        }
      },
      "PortalWebsiteDto": {
        "required": [
          "provider",
          "templateKey",
          "primaryUrl"
        ],
        "type": "object",
        "properties": {
          "provider": {
            "$ref": "#/components/schemas/WebsiteProvider"
          },
          "templateKey": {
            "type": [
              "null",
              "string"
            ]
          },
          "primaryUrl": {
            "type": [
              "null",
              "string"
            ],
            "format": "uri"
          }
        }
      },
      "PostDto": {
        "required": [
          "id",
          "kind",
          "title",
          "slug",
          "summary",
          "bodyHtml",
          "hero",
          "authorName",
          "tags",
          "seoTitle",
          "seoDescription",
          "state",
          "status",
          "publishUtc",
          "unpublishUtc",
          "revision",
          "createdUtc",
          "createdBy",
          "updatedUtc",
          "updatedBy",
          "version"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "$ref": "#/components/schemas/PostKind"
          },
          "title": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "summary": {
            "type": [
              "null",
              "string"
            ]
          },
          "bodyHtml": {
            "type": "string"
          },
          "hero": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/MediaRef"
              }
            ]
          },
          "authorName": {
            "type": [
              "null",
              "string"
            ]
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "seoTitle": {
            "type": [
              "null",
              "string"
            ]
          },
          "seoDescription": {
            "type": [
              "null",
              "string"
            ]
          },
          "state": {
            "$ref": "#/components/schemas/PublishState"
          },
          "status": {
            "$ref": "#/components/schemas/ContentStatus"
          },
          "publishUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "unpublishUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "revision": {
            "type": "integer",
            "format": "int32"
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "createdBy": {
            "type": "string"
          },
          "updatedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedBy": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        }
      },
      "PostKind": {
        "enum": [
          "blog",
          "news"
        ]
      },
      "PostSnapshot": {
        "required": [
          "kind",
          "title",
          "slug",
          "summary",
          "bodyHtml",
          "heroMediaId",
          "authorName",
          "tags",
          "seoTitle",
          "seoDescription"
        ],
        "type": "object",
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/PostKind"
          },
          "title": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "summary": {
            "type": [
              "null",
              "string"
            ]
          },
          "bodyHtml": {
            "type": "string"
          },
          "heroMediaId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "authorName": {
            "type": [
              "null",
              "string"
            ]
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "seoTitle": {
            "type": [
              "null",
              "string"
            ]
          },
          "seoDescription": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PostSummaryDto": {
        "required": [
          "id",
          "kind",
          "title",
          "slug",
          "state",
          "status",
          "publishUtc",
          "unpublishUtc",
          "authorName",
          "updatedUtc",
          "updatedBy"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "$ref": "#/components/schemas/PostKind"
          },
          "title": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "state": {
            "$ref": "#/components/schemas/PublishState"
          },
          "status": {
            "$ref": "#/components/schemas/ContentStatus"
          },
          "publishUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "unpublishUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "authorName": {
            "type": [
              "null",
              "string"
            ]
          },
          "updatedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedBy": {
            "type": "string"
          }
        }
      },
      "PostUpdate": {
        "required": [
          "kind",
          "title",
          "slug",
          "summary",
          "bodyHtml",
          "heroMediaId",
          "authorName",
          "tags",
          "seoTitle",
          "seoDescription"
        ],
        "type": "object",
        "properties": {
          "kind": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/PostKind"
              }
            ]
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "slug": {
            "type": [
              "null",
              "string"
            ]
          },
          "summary": {
            "type": [
              "null",
              "string"
            ]
          },
          "bodyHtml": {
            "type": [
              "null",
              "string"
            ]
          },
          "heroMediaId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "authorName": {
            "type": [
              "null",
              "string"
            ]
          },
          "tags": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "seoTitle": {
            "type": [
              "null",
              "string"
            ]
          },
          "seoDescription": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PreviewLinkDto": {
        "required": [
          "url",
          "expiresUtc"
        ],
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "format": "uri"
          },
          "expiresUtc": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": [
              "null",
              "string"
            ]
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "detail": {
            "type": [
              "null",
              "string"
            ]
          },
          "instance": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ProfileDto": {
        "required": [
          "trax",
          "overrides",
          "effective",
          "tagline",
          "about",
          "mission",
          "hours",
          "social",
          "logo",
          "hero",
          "version"
        ],
        "type": "object",
        "properties": {
          "trax": {
            "$ref": "#/components/schemas/ProfileFields"
          },
          "overrides": {
            "$ref": "#/components/schemas/ProfileFields"
          },
          "effective": {
            "$ref": "#/components/schemas/ProfileFields"
          },
          "tagline": {
            "type": [
              "null",
              "string"
            ]
          },
          "about": {
            "type": [
              "null",
              "string"
            ]
          },
          "mission": {
            "type": [
              "null",
              "string"
            ]
          },
          "hours": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HoursLine"
            }
          },
          "social": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "logo": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/MediaRef"
              }
            ]
          },
          "hero": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/MediaRef"
              }
            ]
          },
          "version": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ProfileFields": {
        "required": [
          "displayName",
          "address1",
          "address2",
          "city",
          "stateProvince",
          "postalCode",
          "phone",
          "email",
          "websiteUrl"
        ],
        "type": "object",
        "properties": {
          "displayName": {
            "type": [
              "null",
              "string"
            ]
          },
          "address1": {
            "type": [
              "null",
              "string"
            ]
          },
          "address2": {
            "type": [
              "null",
              "string"
            ]
          },
          "city": {
            "type": [
              "null",
              "string"
            ]
          },
          "stateProvince": {
            "type": [
              "null",
              "string"
            ]
          },
          "postalCode": {
            "type": [
              "null",
              "string"
            ]
          },
          "phone": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "websiteUrl": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ProfileUpdate": {
        "required": [
          "displayName",
          "address1",
          "address2",
          "city",
          "stateProvince",
          "postalCode",
          "phone",
          "email",
          "websiteUrl",
          "tagline",
          "about",
          "mission",
          "hours",
          "social",
          "logoMediaId",
          "heroMediaId"
        ],
        "type": "object",
        "properties": {
          "displayName": {
            "type": [
              "null",
              "string"
            ]
          },
          "address1": {
            "type": [
              "null",
              "string"
            ]
          },
          "address2": {
            "type": [
              "null",
              "string"
            ]
          },
          "city": {
            "type": [
              "null",
              "string"
            ]
          },
          "stateProvince": {
            "type": [
              "null",
              "string"
            ]
          },
          "postalCode": {
            "type": [
              "null",
              "string"
            ]
          },
          "phone": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "websiteUrl": {
            "type": [
              "null",
              "string"
            ]
          },
          "tagline": {
            "type": [
              "null",
              "string"
            ]
          },
          "about": {
            "type": [
              "null",
              "string"
            ]
          },
          "mission": {
            "type": [
              "null",
              "string"
            ]
          },
          "hours": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/HoursLine"
            }
          },
          "social": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "type": "string"
            }
          },
          "logoMediaId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "heroMediaId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          }
        }
      },
      "ProviderSwitchRequest": {
        "required": [
          "provider",
          "confirm",
          "templateId",
          "domainType",
          "domainPrefix",
          "customDomain"
        ],
        "type": "object",
        "properties": {
          "provider": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/WebsiteProvider"
              }
            ]
          },
          "confirm": {
            "type": "boolean"
          },
          "templateId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "domainType": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SiteDomainType"
              }
            ]
          },
          "domainPrefix": {
            "type": [
              "null",
              "string"
            ]
          },
          "customDomain": {
            "type": [
              "null",
              "string"
            ]
          },
          "templateKey": {
            "type": [
              "null",
              "string"
            ]
          },
          "templateVersion": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          }
        }
      },
      "ProvisionedSiteDto": {
        "required": [
          "siteId",
          "dudaSiteName",
          "siteUrl",
          "dudaUrl",
          "publishableKey",
          "secretKey",
          "signInClientId",
          "collections"
        ],
        "type": "object",
        "properties": {
          "siteId": {
            "type": "string",
            "format": "uuid"
          },
          "dudaSiteName": {
            "type": "string"
          },
          "siteUrl": {
            "type": [
              "null",
              "string"
            ]
          },
          "dudaUrl": {
            "type": "string"
          },
          "publishableKey": {
            "type": "string"
          },
          "secretKey": {
            "type": "string"
          },
          "signInClientId": {
            "type": "string"
          },
          "collections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CollectionConnection"
            }
          }
        }
      },
      "ProvisionRequest": {
        "required": [
          "clientToken",
          "orgToken",
          "templateId",
          "domainType",
          "domainPrefix",
          "customDomain",
          "siteAdminEmail"
        ],
        "type": "object",
        "properties": {
          "clientToken": {
            "type": [
              "null",
              "string"
            ]
          },
          "orgToken": {
            "type": [
              "null",
              "string"
            ]
          },
          "templateId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "domainType": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SiteDomainType"
              }
            ]
          },
          "domainPrefix": {
            "type": [
              "null",
              "string"
            ]
          },
          "customDomain": {
            "type": [
              "null",
              "string"
            ]
          },
          "siteAdminEmail": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PublicBranding": {
        "required": [
          "logo",
          "colors",
          "headingFont"
        ],
        "type": "object",
        "properties": {
          "logo": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/MediaRef"
              }
            ]
          },
          "colors": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "headingFont": {
            "type": "string"
          }
        }
      },
      "PublicContact": {
        "required": [
          "id",
          "locationId",
          "name",
          "role",
          "phone",
          "email"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "locationId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "role": {
            "type": [
              "null",
              "string"
            ]
          },
          "phone": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PublicContentDto": {
        "required": [
          "impactNumbers",
          "outcomes",
          "quotes",
          "values",
          "pathways",
          "sponsorships"
        ],
        "type": "object",
        "properties": {
          "impactNumbers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicImpactNumber"
            }
          },
          "outcomes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicOutcome"
            }
          },
          "quotes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicQuote"
            }
          },
          "values": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicValue"
            }
          },
          "pathways": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicPathway"
            }
          },
          "sponsorships": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicSponsorship"
            }
          }
        }
      },
      "PublicImpactNumber": {
        "required": [
          "id",
          "locationId",
          "value",
          "label",
          "sourceTitle",
          "sourceNote"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "locationId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "value": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "sourceTitle": {
            "type": [
              "null",
              "string"
            ]
          },
          "sourceNote": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PublicLocation": {
        "required": [
          "id",
          "slug",
          "name",
          "roleLine",
          "description",
          "address",
          "phone",
          "email",
          "hours",
          "openingHours",
          "specialHours",
          "accessibilityNotes",
          "photo",
          "position",
          "layout",
          "traxLocationId",
          "actions",
          "services",
          "isPrimary",
          "notes"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "roleLine": {
            "type": [
              "null",
              "string"
            ]
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "address": {
            "$ref": "#/components/schemas/WebsiteAddress"
          },
          "phone": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "hours": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HoursLine"
            }
          },
          "openingHours": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpeningSpan"
            }
          },
          "specialHours": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SpecialHours"
            }
          },
          "accessibilityNotes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LocationNote"
            }
          },
          "photo": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/MediaRef"
              }
            ]
          },
          "position": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/GeoPoint"
              }
            ]
          },
          "layout": {
            "type": [
              "null",
              "string"
            ]
          },
          "traxLocationId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "actions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LocationAction"
            }
          },
          "services": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicServiceRef"
            }
          },
          "isPrimary": {
            "type": "boolean"
          },
          "notes": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PublicLocationDetail": {
        "required": [
          "location",
          "schedule",
          "content",
          "jsonLd"
        ],
        "type": "object",
        "properties": {
          "location": {
            "$ref": "#/components/schemas/PublicLocation"
          },
          "schedule": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicScheduleEntry"
            }
          },
          "content": {
            "$ref": "#/components/schemas/PublicContentDto"
          },
          "jsonLd": {
            "$ref": "#/components/schemas/JsonObject"
          }
        }
      },
      "PublicOutcome": {
        "required": [
          "id",
          "locationId",
          "title",
          "text",
          "measures",
          "programs",
          "accent"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "locationId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "text": {
            "type": [
              "null",
              "string"
            ]
          },
          "measures": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "programs": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "accent": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PublicPage": {
        "required": [
          "key",
          "title",
          "path",
          "layout",
          "nav",
          "sections"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "path": {
            "type": [
              "null",
              "string"
            ]
          },
          "layout": {
            "type": [
              "null",
              "string"
            ]
          },
          "nav": {
            "type": "boolean"
          },
          "sections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicSection"
            }
          }
        }
      },
      "PublicPathway": {
        "required": [
          "id",
          "locationId",
          "name",
          "minAge",
          "maxAge",
          "text"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "locationId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "minAge": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "maxAge": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "text": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PublicQuote": {
        "required": [
          "id",
          "locationId",
          "text",
          "attribution",
          "role",
          "photo"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "locationId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "text": {
            "type": "string"
          },
          "attribution": {
            "type": [
              "null",
              "string"
            ]
          },
          "role": {
            "type": [
              "null",
              "string"
            ]
          },
          "photo": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/MediaRef"
              }
            ]
          }
        }
      },
      "PublicScheduleEntry": {
        "required": [
          "id",
          "locationId",
          "title",
          "day",
          "startTime",
          "endTime",
          "notes",
          "serviceId",
          "serviceName",
          "outcomeId",
          "outcomeTitle",
          "accent"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "locationId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "day": {
            "$ref": "#/components/schemas/DayOfWeek"
          },
          "startTime": {
            "type": "string"
          },
          "endTime": {
            "type": [
              "null",
              "string"
            ]
          },
          "notes": {
            "type": [
              "null",
              "string"
            ]
          },
          "serviceId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "serviceName": {
            "type": [
              "null",
              "string"
            ]
          },
          "outcomeId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "outcomeTitle": {
            "type": [
              "null",
              "string"
            ]
          },
          "accent": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PublicSection": {
        "required": [
          "key",
          "type",
          "fields"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "fields": {
            "type": "object"
          }
        }
      },
      "PublicService": {
        "required": [
          "id",
          "slug",
          "name",
          "line",
          "icon",
          "link",
          "locationSlugs"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "line": {
            "type": [
              "null",
              "string"
            ]
          },
          "icon": {
            "type": [
              "null",
              "string"
            ]
          },
          "link": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ServiceLink"
              }
            ]
          },
          "locationSlugs": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "PublicServiceCategory": {
        "required": [
          "id",
          "slug",
          "name",
          "icon",
          "services"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "icon": {
            "type": [
              "null",
              "string"
            ]
          },
          "services": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicService"
            }
          }
        }
      },
      "PublicServiceRef": {
        "required": [
          "id",
          "slug",
          "name",
          "icon"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "icon": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PublicServicesDto": {
        "required": [
          "categories",
          "uncategorized"
        ],
        "type": "object",
        "properties": {
          "categories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicServiceCategory"
            }
          },
          "uncategorized": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicService"
            }
          }
        }
      },
      "PublicSponsorship": {
        "required": [
          "id",
          "locationId",
          "name",
          "text",
          "amountCents",
          "minimumCents",
          "maximumCents"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "locationId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "text": {
            "type": [
              "null",
              "string"
            ]
          },
          "amountCents": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          },
          "minimumCents": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          },
          "maximumCents": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          }
        }
      },
      "PublicValue": {
        "required": [
          "id",
          "locationId",
          "name",
          "text",
          "icon"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "locationId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "text": {
            "type": [
              "null",
              "string"
            ]
          },
          "icon": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PublicVideo": {
        "required": [
          "id",
          "locationId",
          "title",
          "description",
          "provider",
          "videoId",
          "embedUrl",
          "watchUrl",
          "thumbnail",
          "captions",
          "audioDescription",
          "transcript"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "locationId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "provider": {
            "$ref": "#/components/schemas/VideoProvider"
          },
          "videoId": {
            "type": "string"
          },
          "embedUrl": {
            "type": "string",
            "format": "uri"
          },
          "watchUrl": {
            "type": "string",
            "format": "uri"
          },
          "thumbnail": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/PublicVideoThumbnail"
              }
            ]
          },
          "captions": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/VideoCaptions"
              }
            ]
          },
          "audioDescription": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/VideoAudioDescription"
              }
            ]
          },
          "transcript": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PublicVideoThumbnail": {
        "required": [
          "url",
          "alt",
          "width",
          "height"
        ],
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "format": "uri"
          },
          "alt": {
            "type": "string"
          },
          "width": {
            "type": "integer",
            "format": "int32"
          },
          "height": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "PublicWebsiteDto": {
        "required": [
          "templateKey",
          "templateVersion",
          "name",
          "primaryUrl",
          "branding",
          "pages",
          "jsonLd",
          "version",
          "updatedUtc",
          "preview"
        ],
        "type": "object",
        "properties": {
          "templateKey": {
            "type": "string"
          },
          "templateVersion": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "primaryUrl": {
            "type": [
              "null",
              "string"
            ],
            "format": "uri"
          },
          "branding": {
            "$ref": "#/components/schemas/PublicBranding"
          },
          "pages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicPage"
            }
          },
          "jsonLd": {
            "$ref": "#/components/schemas/JsonObject"
          },
          "version": {
            "type": "integer",
            "format": "int32"
          },
          "updatedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "preview": {
            "type": "boolean"
          }
        }
      },
      "PublishRequest": {
        "required": [
          "publishUtc",
          "unpublishUtc"
        ],
        "type": "object",
        "properties": {
          "publishUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "unpublishUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "PublishResultDto": {
        "required": [
          "contentLibraryUpdated",
          "liveSiteUpdated"
        ],
        "type": "object",
        "properties": {
          "contentLibraryUpdated": {
            "type": "boolean"
          },
          "liveSiteUpdated": {
            "type": "boolean"
          }
        }
      },
      "PublishState": {
        "enum": [
          "draft",
          "published",
          "archived"
        ]
      },
      "QueueStatusDto": {
        "required": [
          "name",
          "backlog",
          "oldestUtc",
          "oldestAgeSeconds",
          "overdue",
          "failing",
          "failed"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "backlog": {
            "type": "integer",
            "format": "int32"
          },
          "oldestUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "oldestAgeSeconds": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          },
          "overdue": {
            "type": "integer",
            "format": "int32"
          },
          "failing": {
            "type": "integer",
            "format": "int32"
          },
          "failed": {
            "type": "integer",
            "format": "int32"
          },
          "latestEventId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          }
        }
      },
      "QuoteDto": {
        "required": [
          "id",
          "locationId",
          "text",
          "attribution",
          "role",
          "photo",
          "state",
          "displayOrder",
          "updatedUtc",
          "updatedBy",
          "version"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "locationId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "text": {
            "type": "string"
          },
          "attribution": {
            "type": [
              "null",
              "string"
            ]
          },
          "role": {
            "type": [
              "null",
              "string"
            ]
          },
          "photo": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/MediaRef"
              }
            ]
          },
          "state": {
            "$ref": "#/components/schemas/PublishState"
          },
          "displayOrder": {
            "type": "integer",
            "format": "int32"
          },
          "updatedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedBy": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        }
      },
      "QuoteUpdate": {
        "required": [
          "text"
        ],
        "type": "object",
        "properties": {
          "text": {
            "type": [
              "null",
              "string"
            ]
          },
          "attribution": {
            "type": [
              "null",
              "string"
            ]
          },
          "role": {
            "type": [
              "null",
              "string"
            ]
          },
          "photoMediaId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "locationId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          }
        }
      },
      "ReceiptEmailState": {
        "enum": [
          "notQueued",
          "queued",
          "delivered",
          "unknown",
          "failed"
        ]
      },
      "ReconciledCancelDto": {
        "required": [
          "transactionId",
          "transactionDateUtc",
          "amountCents"
        ],
        "type": "object",
        "properties": {
          "transactionId": {
            "type": "integer",
            "format": "int32"
          },
          "transactionDateUtc": {
            "type": "string",
            "format": "date-time"
          },
          "amountCents": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "ReconciledClientPaymentDto": {
        "required": [
          "paymentId",
          "receiptNumber",
          "transactionId",
          "transactionDateUtc",
          "amountCents",
          "braintreeTransactionId",
          "allocatedCents"
        ],
        "type": "object",
        "properties": {
          "paymentId": {
            "type": "integer",
            "format": "int32"
          },
          "receiptNumber": {
            "type": [
              "null",
              "string"
            ]
          },
          "transactionId": {
            "type": "integer",
            "format": "int32"
          },
          "transactionDateUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "amountCents": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          },
          "braintreeTransactionId": {
            "type": [
              "null",
              "string"
            ]
          },
          "allocatedCents": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "ReconciledGatewayLogDto": {
        "required": [
          "id",
          "braintreeTransactionId"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "braintreeTransactionId": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ReconciledPaymentDto": {
        "required": [
          "orderId",
          "completedUtc",
          "date",
          "organizationId",
          "accountId",
          "amountCents",
          "convenienceFeeCents",
          "braintreeTransactionId",
          "settlement",
          "settleAttempts",
          "payment",
          "gatewayLog",
          "registrationTransaction",
          "cancels",
          "flags"
        ],
        "type": "object",
        "properties": {
          "orderId": {
            "type": "string"
          },
          "completedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "date": {
            "type": "string",
            "format": "date"
          },
          "organizationId": {
            "type": "integer",
            "format": "int32"
          },
          "accountId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "amountCents": {
            "type": "integer",
            "format": "int64"
          },
          "convenienceFeeCents": {
            "type": "integer",
            "format": "int64"
          },
          "braintreeTransactionId": {
            "type": "string"
          },
          "settlement": {
            "$ref": "#/components/schemas/SettlementStatus"
          },
          "settleAttempts": {
            "type": "integer",
            "format": "int32"
          },
          "payment": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ReconciledClientPaymentDto"
              }
            ]
          },
          "gatewayLog": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ReconciledGatewayLogDto"
              }
            ]
          },
          "registrationTransaction": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ReconciledRegistrationTransactionDto"
              }
            ]
          },
          "cancels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReconciledCancelDto"
            }
          },
          "flags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ReconciledRegistrationTransactionDto": {
        "required": [
          "id",
          "transactionDateUtc",
          "amountCents",
          "feeCents",
          "percentageFee",
          "nFocusAmountCents",
          "clientAmountCents",
          "financeRootId",
          "braintreeTransactionId"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "transactionDateUtc": {
            "type": "string",
            "format": "date-time"
          },
          "amountCents": {
            "type": "integer",
            "format": "int64"
          },
          "feeCents": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          },
          "percentageFee": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "nFocusAmountCents": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          },
          "clientAmountCents": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          },
          "financeRootId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "braintreeTransactionId": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ReconciliationReportDto": {
        "required": [
          "databaseId",
          "financeRootId",
          "financeRootName",
          "from",
          "to",
          "timeZone",
          "fromUtc",
          "toUtc",
          "generatedUtc",
          "totals",
          "payments"
        ],
        "type": "object",
        "properties": {
          "databaseId": {
            "type": "integer",
            "format": "int32"
          },
          "financeRootId": {
            "type": "integer",
            "format": "int32"
          },
          "financeRootName": {
            "type": "string"
          },
          "from": {
            "type": "string",
            "format": "date"
          },
          "to": {
            "type": "string",
            "format": "date"
          },
          "timeZone": {
            "type": [
              "null",
              "string"
            ]
          },
          "fromUtc": {
            "type": "string",
            "format": "date-time"
          },
          "toUtc": {
            "type": "string",
            "format": "date-time"
          },
          "generatedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "totals": {
            "$ref": "#/components/schemas/ReconciliationTotalsDto"
          },
          "payments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReconciledPaymentDto"
            }
          }
        }
      },
      "ReconciliationTotalsDto": {
        "required": [
          "payments",
          "amountCents",
          "convenienceFeeCents",
          "flagged",
          "flags"
        ],
        "type": "object",
        "properties": {
          "payments": {
            "type": "integer",
            "format": "int32"
          },
          "amountCents": {
            "type": "integer",
            "format": "int64"
          },
          "convenienceFeeCents": {
            "type": "integer",
            "format": "int64"
          },
          "flagged": {
            "type": "integer",
            "format": "int32"
          },
          "flags": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            }
          }
        }
      },
      "RegisterAndResetRequest": {
        "required": [
          "clientToken",
          "orgToken",
          "email"
        ],
        "type": "object",
        "properties": {
          "clientToken": {
            "type": [
              "null",
              "string"
            ]
          },
          "orgToken": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "Registration": {
        "enum": [
          "enroll",
          "waitlist",
          null
        ]
      },
      "RegistrationsDto": {
        "required": [
          "activities",
          "memberships"
        ],
        "type": "object",
        "properties": {
          "activities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ActivityRegistrationDto"
            }
          },
          "memberships": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MembershipRegistrationDto"
            }
          }
        }
      },
      "RegistrationSettingDto": {
        "required": [
          "key",
          "kind",
          "value",
          "default",
          "source",
          "minimum",
          "maximum",
          "unit",
          "locked",
          "canChange"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "value": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/JsonElement"
              }
            ]
          },
          "default": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/JsonElement"
              }
            ]
          },
          "source": {
            "$ref": "#/components/schemas/SettingSource"
          },
          "minimum": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "maximum": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "unit": {
            "type": [
              "null",
              "string"
            ]
          },
          "locked": {
            "type": "boolean"
          },
          "canChange": {
            "type": "boolean"
          },
          "allowedAddresses": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "RegistrationSettingsDto": {
        "required": [
          "settings"
        ],
        "type": "object",
        "properties": {
          "settings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RegistrationSettingDto"
            }
          }
        }
      },
      "RegistrationSettingsUpdate": {
        "required": [
          "values"
        ],
        "type": "object",
        "properties": {
          "values": {
            "type": [
              "null",
              "object"
            ]
          }
        }
      },
      "ReportAccessVia": {
        "enum": [
          "role",
          "grant"
        ]
      },
      "ReportColumnDto": {
        "required": [
          "key",
          "label",
          "type"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        }
      },
      "ReportDefinitionDto": {
        "required": [
          "key",
          "name",
          "description",
          "scopes",
          "groupBy",
          "defaultGroupBy",
          "dated",
          "detail"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "groupBy": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "defaultGroupBy": {
            "type": "string"
          },
          "dated": {
            "type": "boolean"
          },
          "detail": {
            "type": "boolean"
          }
        }
      },
      "ReportGrantDto": {
        "required": [
          "id",
          "scope",
          "clientToken",
          "siteId",
          "siteName",
          "organizationId",
          "organizationName",
          "email",
          "linked",
          "grantedUtc",
          "grantedBy"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "scope": {
            "$ref": "#/components/schemas/ReportScopeKind"
          },
          "clientToken": {
            "type": [
              "null",
              "string"
            ]
          },
          "siteId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "siteName": {
            "type": [
              "null",
              "string"
            ]
          },
          "organizationId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "organizationName": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": "string"
          },
          "linked": {
            "type": "boolean"
          },
          "grantedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "grantedBy": {
            "type": "string"
          }
        }
      },
      "ReportGrantRequest": {
        "required": [
          "email"
        ],
        "type": "object",
        "properties": {
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "organizationId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "siteId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          }
        }
      },
      "ReportListDto": {
        "required": [
          "reports"
        ],
        "type": "object",
        "properties": {
          "reports": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReportDefinitionDto"
            }
          }
        }
      },
      "ReportResultDto": {
        "required": [
          "report",
          "scope",
          "from",
          "to",
          "timeZoneId",
          "groupBy",
          "generatedUtc",
          "columns",
          "rows",
          "totals",
          "notes",
          "page",
          "pageSize",
          "totalItems",
          "totalPages"
        ],
        "type": "object",
        "properties": {
          "report": {
            "type": "string"
          },
          "scope": {
            "type": "string"
          },
          "from": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "to": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "timeZoneId": {
            "type": [
              "null",
              "string"
            ]
          },
          "groupBy": {
            "type": "string"
          },
          "generatedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "columns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReportColumnDto"
            }
          },
          "rows": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "totals": {
            "type": "object"
          },
          "notes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "page": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "totalItems": {
            "type": "integer",
            "format": "int32"
          },
          "totalPages": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "ReportScopeKind": {
        "enum": [
          "site",
          "organization"
        ]
      },
      "RevisionSummaryDto": {
        "required": [
          "version",
          "createdUtc",
          "createdBy",
          "title"
        ],
        "type": "object",
        "properties": {
          "version": {
            "type": "integer",
            "format": "int32"
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "createdBy": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        }
      },
      "RolloutStatus": {
        "enum": [
          "legacy",
          "pilot",
          "live"
        ]
      },
      "RolloutUpdate": {
        "required": [
          "status"
        ],
        "type": "object",
        "properties": {
          "status": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/RolloutStatus"
              }
            ]
          }
        }
      },
      "SaveCartFormRequest": {
        "required": [
          "definitionHashes",
          "answers",
          "acceptedWaivers"
        ],
        "type": "object",
        "properties": {
          "definitionHashes": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "type": "string"
            }
          },
          "answers": {
            "$ref": "#/components/schemas/JsonElement"
          },
          "acceptedWaivers": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/AcceptWaiverRequest"
            }
          },
          "signatures": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/SignatureRequest"
            }
          }
        }
      },
      "SavedFormAnswersDto": {
        "required": [
          "formId",
          "definitionHash",
          "answers",
          "documentId"
        ],
        "type": "object",
        "properties": {
          "formId": {
            "type": "integer",
            "format": "int32"
          },
          "definitionHash": {
            "type": "string"
          },
          "answers": {
            "type": "object"
          },
          "documentId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          }
        }
      },
      "SaveFormRequest": {
        "required": [
          "definitionHash",
          "answers"
        ],
        "type": "object",
        "properties": {
          "definitionHash": {
            "type": [
              "null",
              "string"
            ]
          },
          "answers": {
            "$ref": "#/components/schemas/JsonElement"
          },
          "signatures": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/SignatureRequest"
            }
          }
        }
      },
      "ScheduledPaymentDto": {
        "required": [
          "kind",
          "id",
          "date",
          "amountCents",
          "convenienceFeeCents",
          "totalCents",
          "cardName",
          "cardLastFour"
        ],
        "type": "object",
        "properties": {
          "kind": {
            "type": "string"
          },
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "date": {
            "type": "string",
            "format": "date"
          },
          "amountCents": {
            "type": "integer",
            "format": "int64"
          },
          "convenienceFeeCents": {
            "type": "integer",
            "format": "int64"
          },
          "totalCents": {
            "type": "integer",
            "format": "int64"
          },
          "cardName": {
            "type": [
              "null",
              "string"
            ]
          },
          "cardLastFour": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ScheduledPaymentRefDto": {
        "required": [
          "date",
          "kind"
        ],
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "format": "date"
          },
          "kind": {
            "type": "string"
          }
        }
      },
      "ScheduleEntryDto": {
        "required": [
          "id",
          "locationId",
          "title",
          "day",
          "startTime",
          "endTime",
          "notes",
          "serviceId",
          "outcomeId",
          "state",
          "displayOrder",
          "updatedUtc",
          "updatedBy",
          "version"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "locationId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "day": {
            "$ref": "#/components/schemas/DayOfWeek"
          },
          "startTime": {
            "type": "string"
          },
          "endTime": {
            "type": [
              "null",
              "string"
            ]
          },
          "notes": {
            "type": [
              "null",
              "string"
            ]
          },
          "serviceId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "outcomeId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "state": {
            "$ref": "#/components/schemas/PublishState"
          },
          "displayOrder": {
            "type": "integer",
            "format": "int32"
          },
          "updatedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedBy": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        }
      },
      "ScheduleEntryUpdate": {
        "required": [
          "title",
          "day",
          "startTime"
        ],
        "type": "object",
        "properties": {
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "day": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/DayOfWeek"
              }
            ]
          },
          "startTime": {
            "type": [
              "null",
              "string"
            ]
          },
          "endTime": {
            "type": [
              "null",
              "string"
            ]
          },
          "notes": {
            "type": [
              "null",
              "string"
            ]
          },
          "locationId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "serviceId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "outcomeId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          }
        }
      },
      "SchoolDto": {
        "required": [
          "schoolYear",
          "school",
          "gradeLevel"
        ],
        "type": "object",
        "properties": {
          "schoolYear": {
            "$ref": "#/components/schemas/NamedDto"
          },
          "school": {
            "$ref": "#/components/schemas/NamedDto"
          },
          "gradeLevel": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/NamedDto"
              }
            ]
          }
        }
      },
      "SchoolYearDto": {
        "required": [
          "id",
          "name",
          "startDate",
          "endDate"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "startDate": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "endDate": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          }
        }
      },
      "SectionDef": {
        "required": [
          "key",
          "type",
          "label",
          "optional",
          "fields"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "optional": {
            "type": "boolean"
          },
          "fields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FieldDef"
            }
          }
        }
      },
      "ServiceCategoryDto": {
        "required": [
          "id",
          "name",
          "slug",
          "icon",
          "state",
          "displayOrder",
          "updatedUtc",
          "updatedBy",
          "version"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "icon": {
            "type": [
              "null",
              "string"
            ]
          },
          "state": {
            "$ref": "#/components/schemas/PublishState"
          },
          "displayOrder": {
            "type": "integer",
            "format": "int32"
          },
          "updatedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedBy": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        }
      },
      "ServiceCategoryUpdate": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "slug": {
            "type": [
              "null",
              "string"
            ]
          },
          "icon": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ServiceDto": {
        "required": [
          "id",
          "categoryId",
          "name",
          "slug",
          "line",
          "icon",
          "link",
          "locationIds",
          "state",
          "displayOrder",
          "updatedUtc",
          "updatedBy",
          "version"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "categoryId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "line": {
            "type": [
              "null",
              "string"
            ]
          },
          "icon": {
            "type": [
              "null",
              "string"
            ]
          },
          "link": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ServiceLink"
              }
            ]
          },
          "locationIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "state": {
            "$ref": "#/components/schemas/PublishState"
          },
          "displayOrder": {
            "type": "integer",
            "format": "int32"
          },
          "updatedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedBy": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        }
      },
      "ServiceLink": {
        "required": [
          "kind"
        ],
        "type": "object",
        "properties": {
          "kind": {
            "type": "string"
          },
          "activityIds": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "integer",
              "format": "int32"
            }
          },
          "programId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "url": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ServiceUpdate": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "categoryId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "slug": {
            "type": [
              "null",
              "string"
            ]
          },
          "line": {
            "type": [
              "null",
              "string"
            ]
          },
          "icon": {
            "type": [
              "null",
              "string"
            ]
          },
          "link": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ServiceLink"
              }
            ]
          },
          "locationIds": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string",
              "format": "uuid"
            }
          }
        }
      },
      "SessionDto": {
        "required": [
          "activityId",
          "role",
          "name",
          "startDate",
          "endDate",
          "days",
          "startTime",
          "endTime",
          "ages",
          "availability",
          "availabilityLabel",
          "spotsLeft",
          "feeCents",
          "minimumDueCents",
          "feeText",
          "location"
        ],
        "type": "object",
        "properties": {
          "activityId": {
            "type": "integer",
            "format": "int32"
          },
          "role": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "startDate": {
            "type": "string",
            "format": "date"
          },
          "endDate": {
            "type": "string",
            "format": "date"
          },
          "days": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "startTime": {
            "type": [
              "null",
              "string"
            ],
            "format": "time"
          },
          "endTime": {
            "type": [
              "null",
              "string"
            ],
            "format": "time"
          },
          "ages": {
            "$ref": "#/components/schemas/AgesDto"
          },
          "availability": {
            "$ref": "#/components/schemas/Availability"
          },
          "availabilityLabel": {
            "type": "string"
          },
          "spotsLeft": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "feeCents": {
            "type": "integer",
            "format": "int64"
          },
          "minimumDueCents": {
            "type": "integer",
            "format": "int64"
          },
          "feeText": {
            "type": "string"
          },
          "location": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/NamedDto"
              }
            ]
          },
          "spotsHeld": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          }
        }
      },
      "SettingSource": {
        "enum": [
          "default",
          "client",
          "portal"
        ]
      },
      "SettlementStatus": {
        "enum": [
          "none",
          "pending",
          "settled",
          "voided",
          "failed"
        ]
      },
      "SignatureDto": {
        "required": [
          "signatureId",
          "printedName",
          "strokes",
          "signedUtc"
        ],
        "type": "object",
        "properties": {
          "signatureId": {
            "type": "string"
          },
          "printedName": {
            "type": "string"
          },
          "strokes": {
            "$ref": "#/components/schemas/JsonElement"
          },
          "signedUtc": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "SignatureRequest": {
        "required": [
          "signatureId",
          "printedName",
          "strokes"
        ],
        "type": "object",
        "properties": {
          "signatureId": {
            "type": [
              "null",
              "string"
            ]
          },
          "printedName": {
            "type": [
              "null",
              "string"
            ]
          },
          "strokes": {
            "$ref": "#/components/schemas/JsonElement"
          }
        }
      },
      "SiteAddressesDto": {
        "required": [
          "portalUrl",
          "domains"
        ],
        "type": "object",
        "properties": {
          "portalUrl": {
            "type": [
              "null",
              "string"
            ],
            "format": "uri"
          },
          "domains": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SiteDomainDto"
            }
          },
          "ownershipRecordValue": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "SiteByDomainDto": {
        "required": [
          "clientToken",
          "orgToken",
          "name",
          "provider",
          "primaryDomain",
          "isPrimary",
          "signInClientId",
          "portalPath"
        ],
        "type": "object",
        "properties": {
          "clientToken": {
            "type": "string"
          },
          "orgToken": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "provider": {
            "$ref": "#/components/schemas/WebsiteProvider"
          },
          "primaryDomain": {
            "type": [
              "null",
              "string"
            ]
          },
          "isPrimary": {
            "type": "boolean"
          },
          "signInClientId": {
            "type": [
              "null",
              "string"
            ]
          },
          "portalPath": {
            "type": "string"
          }
        }
      },
      "SiteDetailDto": {
        "required": [
          "siteId",
          "name",
          "clientToken",
          "orgToken",
          "status",
          "yourRole",
          "origins",
          "keys",
          "signInClientId",
          "settings"
        ],
        "type": "object",
        "properties": {
          "siteId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "clientToken": {
            "type": "string"
          },
          "orgToken": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/SiteStatus"
          },
          "yourRole": {
            "$ref": "#/components/schemas/StaffRole"
          },
          "origins": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "keys": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SiteKeyDto"
            }
          },
          "signInClientId": {
            "type": [
              "null",
              "string"
            ]
          },
          "settings": {
            "$ref": "#/components/schemas/SiteSettingsDto"
          },
          "provider": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/WebsiteProvider"
              }
            ]
          }
        }
      },
      "SiteDomainDto": {
        "required": [
          "id",
          "host",
          "kind",
          "status",
          "isPrimary",
          "createdUtc",
          "activatedUtc",
          "lastCheckedUtc",
          "lastCheck",
          "failedChecks"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "host": {
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/SiteDomainKind"
          },
          "status": {
            "$ref": "#/components/schemas/SiteDomainStatus"
          },
          "isPrimary": {
            "type": "boolean"
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "activatedUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "lastCheckedUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "lastCheck": {
            "type": [
              "null",
              "string"
            ]
          },
          "failedChecks": {
            "type": "integer",
            "format": "int32"
          },
          "ownership": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/DomainOwnershipDto"
              }
            ]
          }
        }
      },
      "SiteDomainKind": {
        "enum": [
          "platform",
          "custom"
        ]
      },
      "SiteDomainStatus": {
        "enum": [
          "pending",
          "active",
          "failed"
        ]
      },
      "SiteDomainType": {
        "enum": [
          "trax",
          "custom",
          "duda",
          null
        ]
      },
      "SiteKeyDto": {
        "required": [
          "kind",
          "prefix",
          "createdUtc"
        ],
        "type": "object",
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/SiteKeyKind"
          },
          "prefix": {
            "type": "string"
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "SiteKeyKind": {
        "enum": [
          "publishable",
          "secret"
        ]
      },
      "SitemapDto": {
        "required": [
          "primaryUrl",
          "entries"
        ],
        "type": "object",
        "properties": {
          "primaryUrl": {
            "type": [
              "null",
              "string"
            ],
            "format": "uri"
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SitemapEntry"
            }
          }
        }
      },
      "SitemapEntry": {
        "required": [
          "path",
          "url",
          "lastModifiedUtc"
        ],
        "type": "object",
        "properties": {
          "path": {
            "type": "string"
          },
          "url": {
            "type": [
              "null",
              "string"
            ],
            "format": "uri"
          },
          "lastModifiedUtc": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "SiteReportGrantRequest": {
        "required": [
          "email"
        ],
        "type": "object",
        "properties": {
          "email": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "SiteSettingsDto": {
        "required": [
          "authorsPublishNotices"
        ],
        "type": "object",
        "properties": {
          "authorsPublishNotices": {
            "type": "boolean"
          }
        }
      },
      "SiteSettingsUpdate": {
        "required": [
          "authorsPublishNotices"
        ],
        "type": "object",
        "properties": {
          "authorsPublishNotices": {
            "type": [
              "null",
              "boolean"
            ]
          }
        }
      },
      "SiteStatus": {
        "enum": [
          "active",
          "disabled"
        ]
      },
      "SiteTemplatesDto": {
        "required": [
          "provider",
          "duda",
          "nfocus"
        ],
        "type": "object",
        "properties": {
          "provider": {
            "$ref": "#/components/schemas/WebsiteProvider"
          },
          "duda": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/TemplateDto"
            }
          },
          "nfocus": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/NfocusTemplateDto"
            }
          }
        }
      },
      "SiteUserDto": {
        "required": [
          "id",
          "email",
          "name",
          "role",
          "linked",
          "lastSeenUtc",
          "grantedUtc",
          "grantedBy"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "email": {
            "type": "string"
          },
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "role": {
            "$ref": "#/components/schemas/StaffRole"
          },
          "linked": {
            "type": "boolean"
          },
          "lastSeenUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "grantedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "grantedBy": {
            "type": "string"
          }
        }
      },
      "SiteWebsiteDto": {
        "required": [
          "draft",
          "published",
          "schema",
          "notShown",
          "problems",
          "hasChanges",
          "templateLocked",
          "version"
        ],
        "type": "object",
        "properties": {
          "draft": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/WebsiteStageDto"
              }
            ]
          },
          "published": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/WebsiteStageDto"
              }
            ]
          },
          "schema": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/TemplateSchema"
              }
            ]
          },
          "notShown": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "problems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebsiteProblemDto"
            }
          },
          "hasChanges": {
            "type": "boolean"
          },
          "templateLocked": {
            "type": "boolean"
          },
          "version": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "SpecialHours": {
        "required": [
          "from",
          "to",
          "label",
          "closed",
          "spans"
        ],
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "format": "date"
          },
          "to": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "label": {
            "type": [
              "null",
              "string"
            ]
          },
          "closed": {
            "type": "boolean"
          },
          "spans": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/TimeRange"
            }
          }
        }
      },
      "SponsorshipDto": {
        "required": [
          "id",
          "locationId",
          "name",
          "text",
          "amountCents",
          "minimumCents",
          "maximumCents",
          "state",
          "displayOrder",
          "updatedUtc",
          "updatedBy",
          "version"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "locationId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "text": {
            "type": [
              "null",
              "string"
            ]
          },
          "amountCents": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          },
          "minimumCents": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          },
          "maximumCents": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          },
          "state": {
            "$ref": "#/components/schemas/PublishState"
          },
          "displayOrder": {
            "type": "integer",
            "format": "int32"
          },
          "updatedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedBy": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        }
      },
      "SponsorshipUpdate": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "text": {
            "type": [
              "null",
              "string"
            ]
          },
          "amountCents": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          },
          "minimumCents": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          },
          "maximumCents": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          },
          "locationId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          }
        }
      },
      "StaffMeResponse": {
        "required": [
          "email",
          "name",
          "isSupport",
          "sites"
        ],
        "type": "object",
        "properties": {
          "email": {
            "type": "string"
          },
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "isSupport": {
            "type": "boolean"
          },
          "sites": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StaffSiteDto"
            }
          },
          "organizations": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/StaffOrganizationDto"
            }
          },
          "reports": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/StaffReportScopeDto"
            }
          },
          "supportAccess": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SupportAccess"
              }
            ]
          }
        }
      },
      "StaffOrganizationDto": {
        "required": [
          "clientToken",
          "organizationId",
          "name",
          "role"
        ],
        "type": "object",
        "properties": {
          "clientToken": {
            "type": "string"
          },
          "organizationId": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "role": {
            "$ref": "#/components/schemas/StaffRole"
          }
        }
      },
      "StaffProfileDto": {
        "required": [
          "id",
          "name",
          "title",
          "bio",
          "email",
          "phone",
          "showEmail",
          "showPhone",
          "photo",
          "locationId",
          "isVisible",
          "displayOrder",
          "version"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "bio": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "phone": {
            "type": [
              "null",
              "string"
            ]
          },
          "showEmail": {
            "type": "boolean"
          },
          "showPhone": {
            "type": "boolean"
          },
          "photo": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/MediaRef"
              }
            ]
          },
          "locationId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "isVisible": {
            "type": "boolean"
          },
          "displayOrder": {
            "type": "integer",
            "format": "int32"
          },
          "version": {
            "type": "string"
          }
        }
      },
      "StaffProfileUpdate": {
        "required": [
          "name",
          "title",
          "bio",
          "email",
          "phone",
          "showEmail",
          "showPhone",
          "photoMediaId",
          "locationId"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "bio": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "phone": {
            "type": [
              "null",
              "string"
            ]
          },
          "showEmail": {
            "type": "boolean"
          },
          "showPhone": {
            "type": "boolean"
          },
          "photoMediaId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "locationId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "isVisible": {
            "type": "boolean",
            "default": true
          }
        }
      },
      "StaffReportScopeDto": {
        "required": [
          "scope",
          "via",
          "clientToken"
        ],
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/ReportScopeKind"
          },
          "via": {
            "$ref": "#/components/schemas/ReportAccessVia"
          },
          "clientToken": {
            "type": "string"
          },
          "siteId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "organizationId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "name": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "StaffRole": {
        "enum": [
          "author",
          "editor",
          "siteAdmin"
        ]
      },
      "StaffRoleSource": {
        "enum": [
          "site",
          "organization",
          null
        ]
      },
      "StaffSiteDto": {
        "required": [
          "siteId",
          "name",
          "clientToken",
          "orgToken",
          "role"
        ],
        "type": "object",
        "properties": {
          "siteId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "clientToken": {
            "type": "string"
          },
          "orgToken": {
            "type": "string"
          },
          "role": {
            "$ref": "#/components/schemas/StaffRole"
          },
          "provider": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/WebsiteProvider"
              }
            ]
          },
          "template": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/StaffSiteTemplateDto"
              }
            ]
          },
          "via": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/StaffRoleSource"
              }
            ]
          },
          "status": {
            "$ref": "#/components/schemas/SiteStatus"
          }
        }
      },
      "StaffSiteTemplateDto": {
        "required": [
          "key",
          "name"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "StateDto": {
        "required": [
          "id",
          "name",
          "code"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "code": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "StatementListDto": {
        "required": [
          "years"
        ],
        "type": "object",
        "properties": {
          "years": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          }
        }
      },
      "SupportAccess": {
        "enum": [
          "full",
          "read",
          null
        ]
      },
      "SupportSessionDto": {
        "required": [
          "url"
        ],
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "TemplateDto": {
        "required": [
          "id",
          "name",
          "description",
          "thumbnailUrl",
          "isDefault"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "thumbnailUrl": {
            "type": [
              "null",
              "string"
            ]
          },
          "isDefault": {
            "type": "boolean"
          }
        }
      },
      "TemplateLock": {
        "required": [
          "locked"
        ],
        "type": "object",
        "properties": {
          "locked": {
            "type": "boolean"
          }
        }
      },
      "TemplateLockRequest": {
        "required": [
          "locked"
        ],
        "type": "object",
        "properties": {
          "locked": {
            "type": [
              "null",
              "boolean"
            ]
          }
        }
      },
      "TemplatePageSummary": {
        "required": [
          "key",
          "title",
          "path",
          "layout",
          "nav",
          "sections"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "path": {
            "type": [
              "null",
              "string"
            ]
          },
          "layout": {
            "type": [
              "null",
              "string"
            ]
          },
          "nav": {
            "type": "boolean"
          },
          "sections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TemplateSectionSummary"
            }
          }
        }
      },
      "TemplateSchema": {
        "required": [
          "format",
          "key",
          "version",
          "name",
          "description",
          "colors",
          "headingFonts",
          "pages"
        ],
        "type": "object",
        "properties": {
          "format": {
            "type": "integer",
            "format": "int32"
          },
          "key": {
            "type": "string"
          },
          "version": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "colors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ColorSlot"
            }
          },
          "headingFonts": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "pages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PageDef"
            }
          }
        }
      },
      "TemplateSectionSummary": {
        "required": [
          "key",
          "type",
          "label",
          "optional"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "optional": {
            "type": "boolean"
          }
        }
      },
      "TemplateStatus": {
        "enum": [
          "draft",
          "available",
          "retired"
        ]
      },
      "TemplateStatusRequest": {
        "required": [
          "status"
        ],
        "type": "object",
        "properties": {
          "status": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/TemplateStatus"
              }
            ]
          }
        }
      },
      "TemplateSwitch": {
        "required": [
          "templateId",
          "confirm"
        ],
        "type": "object",
        "properties": {
          "templateId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "confirm": {
            "type": "boolean"
          }
        }
      },
      "TemplateUsageDto": {
        "required": [
          "version",
          "status",
          "sites"
        ],
        "type": "object",
        "properties": {
          "version": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "$ref": "#/components/schemas/TemplateStatus"
          },
          "sites": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TemplateUsageSiteDto"
            }
          }
        }
      },
      "TemplateUsageSiteDto": {
        "required": [
          "siteId",
          "name",
          "clientToken",
          "orgToken",
          "draft",
          "published"
        ],
        "type": "object",
        "properties": {
          "siteId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "clientToken": {
            "type": "string"
          },
          "orgToken": {
            "type": "string"
          },
          "draft": {
            "type": "boolean"
          },
          "published": {
            "type": "boolean"
          }
        }
      },
      "TemplateVersionSummary": {
        "required": [
          "version",
          "status",
          "notes",
          "pages"
        ],
        "type": "object",
        "properties": {
          "version": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "$ref": "#/components/schemas/TemplateStatus"
          },
          "notes": {
            "type": [
              "null",
              "string"
            ]
          },
          "pages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TemplatePageSummary"
            }
          }
        }
      },
      "TimeRange": {
        "required": [
          "opens",
          "closes"
        ],
        "type": "object",
        "properties": {
          "opens": {
            "type": "string"
          },
          "closes": {
            "type": "string"
          }
        }
      },
      "TransactionDto": {
        "required": [
          "id",
          "occurredUtc",
          "date",
          "type",
          "typeName",
          "amountCents",
          "description",
          "organizationName",
          "dueDate",
          "medium",
          "reversedBy",
          "details",
          "orderId"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "occurredUtc": {
            "type": "string",
            "format": "date-time"
          },
          "date": {
            "type": "string",
            "format": "date"
          },
          "type": {
            "type": "string"
          },
          "typeName": {
            "type": "string"
          },
          "amountCents": {
            "type": "integer",
            "format": "int64"
          },
          "description": {
            "type": "string"
          },
          "organizationName": {
            "type": "string"
          },
          "dueDate": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "medium": {
            "type": [
              "null",
              "string"
            ]
          },
          "reversedBy": {
            "type": [
              "null",
              "string"
            ]
          },
          "details": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "orderId": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "TransactionListDto": {
        "required": [
          "days",
          "from",
          "items"
        ],
        "type": "object",
        "properties": {
          "days": {
            "type": "integer",
            "format": "int32"
          },
          "from": {
            "type": "string",
            "format": "date"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TransactionDto"
            }
          }
        }
      },
      "TroubleshootingSeverity": {
        "enum": [
          "info",
          "warning",
          "error"
        ]
      },
      "UpdateCartItemRequest": {
        "type": "object",
        "properties": {
          "payCents": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int64"
          },
          "personId": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "designation": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/DesignationRequest"
              }
            ]
          }
        }
      },
      "UpdatePaymentMethodRequest": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "nonce": {
            "type": [
              "null",
              "string"
            ]
          },
          "billing": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/BillingRequest"
              }
            ]
          }
        }
      },
      "UpdateTemplateRequest": {
        "required": [
          "name",
          "description",
          "status"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/TemplateStatus"
              }
            ]
          }
        }
      },
      "ValueDto": {
        "required": [
          "id",
          "locationId",
          "name",
          "text",
          "icon",
          "state",
          "displayOrder",
          "updatedUtc",
          "updatedBy",
          "version"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "locationId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "text": {
            "type": [
              "null",
              "string"
            ]
          },
          "icon": {
            "type": [
              "null",
              "string"
            ]
          },
          "state": {
            "$ref": "#/components/schemas/PublishState"
          },
          "displayOrder": {
            "type": "integer",
            "format": "int32"
          },
          "updatedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedBy": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        }
      },
      "ValueUpdate": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "text": {
            "type": [
              "null",
              "string"
            ]
          },
          "icon": {
            "type": [
              "null",
              "string"
            ]
          },
          "locationId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          }
        }
      },
      "VideoAudioDescription": {
        "enum": [
          "described",
          "notNeeded",
          null
        ]
      },
      "VideoCaptions": {
        "enum": [
          "confirmed",
          "noAudio",
          null
        ]
      },
      "VideoDto": {
        "required": [
          "id",
          "locationId",
          "title",
          "description",
          "provider",
          "videoId",
          "embedUrl",
          "watchUrl",
          "thumbnail",
          "captions",
          "captionsBy",
          "captionsUtc",
          "audioDescription",
          "transcript",
          "missing",
          "state",
          "displayOrder",
          "updatedUtc",
          "updatedBy",
          "version"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "locationId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "provider": {
            "$ref": "#/components/schemas/VideoProvider"
          },
          "videoId": {
            "type": "string"
          },
          "embedUrl": {
            "type": "string",
            "format": "uri"
          },
          "watchUrl": {
            "type": "string",
            "format": "uri"
          },
          "thumbnail": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/MediaRef"
              }
            ]
          },
          "captions": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/VideoCaptions"
              }
            ]
          },
          "captionsBy": {
            "type": [
              "null",
              "string"
            ]
          },
          "captionsUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "audioDescription": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/VideoAudioDescription"
              }
            ]
          },
          "transcript": {
            "type": [
              "null",
              "string"
            ]
          },
          "missing": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "state": {
            "$ref": "#/components/schemas/PublishState"
          },
          "displayOrder": {
            "type": "integer",
            "format": "int32"
          },
          "updatedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedBy": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        }
      },
      "VideoProvider": {
        "enum": [
          "youtube",
          "vimeo"
        ]
      },
      "VideoUpdate": {
        "required": [
          "url",
          "title"
        ],
        "type": "object",
        "properties": {
          "url": {
            "type": [
              "null",
              "string"
            ]
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "thumbnailMediaId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "captions": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/VideoCaptions"
              }
            ]
          },
          "audioDescription": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/VideoAudioDescription"
              }
            ]
          },
          "transcript": {
            "type": [
              "null",
              "string"
            ]
          },
          "locationId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          }
        }
      },
      "WaiverDto": {
        "required": [
          "id",
          "title",
          "text"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "title": {
            "type": "string"
          },
          "text": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "WaiverKind": {
        "enum": [
          "activity",
          "membership"
        ]
      },
      "WebsiteAddress": {
        "required": [
          "address1",
          "address2",
          "city",
          "stateProvince",
          "postalCode"
        ],
        "type": "object",
        "properties": {
          "address1": {
            "type": [
              "null",
              "string"
            ]
          },
          "address2": {
            "type": [
              "null",
              "string"
            ]
          },
          "city": {
            "type": [
              "null",
              "string"
            ]
          },
          "stateProvince": {
            "type": [
              "null",
              "string"
            ]
          },
          "postalCode": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "WebsiteAlert": {
        "required": [
          "id",
          "message",
          "severity",
          "linkUrl",
          "linkText",
          "startUtc",
          "endUtc",
          "dismissible"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "message": {
            "type": "string"
          },
          "severity": {
            "$ref": "#/components/schemas/AlertSeverity"
          },
          "linkUrl": {
            "type": [
              "null",
              "string"
            ]
          },
          "linkText": {
            "type": [
              "null",
              "string"
            ]
          },
          "startUtc": {
            "type": "string",
            "format": "date-time"
          },
          "endUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "dismissible": {
            "type": "boolean"
          }
        }
      },
      "WebsiteAnnouncement": {
        "required": [
          "id",
          "title",
          "body",
          "linkUrl",
          "linkText",
          "startUtc",
          "endUtc",
          "pinned"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "body": {
            "type": [
              "null",
              "string"
            ]
          },
          "linkUrl": {
            "type": [
              "null",
              "string"
            ]
          },
          "linkText": {
            "type": [
              "null",
              "string"
            ]
          },
          "startUtc": {
            "type": "string",
            "format": "date-time"
          },
          "endUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "pinned": {
            "type": "boolean"
          }
        }
      },
      "WebsiteBranding": {
        "type": "object",
        "properties": {
          "logo": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "colors": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "type": "string"
            }
          },
          "headingFont": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "WebsiteDraftUpdate": {
        "type": "object",
        "properties": {
          "content": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "type": "object",
              "additionalProperties": {
                "$ref": "#/components/schemas/WebsiteSectionContent"
              }
            }
          },
          "branding": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/WebsiteBranding"
              }
            ]
          }
        }
      },
      "WebsiteDto": {
        "required": [
          "name",
          "tagline",
          "about",
          "mission",
          "address",
          "phone",
          "email",
          "websiteUrl",
          "hours",
          "social",
          "logo",
          "traxLogoUrl",
          "hero",
          "locations"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "tagline": {
            "type": [
              "null",
              "string"
            ]
          },
          "about": {
            "type": [
              "null",
              "string"
            ]
          },
          "mission": {
            "type": [
              "null",
              "string"
            ]
          },
          "address": {
            "$ref": "#/components/schemas/WebsiteAddress"
          },
          "phone": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "websiteUrl": {
            "type": [
              "null",
              "string"
            ]
          },
          "hours": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HoursLine"
            }
          },
          "social": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "logo": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/MediaRef"
              }
            ]
          },
          "traxLogoUrl": {
            "type": [
              "null",
              "string"
            ],
            "format": "uri"
          },
          "hero": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/MediaRef"
              }
            ]
          },
          "locations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebsiteLocation"
            }
          }
        }
      },
      "WebsiteLocation": {
        "required": [
          "id",
          "name",
          "address",
          "phone",
          "email",
          "hours",
          "notes",
          "isPrimary"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "address": {
            "$ref": "#/components/schemas/WebsiteAddress"
          },
          "phone": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "hours": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HoursLine"
            }
          },
          "notes": {
            "type": [
              "null",
              "string"
            ]
          },
          "isPrimary": {
            "type": "boolean"
          },
          "slug": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "WebsitePost": {
        "required": [
          "slug",
          "kind",
          "title",
          "summary",
          "bodyHtml",
          "hero",
          "authorName",
          "tags",
          "seoTitle",
          "seoDescription",
          "publishedUtc",
          "updatedUtc",
          "preview"
        ],
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/PostKind"
          },
          "title": {
            "type": "string"
          },
          "summary": {
            "type": [
              "null",
              "string"
            ]
          },
          "bodyHtml": {
            "type": "string"
          },
          "hero": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/MediaRef"
              }
            ]
          },
          "authorName": {
            "type": [
              "null",
              "string"
            ]
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "seoTitle": {
            "type": [
              "null",
              "string"
            ]
          },
          "seoDescription": {
            "type": [
              "null",
              "string"
            ]
          },
          "publishedUtc": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "updatedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "preview": {
            "type": "boolean"
          },
          "videos": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/PublicVideo"
            }
          }
        }
      },
      "WebsitePostSummary": {
        "required": [
          "slug",
          "kind",
          "title",
          "summary",
          "hero",
          "authorName",
          "tags",
          "publishedUtc"
        ],
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/PostKind"
          },
          "title": {
            "type": "string"
          },
          "summary": {
            "type": [
              "null",
              "string"
            ]
          },
          "hero": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/MediaRef"
              }
            ]
          },
          "authorName": {
            "type": [
              "null",
              "string"
            ]
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "publishedUtc": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "WebsiteProblemDto": {
        "required": [
          "field",
          "message"
        ],
        "type": "object",
        "properties": {
          "field": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        }
      },
      "WebsiteProvider": {
        "enum": [
          "duda",
          "nfocus"
        ]
      },
      "WebsiteRevisionDto": {
        "required": [
          "version",
          "createdUtc",
          "createdBy",
          "templateKey",
          "templateVersion"
        ],
        "type": "object",
        "properties": {
          "version": {
            "type": "integer",
            "format": "int32"
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "createdBy": {
            "type": "string"
          },
          "templateKey": {
            "type": "string"
          },
          "templateVersion": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "WebsiteSectionContent": {
        "type": "object",
        "properties": {
          "hidden": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "fields": {
            "type": [
              "null",
              "object"
            ]
          }
        }
      },
      "WebsiteStaff": {
        "required": [
          "id",
          "name",
          "title",
          "bio",
          "email",
          "phone",
          "photo",
          "locationId",
          "locationName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "bio": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "phone": {
            "type": [
              "null",
              "string"
            ]
          },
          "photo": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/MediaRef"
              }
            ]
          },
          "locationId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "locationName": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "WebsiteStageDto": {
        "required": [
          "template",
          "content",
          "branding",
          "version",
          "updatedUtc",
          "updatedBy"
        ],
        "type": "object",
        "properties": {
          "template": {
            "$ref": "#/components/schemas/WebsiteTemplateRef"
          },
          "content": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "additionalProperties": {
                "$ref": "#/components/schemas/WebsiteSectionContent"
              }
            }
          },
          "branding": {
            "$ref": "#/components/schemas/WebsiteBranding"
          },
          "version": {
            "type": "integer",
            "format": "int32"
          },
          "updatedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedBy": {
            "type": "string"
          }
        }
      },
      "WebsiteTemplateChoice": {
        "required": [
          "templateKey"
        ],
        "type": "object",
        "properties": {
          "templateKey": {
            "type": [
              "null",
              "string"
            ]
          },
          "version": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          }
        }
      },
      "WebsiteTemplateRef": {
        "required": [
          "key",
          "name",
          "version",
          "status"
        ],
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "version": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "$ref": "#/components/schemas/TemplateStatus"
          }
        }
      }
    },
    "securitySchemes": {
      "family": {
        "type": "oauth2",
        "description": "A family signed in through OpenID Connect: authorization code with PKCE on the API's hosted sign-in pages. Tokens are bound to the client database of the portal the family signed in at.",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "/connect/authorize",
            "tokenUrl": "/connect/token",
            "refreshUrl": "/connect/token",
            "scopes": {
              "openid": "Sign in",
              "profile": "Name in the identity token",
              "email": "Email in the identity token",
              "offline_access": "A refresh token"
            }
          }
        }
      },
      "service": {
        "type": "oauth2",
        "description": "An nFocus service using client credentials.",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "/connect/token",
            "scopes": {
              "trax.internal": "Internal account operations"
            }
          }
        }
      },
      "staff": {
        "type": "http",
        "description": "An organization staff member's access token from Trax Keycloak (audience trax-site-manager).",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      },
      "admin": {
        "type": "http",
        "description": "An nFocus admin's access token from Trax Keycloak (audience trax-admin) with the full or read-only admin realm role.",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      },
      "siteKey": {
        "type": "apiKey",
        "description": "A Duda site's publishable key (pk_…), accepted only from the site's registered origins.",
        "name": "X-Trax-Site-Key",
        "in": "header"
      },
      "siteSecret": {
        "type": "http",
        "description": "A Duda site's secret key (sk_…), server to server only.",
        "scheme": "bearer"
      },
      "guestCart": {
        "type": "apiKey",
        "description": "A guest cart's token (gc_…) from POST …/guest-cart. It works at that portal until the cart expires or is merged at sign-in.",
        "name": "X-Trax-Guest-Cart",
        "in": "header"
      }
    }
  },
  "tags": [
    {
      "name": "Website"
    },
    {
      "name": "Internal"
    },
    {
      "name": "Health"
    },
    {
      "name": "Organization site"
    },
    {
      "name": "nFocus admin"
    },
    {
      "name": "Portal"
    },
    {
      "name": "Catalog"
    },
    {
      "name": "Memberships"
    },
    {
      "name": "Duda collections"
    },
    {
      "name": "Account"
    },
    {
      "name": "Household"
    },
    {
      "name": "Eligibility"
    },
    {
      "name": "Forms"
    },
    {
      "name": "Cart"
    },
    {
      "name": "Checkout"
    },
    {
      "name": "Donations"
    },
    {
      "name": "Saved cards"
    },
    {
      "name": "Payment plan"
    },
    {
      "name": "Automatic payments"
    }
  ]
}