# Remove email while update contact using REST API

**URL:** <https://community.hubspot.com/t/remove-email-while-update-contact-using-rest-api/15169>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [July 8, 2019, 10:13am UTC](https://community.hubspot.com/t/remove-email-while-update-contact-using-rest-api/15169 "2019-07-08T10:13:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ArunrajManrajan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/arunrajmanrajan/32/14727_2.png) [@ArunrajManrajan](https://community.hubspot.com/u/ArunrajManrajan)\
**Post date:** [July 8, 2019, 10:13am UTC](https://community.hubspot.com/t/remove-email-while-update-contact-using-rest-api/15169/1 "2019-07-08T10:13:46Z")

</div>

Hi Team ,

I tried to removed email from Contact .When i passed “” or null to email field , API throw 400 Bad Request .

```auto
Request: https://api.hubapi.com/contacts/v1/contact/vid/201/profile{
 "properties": [
 {
 "property": "phone",
 "value": "+16094886338"
 },
 {
 "property": "email",
 "value": null
 }
 ]
}

```

```auto
RESPONSE{
 "validationResults": [
 {
 "isValid": false,
 "message": "Email address is invalid",
 "error": "INVALID_EMAIL",
 "name": "email"
 }
 ],
 "status": "error",
 "message": "Property values were not valid",
 "correlationId": "9bedb9d1-8034-470a-9786-098f07ba7427",
 "requestId": "134ebefc2850176729aed55912a219c9"
}

```

---

<div class="post-metadata">

**Author:** ![himanshurauthan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/himanshurauthan/32/53076_2.png) [@himanshurauthan](https://community.hubspot.com/u/himanshurauthan)\
**Post date:** [July 8, 2019, 10:29am UTC](https://community.hubspot.com/t/remove-email-while-update-contact-using-rest-api/15169/2 "2019-07-08T10:29:27Z")

</div>

Hello @ArunrajManrajan

Since email address is a unique key for a CRM to work on contacts so it will not take up any such record which do not have email address.  
As in your case you are trying to edit the contact ( remove email address from the record ) and passing “” or NULL. HubSpot API will assume it as a new value for email property and will apply validation for the same. Since “” or NULL is an invalid format for email address field, hence returning 400 for the same.

In short, no way to remove an email from the contact unless or untill you attach a new email address with the same record.

Thanks

---

<div class="post-metadata">

**Author:** ![jeanRoger](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jeanroger/32/44503_2.png) [@jeanRoger](https://community.hubspot.com/u/jeanRoger)\
**Post date:** [May 26, 2021, 4:51pm UTC](https://community.hubspot.com/t/remove-email-while-update-contact-using-rest-api/15169/3 "2021-05-26T16:51:31Z")

</div>

is there a way to exclude email validation? I have user that mistype their emails something like [aaa@gmail.comn,](mailto:aaa@gmail.comn,) I would like to keep that way and not alter it when creating the contact on hubspot cc @himanshurauthan

---

<div class="post-metadata">

**Author:** ![AbdelMOULIDA](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/abdelmoulida/32/76793_2.png) [@AbdelMOULIDA](https://community.hubspot.com/u/AbdelMOULIDA)\
**Post date:** [October 1, 2021, 3:42pm UTC](https://community.hubspot.com/t/remove-email-while-update-contact-using-rest-api/15169/4 "2021-10-01T15:42:33Z")

</div>

Hello @jeanRoger ,

Were you finally able to exclude email validation?

If so how please? I have the same problem, [https://community.hubspot.com/t5/APIs-Integrations/Getting-the-error-invalidEmails/m-p/503907#M47351](https://community.hubspot.com/t5/APIs-Integrations/Getting-the-error-invalidEmails/m-p/503907#M47351)

Regards
