FlaresendDocs
Contacts

Update a contact

Change a contact's name, data or subscription status.

PATCH/v1/contacts/{id}API key

Only the fields you send change. Unlike Create a contact, null here clears a field. The email address can't be changed; create a new contact instead.

Setting unsubscribed to false puts a contact back on your broadcasts. Only do that when the person asked for it. See Unsubscribe.

Path parameters

idstringpathrequired

The contact ID.

Body parameters

firstNamestring | null

Up to 200 characters. null clears it.

lastNamestring | null

Up to 200 characters. null clears it.

true makes broadcasts skip this contact.

dataobject | null

Replaces the stored data object as a whole. null clears it.

Response

The updated contact, with the fields described in Create a contact.

Errors

StatusCodeWhen
400missing_bodyThe request has no body.
400invalid_bodyA field has the wrong type or length.
404contact_not_foundNo contact with that ID in this project.