{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gnosis-pay/json-schema/gnosis-pay-update-phone-request-schema.json",
  "title": "UpdatePhoneRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gnosis-pay-phone-api-openapi.yml#/components/schemas/UpdatePhoneRequest",
  "type": "object",
  "properties": {
    "phone": {
      "type": "string",
      "minLength": 6,
      "maxLength": 20,
      "description": "Required unless you require phone verification and send `code`."
    },
    "code": {
      "type": "string",
      "minLength": 6,
      "maxLength": 6,
      "pattern": "^[0-9]{6}$",
      "description": "One-time SMS code from POST /phone/verification. Required if you require phone verification for your users; omit otherwise."
    }
  }
}