{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eztexting-com/json-schema/eztexting-com-contact-upsert-request-schema.json",
  "title": "ContactUpsertRequest",
  "description": "ContactUpsertRequest",
  "x-generated": "2026-11-07",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eztexting-com-api-openapi.yml#/components/schemas/ContactUpsertRequest",
  "type": "object",
  "properties": {
    "phoneNumber": {
      "type": "string",
      "description": "Phone number"
    },
    "firstName": {
      "type": "string",
      "description": "First name",
      "maxLength": 20,
      "minLength": 0
    },
    "lastName": {
      "type": "string",
      "description": "Last name",
      "maxLength": 20,
      "minLength": 0
    },
    "email": {
      "type": "string",
      "format": "email",
      "description": "Email address"
    },
    "note": {
      "type": "string",
      "description": "Notes",
      "maxLength": 200,
      "minLength": 0
    },
    "custom1": {
      "type": "string",
      "description": "Custom value 1",
      "maxLength": 20,
      "minLength": 0
    },
    "custom2": {
      "type": "string",
      "description": "Custom value 2",
      "maxLength": 20,
      "minLength": 0
    },
    "custom3": {
      "type": "string",
      "description": "Custom value 3",
      "maxLength": 20,
      "minLength": 0
    },
    "custom4": {
      "type": "string",
      "description": "Custom value 4",
      "maxLength": 20,
      "minLength": 0
    },
    "custom5": {
      "type": "string",
      "description": "Custom value 5",
      "maxLength": 20,
      "minLength": 0
    },
    "values": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "groupIdsAdd": {
      "type": "array",
      "description": "Groups to add contact to",
      "items": {
        "type": "string"
      }
    },
    "groupIdsRemove": {
      "type": "array",
      "description": "Groups to remove contact from",
      "items": {
        "type": "string"
      }
    }
  }
}