<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to set dropdown select custom property on contact via API in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-set-dropdown-select-custom-property-on-contact-via-API/m-p/1090829#M79307</link>
    <description>&lt;P&gt;Thank you for coming back and sharing your solution! — Jaycee&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jan 2025 19:00:00 GMT</pubDate>
    <dc:creator>Jaycee_Lewis</dc:creator>
    <dc:date>2025-01-07T19:00:00Z</dc:date>
    <item>
      <title>How to set dropdown select custom property on contact via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-set-dropdown-select-custom-property-on-contact-via-API/m-p/730820#M59661</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Im using this endpoint to create a contact&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;endpoint&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;'&lt;A href="https://api.hubapi.com/contacts/v1/contact/" target="_blank"&gt;https://api.hubapi.com/contacts/v1/contact/&lt;/A&gt;'.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"property"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"lastname"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"value"&lt;/SPAN&gt;&lt;SPAN&gt;: "myemail"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"property"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"drop_down_property"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"value"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"Public "&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This doesnt set the value for the drop_down_property&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The property exists on the contact but how do i set its value&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 14 Dec 2022 14:18:39 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-set-dropdown-select-custom-property-on-contact-via-API/m-p/730820#M59661</guid>
      <dc:creator>NAhmed4</dc:creator>
      <dc:date>2022-12-14T14:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to set dropdown select custom property on contact via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-set-dropdown-select-custom-property-on-contact-via-API/m-p/731039#M59681</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/491398"&gt;@NAhmed4&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for reaching out. Here are examples using the v1 and v3 versions of this endpoint.&lt;/P&gt;
&lt;P&gt;Steps taken for both:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Created a custom contact property — dropdown select&lt;/LI&gt;
&lt;LI&gt;Grabbed the internal value to use in my API request&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dds-01.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/81304iC9F5ED7EE6A4FF5F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dds-01.png" alt="dds-01.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Update an existing contact —&amp;nbsp;&lt;A href="https://legacydocs.hubspot.com/docs/methods/contacts/update_contact" target="_blank" rel="noopener"&gt;POST /contacts/v1/contact/vid/:vid/profile&lt;/A&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;My request URL and body&lt;BR /&gt;&lt;LI-CODE lang="markup"&gt;POST https://api.hubapi.com/contacts/v1/contact/vid/901/profile​

{
    "properties": [
        {
            "property": "new_mexico_chile",
            "value": "Green"
        }
    ]
}&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;LI&gt;I received a 204 No Content response which indicates a successful update&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dds-04.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/81306iDEB1C0C13CDEE672/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dds-04.png" alt="dds-04.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;From the &lt;A href="https://legacydocs.hubspot.com/docs/methods/contacts/update_contact#:~:text=Response%20details-,Returns%20a%20204,-with%20no%20response" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt; — “Response details – Returns a 204 with no response body when a contact is updated successfully.”&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the v3 version — &lt;A href="https://developers.hubspot.com/docs/api/crm/contacts" target="_blank" rel="noopener"&gt;Update a Contact&lt;/A&gt;:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Update a contact —&amp;nbsp;&lt;STRONG class="PathUrl__StyledMethod-sc-88vxew-1 hVcAWF"&gt;PATCH&lt;/STRONG&gt;&lt;CODE class="PathUrl__StyledCode-sc-88vxew-2 cHKzhs private-code"&gt;&lt;SPAN class="PathUrl__StyledPath-sc-88vxew-3 fLMvfB"&gt;&lt;SPAN class="private-truncated-string" data-content="true"&gt;&lt;SPAN class="private-truncated-string__inner"&gt;&lt;SPAN class="private-truncated-string__reverse"&gt;&lt;SPAN class="private-truncated-string__reverse__tail"&gt;&lt;SPAN class="private-truncated-string__reverse__content"&gt;/crm/v3/objects/contacts/{contactId}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;Request&amp;nbsp;&lt;BR /&gt;&lt;LI-CODE lang="markup"&gt;curl --request PATCH \
  --url https://api.hubapi.com/crm/v3/objects/contacts/901 \
  --header 'authorization: Bearer YOUR_ACCESS_TOKEN' \
  --header 'content-type: application/json' \
  --data '{
  "properties": {
    "new_mexico_chile": "Red"
  }
}'​&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;LI&gt;Response&lt;BR /&gt;&lt;LI-CODE lang="markup"&gt;HTTP 200

{
  "id": "901",
  "properties": {
    "createdate": "2022-11-03T21:42:31.255Z",
    "hs_lifecyclestage_lead_date": "2022-11-03T21:42:31.255Z",
    "hs_pipeline": "contacts-lifecycle-pipeline",
    "lastmodifieddate": "2022-12-14T20:30:50.877Z",
    "lifecyclestage": "lead",
    "new_mexico_chile": "Red"
  },
  "createdAt": "2022-11-03T21:42:31.255Z",
  "updatedAt": "2022-12-14T20:30:50.877Z",
  "archived": false
}​&lt;/LI-CODE&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dds-03.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/81307i6B57BF1A5B2ECF09/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dds-03.png" alt="dds-03.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have fun building! — Jaycee&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 20:54:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-set-dropdown-select-custom-property-on-contact-via-API/m-p/731039#M59681</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2022-12-14T20:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to set dropdown select custom property on contact via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-set-dropdown-select-custom-property-on-contact-via-API/m-p/1087406#M79180</link>
      <description>&lt;P&gt;Hi Jaycee, how would you do that for multiple values? e.g. you want red and green to be selected&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2024 05:16:08 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-set-dropdown-select-custom-property-on-contact-via-API/m-p/1087406#M79180</guid>
      <dc:creator>SPfeiffer8</dc:creator>
      <dc:date>2024-12-27T05:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to set dropdown select custom property on contact via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-set-dropdown-select-custom-property-on-contact-via-API/m-p/1087408#M79181</link>
      <description>&lt;P&gt;I've figured it out - just separate the values with a semicolon&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2024 05:29:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-set-dropdown-select-custom-property-on-contact-via-API/m-p/1087408#M79181</guid>
      <dc:creator>SPfeiffer8</dc:creator>
      <dc:date>2024-12-27T05:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to set dropdown select custom property on contact via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-set-dropdown-select-custom-property-on-contact-via-API/m-p/1090829#M79307</link>
      <description>&lt;P&gt;Thank you for coming back and sharing your solution! — Jaycee&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 19:00:00 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-set-dropdown-select-custom-property-on-contact-via-API/m-p/1090829#M79307</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2025-01-07T19:00:00Z</dc:date>
    </item>
  </channel>
</rss>

