Raw schema
{
"type": "object",
"properties": {
"client_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "AgendaPro client id."
},
"first_name": {
"description": "First name.",
"type": "string",
"minLength": 1,
"maxLength": 255
},
"last_name": {
"description": "Last name. On update, an empty string clears the stored value.",
"type": "string",
"maxLength": 255
},
"email": {
"description": "Email (stored lowercase).",
"type": "string",
"maxLength": 255,
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
},
"phone": {
"description": "Phone in E.164 format, e.g. +56912345678.",
"type": "string",
"pattern": "^\\+[1-9]\\d{6,14}$"
},
"identification_number": {
"description": "National identification number (RUT, DNI, CURP...). On update, an empty string clears the stored value.",
"type": "string",
"maxLength": 255
},
"address": {
"description": "Street address. On update, an empty string clears the stored value.",
"type": "string",
"maxLength": 255
},
"district": {
"description": "District or neighborhood. On update, an empty string clears the stored value.",
"type": "string",
"maxLength": 255
},
"city": {
"description": "City. On update, an empty string clears the stored value.",
"type": "string",
"maxLength": 255
},
"region": {
"description": "Region or state. On update, an empty string clears the stored value.",
"type": "string",
"maxLength": 255
},
"age": {
"description": "Age in years.",
"type": "integer",
"minimum": 1,
"maximum": 130
},
"gender": {
"description": "0 = other, 1 = female, 2 = male.",
"anyOf": [
{
"type": "number",
"const": 0
},
{
"type": "number",
"const": 1
},
{
"type": "number",
"const": 2
}
]
},
"birth_day": {
"description": "Day of birth, 1-31.",
"type": "integer",
"minimum": 1,
"maximum": 31
},
"birth_month": {
"description": "Month of birth, 1-12.",
"type": "integer",
"minimum": 1,
"maximum": 12
},
"birth_year": {
"description": "Year of birth.",
"type": "integer",
"minimum": 1900,
"maximum": 2100
},
"custom_attributes": {
"description": "Custom attribute values to set.",
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Custom attribute template id (agendapro_list_custom_attributes)."
},
"value": {
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "number"
},
{
"type": "boolean"
}
]
}
},
"required": [
"id",
"value"
]
}
}
},
"required": [
"client_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}