Raw schema
{
"type": "object",
"properties": {
"contact_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Helpwise contact id."
},
"firstname": {
"description": "New first name.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"lastname": {
"description": "New last name.",
"type": "string",
"maxLength": 200
},
"company": {
"description": "New company.",
"type": "string",
"maxLength": 200
},
"job_title": {
"description": "New job title.",
"type": "string",
"maxLength": 200
},
"emails": {
"description": "The full list of email addresses (replaces the current list).",
"minItems": 1,
"maxItems": 10,
"type": "array",
"items": {
"type": "string",
"maxLength": 254,
"pattern": "^[^\\s@<>\",;:\\\\]+@[^\\s@<>\",;:\\\\]+\\.[^\\s@<>\",;:\\\\]+$"
}
},
"phones": {
"description": "The full list of phone numbers (replaces the current list).",
"maxItems": 10,
"type": "array",
"items": {
"type": "object",
"properties": {
"phone": {
"type": "string",
"minLength": 3,
"maxLength": 40,
"description": "Phone number with country code, e.g. +14155550123."
},
"type": {
"description": "Helpwise phone type code, as a string (default \"0\").",
"type": "string",
"maxLength": 10
}
},
"required": [
"phone"
]
}
},
"custom_fields": {
"description": "Custom field values to set (replaces the current list).",
"maxItems": 50,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Custom field id (from the Helpwise custom fields settings)."
},
"value": {
"type": "string",
"maxLength": 2000,
"description": "Value to store."
},
"name": {
"description": "Custom field name (optional).",
"type": "string",
"maxLength": 200
}
},
"required": [
"id",
"value"
]
}
}
},
"required": [
"contact_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}