<?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: I got error while creating ENUM type property for contact object. in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/I-got-error-while-creating-ENUM-type-property-for-contact-object/m-p/1099063#M79804</link>
    <description>&lt;P&gt;This is the error that I got from HubSpot package.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KPadhiyar_0-1737713294620.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/136816iECE99AEF36C75CC0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KPadhiyar_0-1737713294620.png" alt="KPadhiyar_0-1737713294620.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jan 2025 10:09:11 GMT</pubDate>
    <dc:creator>KPadhiyar</dc:creator>
    <dc:date>2025-01-24T10:09:11Z</dc:date>
    <item>
      <title>I got error while creating ENUM type property for contact object.</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/I-got-error-while-creating-ENUM-type-property-for-contact-object/m-p/1099044#M79801</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Can anyone tell me if HubSpot has made any changes related to creating properties of type ENUM? From yesterday, I’ve been getting an error while creating a property in HubSpot for the contact object.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;I’m creating the property with empty options, and the error I got:&lt;BR /&gt;{"status":"error","message":"Property 'test_property' of object type ' 0- 1' has no options but options are re (truncated...)&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KPadhiyar_0-1737710625056.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/136814iB2D45E2E4CBD28DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KPadhiyar_0-1737710625056.png" alt="KPadhiyar_0-1737710625056.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 09:25:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/I-got-error-while-creating-ENUM-type-property-for-contact-object/m-p/1099044#M79801</guid>
      <dc:creator>KPadhiyar</dc:creator>
      <dc:date>2025-01-24T09:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: I got error while creating ENUM type property for contact object.</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/I-got-error-while-creating-ENUM-type-property-for-contact-object/m-p/1099056#M79802</link>
      <description>&lt;P&gt;Could you please share the complete cURL request?&lt;BR /&gt;Additionally, please ensure that there are no spaces in the object type, such as '0-1'.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 09:53:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/I-got-error-while-creating-ENUM-type-property-for-contact-object/m-p/1099056#M79802</guid>
      <dc:creator>AliFawadHassan</dc:creator>
      <dc:date>2025-01-24T09:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: I got error while creating ENUM type property for contact object.</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/I-got-error-while-creating-ENUM-type-property-for-contact-object/m-p/1099060#M79803</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/490980"&gt;@AliFawadHassan&lt;/a&gt;&amp;nbsp;Thanks for the reply.&lt;BR /&gt;&lt;BR /&gt;I'm using PHP package for create property.(&lt;A href="https://github.com/HubSpot/hubspot-api-php" target="_blank"&gt;https://github.com/HubSpot/hubspot-api-php&lt;/A&gt;)&lt;/P&gt;&lt;LI-CODE lang="php"&gt;$request = new HubSpot\Client\Crm\Properties\Model\PropertyCreate\PropertyCreate([
"name" =&amp;gt; "test"
  "label" =&amp;gt; "Test"
  "description" =&amp;gt; "Test"
  "group_name" =&amp;gt; "test"
  "type" =&amp;gt; "enumeration"
  "field_type" =&amp;gt; "checkbox"
  "form_field" =&amp;gt; true
  "options" =&amp;gt; [],
]);

