Update Contact Object Campaign ID

I would like to update the contact object found under settings, data management, Objects, contacts. We have a field for Campaign ID that is a dropdown. I would like to update this field using the API. Is this possible?

Thanks

Hey @likwid,

Yes this is possible via the API. You can use the Contacts API. Specifically PATCH
/crm/v3/objects/contacts/{contactId} to update the dropdown property with whatever value you’d like.

Without knowing more specifics this is an example of such a request:

PATCH https://api.hubapi.com/crm/v3/objects/contacts/102
Body (application/json)

{
 "properties": {
 "campaignId": "032832353F"
 }
}

The important thing to keep in mind is that when you are updating a dropdown the value you pass through must match one of the internal values of the dropdown. So in the example above I would have an option with an internal value “032832353F”. If you want to add more options you can do that, it’s just a matter of updating the property itself. This can be done by using the Properties API .

@coldrickjack Thank you for the response. The Properties API is what I was looking for.