# Batch Create associations

**URL:** <https://community.hubspot.com/t/batch-create-associations/82429>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [June 1, 2023, 8:51am UTC](https://community.hubspot.com/t/batch-create-associations/82429 "2023-06-01T08:51:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![EIbbetson](https://avatars.discourse-cdn.com/v4/letter/e/d9b06d/32.png) [@EIbbetson](https://community.hubspot.com/u/EIbbetson)\
**Post date:** [June 1, 2023, 8:51am UTC](https://community.hubspot.com/t/batch-create-associations/82429/1 "2023-06-01T08:51:52Z")

</div>

Using this documentation:

> **[Accounts Dashboard | HubSpot](https://app.hubspot.com/myaccounts?next=developerdocs&redirect=%2Fapi-reference%2Fcrm-contacts-v3%2Fguide)**

Using this link under /crm/v3/objects/contacts/batch/create

Says I can add Associations to it:

const BatchInputSimplePublicObjectInputForCreate = { inputs: [{“properties”:{“[company":“Biglytics”,“email”:"bcooper@biglytics.net](mailto:company%22:%22Biglytics%22,%22email%22:%22bcooper@biglytics.net)”,“firstname”:“Bryan”,“lastname”:“Cooper”,“phone”:“(877) 929-0687”,“website”:“[biglytics.net](http://biglytics.net)”},“associations”:[{“to”:{“id”:“6405179454”},“types”:[{“associationCategory”:“USER\_DEFINED”,“associationTypeId”:1}]}]}] };

When I do this, I get an error:

Contact creates with Associations not supported

I knew originally you had to do the Association separately but this is a direct copy/paste from the Documentation guide.

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [June 2, 2023, 5:20pm UTC](https://community.hubspot.com/t/batch-create-associations/82429/2 "2023-06-02T17:20:41Z")

</div>

Hey, @EIbbetson 👋 Thanks for taking the time to flag this. I ran a quick test and got the same result.

Example:

Request

```lia-code-sample
curl --request POST \
 --url https://api.hubapi.com/crm/v3/objects/contacts/batch/create \
 --header 'authorization: Bearer YOUR_ACCESS_TOKEN' \
 --header 'content-type: application/json' \
 --data '{
 "inputs": [
 {
 "properties": {
 "company": "Jimmy Pesto'\''s Pizzeria",
 "email": "jimmyjr@jimmypestopizzeria.com",
 "firstname": "Jimmy Jr",
 "lastname": "Pesto",
 "phone": "(877) 929-0687",
 "website": "http://jimmypestopizzeria.com"
 },
 "associations": [
 {
 "to": {
 "id": "10202231595"
 },
 "types": [
 {
 "associationCategory": "HUBSPOT_DEFINED",
 "associationTypeId": 1
 }
 ]
 }
 ]
 }
 ]
}'

```

Response

```lia-code-sample
HTTP 400

{
 "status": "error",
 "message": "Contact creates with Associations not supported.",
 "errorTokens": {
 "failedRequests": [
 "This failed createObjectRequest is of type contact and contains the following associations: [AssociationSpecAndObjectIds{associationSpec=AssociationSpec{associationCategory=HUBSPOT_DEFINED, associationTypeId=1}, objectIds=[10202231595]}]"
 ]
 },
 "correlationId": "3ec31fe7-17cd-4e49-ad93-6e150f2f8202"
}

```

I’ll take your example and mine, and get this to the team that owns the dev docs. I agree, this is confusing to offer an option that is explicitly called out as not possible in the accompanying [documentation](https://developers.hubspot.com/docs/api/crm/contacts#:~:text=a%20properties%20object.-,Please%20note,-%3A%20you%20cannot%20create):

`Please note: you cannot create a contact and associate it with a record or activity in the same request. To associate your contact with other records or activities, create the contact, then update the contact or create an association via the associations API.`

Thanks again! — Jaycee

---

<div class="post-metadata">

**Author:** ![PRao5](https://avatars.discourse-cdn.com/v4/letter/p/aca169/32.png) [@PRao5](https://community.hubspot.com/u/PRao5)\
**Post date:** [July 22, 2023, 2:01pm UTC](https://community.hubspot.com/t/batch-create-associations/82429/3 "2023-07-22T14:01:08Z")

</div>

Hello, I am also facing same issue. So, Is the end point defination is wrong? I still confused, do we create association to the new user creation. If not please remove it from the documentation

/crm/v3/objects/contacts/batch/create
