{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pollunit-com/json-schema/pollunit-com-voter-update-request-schema.json",
  "title": "VoterUpdateRequest",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pollunit-com-openapi.yml#/components/schemas/VoterUpdateRequest",
  "type": "object",
  "properties": {
    "voter": {
      "type": "object",
      "description": "Only the given attributes are written, the others keep their value. Terms and privacy policy use their stored attribute names here, not the `terms` / `privacy_policy` names of the create request.",
      "properties": {
        "user_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "additional_attributes": {
          "type": [
            "object",
            "null"
          ],
          "description": "Values for the poll's `additional_attributes`. Omit to keep the stored values; when given, the hash replaces all of them, so it has to carry every required value."
        },
        "terms_accepted": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "privacy_policy_accepted": {
          "type": [
            "boolean",
            "null"
          ]
        }
      }
    }
  },
  "required": [
    "voter"
  ]
}