EventLeadUpdated
{
"allOf": [
{
"$ref": "#/components/schemas/OrkesioEnvelope"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "lead.updated"
},
"data": {
"type": "object",
"properties": {
"lead": {
"$ref": "#/components/schemas/OrkesioLead"
},
"chat": {
"$ref": "#/components/schemas/OrkesioChat"
},
"changes": {
"type": "array",
"items": {
"type": "string",
"enum": [
"status",
"tags",
"fields",
"name",
"full_name",
"email",
"document",
"notes",
"kanban_order"
],
"description": "Campo do lead que mudou."
},
"description": "Campos do lead que mudaram; o valor novo vem em `lead`."
}
},
"required": [
"lead",
"changes"
],
"additionalProperties": false
}
},
"required": [
"data",
"type"
]
}
]
}