# Association Batch 400 Error

**URL:** <https://community.hubspot.com/t/association-batch-400-error/123491>\
**Category:** APIs & Integrations\
**Tags:** professional\
**Created:** [January 8, 2025, 2:47pm UTC](https://community.hubspot.com/t/association-batch-400-error/123491 "2025-01-08T14:47:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DGrant5](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@DGrant5](https://community.hubspot.com/u/DGrant5)\
**Post date:** [January 8, 2025, 2:47pm UTC](https://community.hubspot.com/t/association-batch-400-error/123491/1 "2025-01-08T14:47:23Z")

</div>

Hello, Im currently getting a 400 - :“VALIDATION\_ERROR” “One or more associations are invalid hubspot”.  
Endpoint=[https://api.hubapi.com/crm/v4/associations/contacts/events/batch/associate/default](https://api.hubapi.com/crm/v4/associations/contacts/events/batch/associate/default), Method=POST

JSON:

**{**

**“inputs”: [**

```
**{**

  **"to": {**

    **"id": "20772404047"**

  **},**

  **"from": {**

    **"id": "76785902389"**

  **}**

**},**

**{**

  **"to": {**

    **"id": "20772404047"**

  **},**

  **"from": {**

    **"id": "77609619773"**

  **}**

**},**

**{**

  **"to": {**

    **"id": "20492054288"**

  **},**

  **"from": {**

    **"id": "75467320378"**

  **}**

**},**

**{**

  **"to": {**

    **"id": "20764306582"**

  **},**

  **"from": {**

    **"id": "75811530797"**

  **}**

**},**

**{**

  **"to": {**

    **"id": "20764306582"**

  **},**

  **"from": {**

    **"id": "75805291125"**

  **}**

**},**

**{**

  **"to": {**

    **"id": "20772248440"**

  **},**

  **"from": {**

    **"id": "77092380563"**

  **}**

**},**

**{**

  **"to": {**

    **"id": "20772248440"**

  **},**

  **"from": {**

    **"id": "77382947963"**

  **}**

**},**

**{**

  **"to": {**

    **"id": "20854862119"**

  **},**

  **"from": {**

    **"id": "77482305313"**

  **}**

**},**

**{**

  **"to": {**

    **"id": "20854862119"**

  **},**

  **"from": {**

    **"id": "77456048994"**

  **}**

**},**

**{**

  **"to": {**

    **"id": "20854862119"**

  **},**

  **"from": {**

    **"id": "79285056801"**

  **}**

**},**

**{**

  **"to": {**

    **"id": "20771475857"**

  **},**

  **"from": {**

    **"id": "77796346036"**

  **}**

**},**

**{**

  **"to": {**

    **"id": "20770526282"**

  **},**

  **"from": {**

    **"id": "77796346036"**

  **}**

**},**

**{**

  **"to": {**

    **"id": "20763532967"**

  **},**

  **"from": {**

    **"id": "77796346036"**

  **}**

**},**

**{**

  **"to": {**

    **"id": "22178497883"**

  **},**

  **"from": {**

    **"id": "75522523740"**

  **}**

**},**

**{**

  **"to": {**

    **"id": "22188039347"**

  **},**

  **"from": {**

    **"id": "89459250703"**

  **}**

**},**

**{**

  **"to": {**

    **"id": "22188039347"**

  **},**

  **"from": {**

    **"id": "77066958239"**

  **}**

**},**

**{**

  **"to": {**

    **"id": "22188039347"**

  **},**

  **"from": {**

    **"id": "89499984733"**

  **}**

**},**

**{**

  **"to": {**

    **"id": "22188039347"**

  **},**

  **"from": {**

    **"id": "85239787824"**

  **}**

**},**

**{**

  **"to": {**

    **"id": "22204806433"**

  **},**

  **"from": {**

    **"id": "89551317427"**

  **}**

**},**

**{**

  **"to": {**

    **"id": "22204806433"**

  **},**

  **"from": {**

    **"id": "79284720289"**

  **}**

**}**

```

**]**

**}**

---

<div class="post-metadata">

**Author:** ![evaldas](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/evaldas/32/69160_2.png) [@evaldas](https://community.hubspot.com/u/evaldas)\
**Post date:** [January 8, 2025, 8:01pm UTC](https://community.hubspot.com/t/association-batch-400-error/123491/2 "2025-01-08T20:01:45Z")

</div>

Hi @DGrant5,

The error is likely ocurring because at least one of the IDs is not valid.

Double check to make sure that all the IDs in the “from” input correspond to existing contacts and that the “to” IDs correspond to existing events.

You can run a very basic test with one pair first to ensure that the endpoint is working properly.

{

“inputs”: [

{

“to”: {

“id”: “20772404047”

},

“from”: {

“id”: “76785902389”

}

}

]

}
