cURL
curl --request PUT \ --url https://api.buena.ai/api/v2/leads/{leadId} \ --header 'Content-Type: <content-type>' \ --header 'x-api-key: <x-api-key>' \ --data '{ "firstName": "<string>", "lastName": "<string>", "email": "<string>", "company": "<string>", "title": "<string>", "status": "<string>", "tags": [ {} ], "customFields": {} }'
{ "success": true, "data": { "id": "lead_123abc", "firstName": "John", "lastName": "Doe", "email": "john@techcorp.com", "company": "Tech Corp", "title": "Software Engineer", "status": "contacted", "tags": ["linkedin-outreach", "responded"], "customFields": { "lastContactDate": "2024-01-20", "responseTime": "2 hours", "interest": "high" }, "createdAt": "2024-01-15T10:30:00Z", "updatedAt": "2024-01-20T15:30:00Z" } }
Update existing lead information and status
leads:write
application/json
curl -X PUT "https://api.buena.ai/api/v2/leads/lead_123abc" \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "status": "contacted", "tags": ["linkedin-outreach", "responded"], "customFields": { "lastContactDate": "2024-01-20", "responseTime": "2 hours", "interest": "high" } }'
true