$service = $hubspot-&amp;gt;crm()-&amp;gt;properties()-&amp;gt;coreApi()-&amp;gt;create('contact', $request);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 10:05:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/I-got-error-while-creating-ENUM-type-property-for-contact-object/m-p/1099060#M79803</guid>
      <dc:creator>KPadhiyar</dc:creator>
      <dc:date>2025-01-24T10:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: I got error while creating ENUM type property for contact object.</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/I-got-error-while-creating-ENUM-type-property-for-contact-object/m-p/1099063#M79804</link>
      <description>&lt;P&gt;This is the error that I got from HubSpot package.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KPadhiyar_0-1737713294620.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/136816iECE99AEF36C75CC0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KPadhiyar_0-1737713294620.png" alt="KPadhiyar_0-1737713294620.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 10:09:11 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/I-got-error-while-creating-ENUM-type-property-for-contact-object/m-p/1099063#M79804</guid>
      <dc:creator>KPadhiyar</dc:creator>
      <dc:date>2025-01-24T10:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: I got error while creating ENUM type property for contact object.</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/I-got-error-while-creating-ENUM-type-property-for-contact-object/m-p/1099289#M79820</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/813499"&gt;@KPadhiyar&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For most integration use cases, I generally recommend avoiding HubSpot's API Client Libraries in favour of interacting with HubSpot APIs via a dedicated HTTP request package. Regardless, based on your example request, I'd recommend [1] making sure the Contact property group name "test" exists in the given HubSpot Portal and [2] defining at least 1 option when creating properties of "enumeration" type.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope that proves helpful. Please let me know if you have any follow-up questions.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 19:18:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/I-got-error-while-creating-ENUM-type-property-for-contact-object/m-p/1099289#M79820</guid>
      <dc:creator>zach_threadint</dc:creator>
      <dc:date>2025-01-24T19:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: I got error while creating ENUM type property for contact object.</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/I-got-error-while-creating-ENUM-type-property-for-contact-object/m-p/1099421#M79826</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/813499"&gt;@KPadhiyar&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&lt;SPAN&gt;Can anyone tell me if HubSpot has made any changes related to creating properties of type ENUM? From yesterday, I’ve been getting an error while creating a property in HubSpot for the contact object.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;I’m creating the property with empty options, and the error I got:&lt;BR /&gt;{"status":"error","message":"Property 'test_property' of object type ' 0- 1' has no options but options are re (truncated...)&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KPadhiyar_0-1737710625056.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/136814iB2D45E2E4CBD28DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KPadhiyar_0-1737710625056.png" alt="KPadhiyar_0-1737710625056.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It looks like the issue is due to the options array being empty. HubSpot requires at least one option for ENUM-type properties. Try adding options like this&lt;A href="https://lihomenu.sg/" target="_blank" rel="noopener"&gt;:&lt;/A&gt;&lt;/P&gt;&lt;P&gt;"options" =&amp;gt; [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ["label" =&amp;gt; "Option 1", "value" =&amp;gt; "option_1", "displayOrder" =&amp;gt; 0]&lt;/P&gt;&lt;P&gt;],&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jan 2025 03:57:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/I-got-error-while-creating-ENUM-type-property-for-contact-object/m-p/1099421#M79826</guid>
      <dc:creator>KJames77</dc:creator>
      <dc:date>2025-01-25T03:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: I got error while creating ENUM type property for contact object.</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/I-got-error-while-creating-ENUM-type-property-for-contact-object/m-p/1109735#M80379</link>
      <description>&lt;P&gt;It looks like the issue is that, HubSpot requires at least one option for ENUM-type properties. Try modifying your request like this&lt;A href="https://singaporemalls.sg/plaza-singapore/" target="_blank" rel="noopener"&gt;:&lt;/A&gt;&lt;BR /&gt;"name" =&amp;gt; "test"&lt;BR /&gt;"label" =&amp;gt; "Test",&lt;BR /&gt;"description" =&amp;gt; "Test",&lt;BR /&gt;"group_name" =&amp;gt; "test",&lt;BR /&gt;"type" =&amp;gt; "enumeration",&lt;BR /&gt;"field_type" =&amp;gt; "checkbox",&lt;BR /&gt;"form_field" =&amp;gt; true,&lt;BR /&gt;"options" =&amp;gt; [&lt;BR /&gt;[&lt;BR /&gt;"label" =&amp;gt; "Option 1",&lt;BR /&gt;"value" =&amp;gt; "option_1",&lt;BR /&gt;"displayOrder" =&amp;gt; 0&lt;BR /&gt;]&lt;BR /&gt;]&lt;BR /&gt;]);&lt;BR /&gt;Adding at least one option should help resolve the error&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2025 10:22:22 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/I-got-error-while-creating-ENUM-type-property-for-contact-object/m-p/1109735#M80379</guid>
      <dc:creator>EJames4</dc:creator>
      <dc:date>2025-02-16T10:22:22Z</dc:date>
    </item>
  </channel>
</rss>

