cURL
curl --request PUT \ --url https://api.example.com/api/v1/contacts/{email} \ --header 'Content-Type: application/json' \ --data ' { "first_name": "<string>", "last_name": "<string>", "phone": "<string>", "tags": [ {} ], "list_id": 123, "list_name": "<string>" } '
{ "success": true, "data": { "id": 123, "email": "[email protected]", "first_name": "Jonathan", "last_name": "Doe", "phone": "+1987654321", "tags": ["vip", "premium", "enterprise"], "lead_score": 85, "created_at": "2025-01-15T10:30:00", "updated_at": "2025-12-30T10:00:00" }, "message": "Kontakt zaktualizowany pomyślnie" }
Zaktualizuj informacje o kontakcie po adresie email
curl -X PUT https://api.mailist.com/api/v1/contacts/[email protected] \ -H "X-API-Key: TWOJ_KLUCZ_API" \ -H "Content-Type: application/json" \ -d '{ "first_name": "Jonathan", "phone": "+1987654321", "tags": ["vip", "premium", "enterprise"] }'