# Batch Company Update - 400 Response

**URL:** <https://community.hubspot.com/t/batch-company-update-400-response/11990>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [April 10, 2018, 6:37am UTC](https://community.hubspot.com/t/batch-company-update-400-response/11990 "2018-04-10T06:37:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![flemingapptopia](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/flemingapptopia/32/93181_2.png) [@flemingapptopia](https://community.hubspot.com/u/flemingapptopia)\
**Post date:** [April 10, 2018, 6:37am UTC](https://community.hubspot.com/t/batch-company-update-400-response/11990/1 "2018-04-10T06:37:35Z")

</div>

Hey Folks,

I am trying to use the batch company update api (/companies/v1/batch-async/update) with little success. My first attempts yielded a 200 response, so I did some digging and saw that I need to specify the content-type as json. Changed that, and now I’m getting 400 errors. Help!

```auto
HS_API_URL = "https://api.hubapi.com"
xurl = "/companies/v1/batch-async/update"
postUrl = HS_API_URL + xurl + REDACTEDAPIKEY

headers = {'content-type':'application/json'} 
r = requests.post(postUrl, headers=headers, data=tempJson)

```

json  
`[{"objectId": 115272811, "properties": [{"name": "last_sales_email_replied_date", "value": 112}]}, {"objectId": 114942341, "properties": [{"name": "last_sales_email_replied_date", "value": 142}]}, {"objectId": 114940551, "properties": [{"name": "last_sales_email_replied_date", "value": 582}]}, {"objectId": 114941356, "properties": [{"name": "last_sales_email_replied_date", "value": 544}]}, {"objectId": 115271946, "properties": [{"name": "last_sales_email_replied_date", "value": 572}]}]`

---

<div class="post-metadata">

**Author:** ![flemingapptopia](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/flemingapptopia/32/93181_2.png) [@flemingapptopia](https://community.hubspot.com/u/flemingapptopia)\
**Post date:** [April 10, 2018, 12:21pm UTC](https://community.hubspot.com/t/batch-company-update-400-response/11990/2 "2018-04-10T12:21:36Z")

</div>

Nevermind. Solved.

---

<div class="post-metadata">

**Author:** ![3PETE](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/3pete/32/61905_2.png) [@3PETE](https://community.hubspot.com/u/3PETE)\
**Post date:** [April 10, 2018, 12:21pm UTC](https://community.hubspot.com/t/batch-company-update-400-response/11990/3 "2018-04-10T12:21:55Z")

</div>

Glad you figured it out!

---

<div class="post-metadata">

**Author:** ![flemingapptopia](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/flemingapptopia/32/93181_2.png) [@flemingapptopia](https://community.hubspot.com/u/flemingapptopia)\
**Post date:** [April 10, 2018, 1:23pm UTC](https://community.hubspot.com/t/batch-company-update-400-response/11990/4 "2018-04-10T13:23:09Z")

</div>

Note for others:

If you are trying to overwrite a hubspot only field, it will throw a 400 error. I was being stupid and looking at the wrong field.

-Matt
