# Partial Commit of Contacts Batch

**URL:** <https://community.hubspot.com/t/partial-commit-of-contacts-batch/11297>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [September 17, 2018, 7:01pm UTC](https://community.hubspot.com/t/partial-commit-of-contacts-batch/11297 "2018-09-17T19:01:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [September 17, 2018, 7:01pm UTC](https://community.hubspot.com/t/partial-commit-of-contacts-batch/11297/1 "2018-09-17T19:01:18Z")

</div>

We’re using Hubspot API to push a list of contacts to Hubspot using below API endpoint –

[https://api.hubapi.com/contacts/v1/contact/batch/](https://api.hubapi.com/contacts/v1/contact/batch/)

This end point accepts a batch not exceeding 1000 contacts, and pushes them all at once to Hubspot. According to the API documentation, If one record in the batch has issues, the whole batch is rejected and even the successful records are not committed to Hubspot.

Is there a way to enable the partial commit on Husbpot side(Valid contacts from the batch should be saved)? Perhaps by setting some property in the input JSON?

---

<div class="post-metadata">

**Author:** ![cbarley](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cbarley/32/82559_2.png) [@cbarley](https://community.hubspot.com/u/cbarley)\
**Post date:** [September 17, 2018, 8:32pm UTC](https://community.hubspot.com/t/partial-commit-of-contacts-batch/11297/2 "2018-09-17T20:32:30Z")

</div>

Hey [@jwalants](https://community.hubspot.com/u/jwalants), No that’s not possible; if a contact in the batch is invalid, the whole batch fails. There’s no property we can add to the JSON body to override this behavior. That said, the error message should have details about which contact(s) failed, so you can retry the batch without the invalid contact(s).

---

<div class="post-metadata">

**Author:** ![STurbadkar4](https://avatars.discourse-cdn.com/v4/letter/s/58f4c7/32.png) [@STurbadkar4](https://community.hubspot.com/u/STurbadkar4)\
**Post date:** [September 3, 2022, 8:00am UTC](https://community.hubspot.com/t/partial-commit-of-contacts-batch/11297/3 "2022-09-03T08:00:56Z")

</div>

Is there a easy way to remove invalid contacts from the batch?

error messages are different so we can not predict the error so should i remove those inavlid contacts from the batch and execute valid batch?
