APIs & Integrations

Pocono
Member

Error Message: Meeting to Contacts

SOLVE

Can anyone point to a resource about this error? Thanks!

 

error. message: 'meeting_to_contact is not a valid association type between meetings and contacts',

 

 

..//api.hubapi.com/crm/v3/objects/meetings/24539689136/associations/contact/45151/meeting_to_contact?hapikey=..

1 Accepted solution
Jaycee_Lewis
Solution
Community Manager
Community Manager

Error Message: Meeting to Contacts

SOLVE

Hey, @Pocono 👋 For the associationType param can you try this, please? 

meeting_event_to_contact

I tried that and returned a successful association:
Request

curl --request PUT \
  --url https://api.hubapi.com/crm/v3/objects/meetings/24633009808/associations/0-1/501/meeting_event_to_contact \
  --header 'authorization: Bearer YOUR_ACCESS_TOKEN'

Response

HTTP 200

{
  "id": "24633009808",
  "properties": {
    "hs_createdate": "2022-08-15T14:40:24.805Z",
    "hs_lastmodifieddate": "2022-08-15T14:40:25.211Z",
    "hs_object_id": "24633009808"
  },
  "createdAt": "2022-08-15T14:40:24.805Z",
  "updatedAt": "2022-08-15T14:40:25.211Z",
  "archived": false,
  "associations": {
    "contacts": {
      "results": [
        {
          "id": "501",
          "type": "meeting_event_to_contact"
        },
        {
          "id": "551",
          "type": "meeting_event_to_contact"
        }
      ]
    }
  }
}

 

I hope this helps get you moving forward.

 

Best,

Jaycee

 

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

View solution in original post

0 Upvotes
2 Replies 2
Jaycee_Lewis
Solution
Community Manager
Community Manager

Error Message: Meeting to Contacts

SOLVE

Hey, @Pocono 👋 For the associationType param can you try this, please? 

meeting_event_to_contact

I tried that and returned a successful association:
Request

curl --request PUT \
  --url https://api.hubapi.com/crm/v3/objects/meetings/24633009808/associations/0-1/501/meeting_event_to_contact \
  --header 'authorization: Bearer YOUR_ACCESS_TOKEN'

Response

HTTP 200

{
  "id": "24633009808",
  "properties": {
    "hs_createdate": "2022-08-15T14:40:24.805Z",
    "hs_lastmodifieddate": "2022-08-15T14:40:25.211Z",
    "hs_object_id": "24633009808"
  },
  "createdAt": "2022-08-15T14:40:24.805Z",
  "updatedAt": "2022-08-15T14:40:25.211Z",
  "archived": false,
  "associations": {
    "contacts": {
      "results": [
        {
          "id": "501",
          "type": "meeting_event_to_contact"
        },
        {
          "id": "551",
          "type": "meeting_event_to_contact"
        }
      ]
    }
  }
}

 

I hope this helps get you moving forward.

 

Best,

Jaycee

 

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes
Pocono
Member

Error Message: Meeting to Contacts

SOLVE

Thank you Jaycee!

0 Upvotes