Raw schema
{
"type": "object",
"properties": {
"lead_id": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "The lead's numeric id."
},
"salutation": {
"type": "string"
},
"first_name": {
"type": "string"
},
"last_name": {
"description": "Last name.",
"type": "string"
},
"title": {
"description": "Job title.",
"type": "string"
},
"email": {
"description": "Email address.",
"type": "string"
},
"phone": {
"type": "string"
},
"mobile": {
"type": "string"
},
"organisation_name": {
"description": "Company name (free text โ leads are not linked to organisations).",
"type": "string"
},
"industry": {
"type": "string"
},
"website": {
"type": "string"
},
"employee_count": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"lead_rating": {
"description": "Rating, e.g. 1-5.",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"lead_description": {
"description": "Description / notes on the lead.",
"type": "string"
},
"lead_status_id": {
"description": "Status id โ see insightly_list_lead_statuses.",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"lead_source_id": {
"description": "Source id โ see insightly_list_lead_sources.",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"owner_user_id": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"responsible_user_id": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"address_street": {
"type": "string"
},
"address_city": {
"type": "string"
},
"address_state": {
"type": "string"
},
"address_postcode": {
"type": "string"
},
"address_country": {
"type": "string"
},
"email_opted_out": {
"type": "boolean"
},
"custom_fields": {
"description": "Custom field values to set.",
"type": "array",
"items": {
"type": "object",
"properties": {
"field_name": {
"type": "string",
"description": "The custom field's FIELD_NAME, e.g. Industry__c."
},
"field_value": {
"description": "The value (null clears it).",
"type": [
"string",
"number",
"boolean",
"null"
]
}
},
"required": [
"field_name",
"field_value"
]
}
}
},
"required": [
"lead_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}