{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thesignup-app/json-schema/thesignup-app-update-registration-request-schema.json",
  "title": "UpdateRegistrationRequest",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thesignup-app-openapi.json#/components/schemas/UpdateRegistrationRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100,
      "description": "The person's name as the organizer sees it, and as the public list shows it when `nameVisible`."
    },
    "email": {
      "type": "string",
      "format": "email",
      "description": "The person's address. Written directly, as the dashboard's edit does: no confirmation email goes to either address. Another registration on this signup already using it is a 409."
    },
    "phone": {
      "type": [
        "string",
        "null"
      ],
      "description": "The person's phone, or null to clear it. A number different from the one on file turns their SMS consent off: they are not texted until they opt in again."
    },
    "attendees": {
      "type": "integer",
      "minimum": 1,
      "description": "How many people this registration covers, the person included. At most the signup's `maxAttendeesPerSignup` (400 otherwise), and within the signup's capacity."
    },
    "nameVisible": {
      "type": "boolean",
      "description": "Whether the person's name is shown on the public signup page's list of who signed up."
    },
    "days": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      },
      "maxItems": 366,
      "description": "The event days (`event_days.id`, from the signup's `days`, as get_signup returns them) this person attends, as the COMPLETE list. Because `days` REPLACES the whole set, read the current list first (the registration's `days`, returned by every registration read and write) and send it back with your change: a day you omit is REMOVED. Removing attendance is allowed on any day, past or cancelled, and `[]` removes all of it; their slots and items stay. Safe to repeat. Adding a day follows the Guest's rules: the signup must be accepting signups, a cancelled date is refused, a required day question must already be answered, and on a signup that requires a commitment no day can be added (so attendance removed there cannot be re-added through `days`). Also refused: adding a day that has passed (400), and adding any day while the registration is no longer attending (400; `[]` still works). A day of another signup is 404. Any refusal writes nothing. Notifies nobody."
    }
  }
}