# Update Contact Object Campaign ID

**URL:** <https://community.hubspot.com/t/update-contact-object-campaign-id/85674>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [July 19, 2023, 4:34pm UTC](https://community.hubspot.com/t/update-contact-object-campaign-id/85674 "2023-07-19T16:34:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![likwid](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/likwid/32/58551_2.png) [@likwid](https://community.hubspot.com/u/likwid)\
**Post date:** [July 19, 2023, 4:34pm UTC](https://community.hubspot.com/t/update-contact-object-campaign-id/85674/1 "2023-07-19T16:34:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![coldrickjack](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/coldrickjack/32/6684_2.png) [@coldrickjack](https://community.hubspot.com/u/coldrickjack)\
**Post date:** [July 20, 2023, 10:09am UTC](https://community.hubspot.com/t/update-contact-object-campaign-id/85674/2 "2023-07-20T10:09:31Z")

</div>

Hey @likwid,

Yes this is possible via the API. You can use the [Contacts API](https://developers.hubspot.com/docs/api/crm/contacts). 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:

```lia-code-sample
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](https://developers.hubspot.com/docs/api/crm/properties) .

---

<div class="post-metadata">

**Author:** ![likwid](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/likwid/32/58551_2.png) [@likwid](https://community.hubspot.com/u/likwid)\
**Post date:** [July 20, 2023, 9:44pm UTC](https://community.hubspot.com/t/update-contact-object-campaign-id/85674/3 "2023-07-20T21:44:45Z")

</div>

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