{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thesignup-app/json-schema/thesignup-app-update-signup-request-schema.json",
  "title": "UpdateSignupRequest",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thesignup-app-openapi.json#/components/schemas/UpdateSignupRequest",
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "Cannot be null: a signup always has a title."
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 2000,
      "description": "Null clears the description."
    },
    "location": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 200,
      "description": "Null clears the location."
    },
    "eventDate": {
      "type": "string",
      "minLength": 1,
      "pattern": "^\\d{4}-\\d{2}-\\d{2}[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d{1,9})?)?(?:Z|[+-]\\d{2}:?\\d{2})?$",
      "description": "ISO-8601 datetime, same rules as on create: UTC / offset-bearing, or a naive local string that is read in `timezone` (this request's, else the signup's stored one). Refused with 400 on a recurring (Series) signup unless it is the signup's current date: a recurring signup's dates come from its schedule. A multi-day signup built from days alone is not locked. A naive string is read in the signup's stored zone when `timezone` is omitted; it is refused (422) if `timezone: null` is sent beside it."
    },
    "signupCloseDate": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 1,
      "pattern": "^\\d{4}-\\d{2}-\\d{2}[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d{1,9})?)?(?:Z|[+-]\\d{2}:?\\d{2})?$",
      "description": "ISO-8601 datetime, same rules as `eventDate`. Null = signups stay open until the event."
    },
    "timezone": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 1,
      "maxLength": 64,
      "description": "IANA timezone name. Changing it does NOT move the signup's stored instants (`eventDate`, slot times): it changes how they are displayed and how naive datetimes are read. Null is a no-op (a signup always has a timezone), not a way to clear it."
    },
    "maxParticipants": {
      "type": [
        "integer",
        "null"
      ],
      "exclusiveMinimum": 0,
      "description": "Cap on total participants. Above the plan's ceiling is refused with 402 `upgrade_required`. Null resets the cap to the plan's ceiling (e.g. 50 on Free), it does NOT remove the cap; only a plan with no ceiling stores null (uncapped). Omit to leave the cap alone."
    },
    "requiresPhone": {
      "type": "boolean"
    },
    "isPrivate": {
      "type": "boolean",
      "description": "May be changed on a published signup; takes effect immediately."
    },
    "eventWideCustomField": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 120
        },
        "required": {
          "type": "boolean"
        },
        "type": {
          "type": "string",
          "enum": [
            "short",
            "long"
          ]
        }
      },
      "required": [
        "name",
        "required",
        "type"
      ],
      "description": "Null removes the one-off field from the signup form."
    }
  }
}