cURL
curl --request PATCH \ --url https://brew.new/api/v1/contacts \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "email": "jane@example.com", "fields": { "firstName": "Janet", "customFields.plan": null } } '
200
Example
{ "contact": { "email": "jane@example.com", "firstName": "Janet", "lastName": "Doe", "subscribed": true, "verificationStatus": "valid", "suppressed": false, "suppressedReason": null, "createdAt": 1712592000000, "updatedAt": 1712592300000, "importId": null, "customFields": { "plan": null, "revenue": 4200 } }, "updated": [ "firstName", "customFields.plan" ] }
Update writable core fields or existing custom fields on one contact. PATCH does not create new contacts or new fields.
Send your Brew API key as Authorization: Bearer brew_xxx.
Authorization: Bearer brew_xxx
Email of the contact to update plus a map of fields to patch.
Show child attributes
The contact was updated.
1
Was this page helpful?