<?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: Error when posting/creating datetime property (HTTP 400 error) in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/965655#M73057</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/479645"&gt;@GIlievski&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Per&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/713591"&gt;@CMyhra&lt;/a&gt;&amp;nbsp;code,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I closely looked in to the code, noticed the inconsistency between type and fieldType:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The&amp;nbsp;type "datetime"&amp;nbsp;which is correct for a datetime property.&lt;/LI&gt;
&lt;LI&gt;However, the&amp;nbsp;fieldType&amp;nbsp;is set to&amp;nbsp;"date". This field type expects only date information (year, month, day) and not time.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Can you try change the fieldType to "datetime" to match the type – &amp;nbsp;a sample code reference is given below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;JSON&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;"hidden": false,&lt;/P&gt;
&lt;P&gt;"displayOrder": 2,&lt;/P&gt;
&lt;P&gt;"description": "datetime",&lt;/P&gt;
&lt;P&gt;"label": "DateTime",&lt;/P&gt;
&lt;P&gt;"type": "datetime",&lt;/P&gt;
&lt;P&gt;"groupName": "contactinformation",&lt;/P&gt;
&lt;P&gt;"name": "datetime",&lt;/P&gt;
&lt;P&gt;"fieldType": "datetime",&amp;nbsp; // Change here&lt;/P&gt;
&lt;P&gt;"formField": true,&lt;/P&gt;
&lt;P&gt;"referencedObjectType": "string",&lt;/P&gt;
&lt;P&gt;"calculationFormula": "string",&lt;/P&gt;
&lt;P&gt;"hasUniqueValue": false,&lt;/P&gt;
&lt;P&gt;"externalOptions": true&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Apr 2024 01:57:38 GMT</pubDate>
    <dc:creator>Humashankar</dc:creator>
    <dc:date>2024-04-24T01:57:38Z</dc:date>
    <item>
      <title>Error when posting/creating datetime property (HTTP 400 error)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/951099#M72292</link>
      <description>&lt;P&gt;When trying to create the datetime property, here's the error I get. Can someone help??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTTP 400 { "status": "error", "message": "Property failed validation.", "correlationId": "cd9d4de0-6715-46b2-97e0-70ac559142e3", "category": "VALIDATION_ERROR", "subCategory": "Properties.PROPERTY_CREATE_FAILED_VALIDATION" }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's my input:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl --request POST \&lt;BR /&gt;--url &lt;A href="https://api.hubapi.com/crm/v3/properties/contacts" target="_blank"&gt;https://api.hubapi.com/crm/v3/properties/contacts&lt;/A&gt; \&lt;BR /&gt;--header 'authorization: Bearer YOUR_ACCESS_TOKEN' \&lt;BR /&gt;--header 'content-type: application/json' \&lt;BR /&gt;--data '{&lt;BR /&gt;"hidden": false,&lt;BR /&gt;"displayOrder": 2,&lt;BR /&gt;"description": "datetime",&lt;BR /&gt;"label": "DateTime",&lt;BR /&gt;"type": "datetime",&lt;BR /&gt;"groupName": "contactinformation",&lt;BR /&gt;"name": "datetime",&lt;BR /&gt;"fieldType": "date",&lt;BR /&gt;"formField": true,&lt;BR /&gt;"referencedObjectType": "string",&lt;BR /&gt;"calculationFormula": "string",&lt;BR /&gt;"hasUniqueValue": false,&lt;BR /&gt;"externalOptions": true&lt;BR /&gt;}'&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 22:52:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/951099#M72292</guid>
      <dc:creator>CMyhra</dc:creator>
      <dc:date>2024-03-27T22:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error when posting/creating datetime property (HTTP 400 error)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/951147#M72297</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/713591"&gt;@CMyhra&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find the technicals of the HTTP 400&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.hubspot.com/changelog/new-validation-for-custom-object-names" target="_blank"&gt;New validation for custom object names (hubspot.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Custom object schemas&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/api/crm/crm-custom-objects" target="_blank"&gt;CRM | custom objects (hubspot.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly to trouble shoot and keep us posted for additional assistance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps - Happy to help further!!&lt;BR /&gt;Thank you very much and have a great one!&lt;/P&gt;&lt;P&gt;Warm regards&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 01:53:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/951147#M72297</guid>
      <dc:creator>Humashankar</dc:creator>
      <dc:date>2024-03-28T01:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error when posting/creating datetime property (HTTP 400 error)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/962845#M72876</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/713591"&gt;@CMyhra&lt;/a&gt;&amp;nbsp;, i have EXACTLY the same error when trying to post a new datetime property. Do you have a solution ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 16:31:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/962845#M72876</guid>
      <dc:creator>HSchaefer9</dc:creator>
      <dc:date>2024-04-18T16:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error when posting/creating datetime property (HTTP 400 error)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/964456#M72984</link>
      <description>&lt;P&gt;Was a solution found for this issue?&lt;BR /&gt;&lt;BR /&gt;The error message is not helpful. I am having the same issue, trying to create a datetime property on contacts.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 12:13:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/964456#M72984</guid>
      <dc:creator>ADitlevsen</dc:creator>
      <dc:date>2024-04-22T12:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error when posting/creating datetime property (HTTP 400 error)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/965652#M73056</link>
      <description>&lt;P&gt;Yeah, I am also having the same issues. I can't find any reason why the validation would fail. I have done this many times in the past. Not sure if there has been a change in the validation requirements?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 01:20:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/965652#M73056</guid>
      <dc:creator>GIlievski</dc:creator>
      <dc:date>2024-04-24T01:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error when posting/creating datetime property (HTTP 400 error)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/965655#M73057</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/479645"&gt;@GIlievski&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Per&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/713591"&gt;@CMyhra&lt;/a&gt;&amp;nbsp;code,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I closely looked in to the code, noticed the inconsistency between type and fieldType:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The&amp;nbsp;type "datetime"&amp;nbsp;which is correct for a datetime property.&lt;/LI&gt;
&lt;LI&gt;However, the&amp;nbsp;fieldType&amp;nbsp;is set to&amp;nbsp;"date". This field type expects only date information (year, month, day) and not time.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Can you try change the fieldType to "datetime" to match the type – &amp;nbsp;a sample code reference is given below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;JSON&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;"hidden": false,&lt;/P&gt;
&lt;P&gt;"displayOrder": 2,&lt;/P&gt;
&lt;P&gt;"description": "datetime",&lt;/P&gt;
&lt;P&gt;"label": "DateTime",&lt;/P&gt;
&lt;P&gt;"type": "datetime",&lt;/P&gt;
&lt;P&gt;"groupName": "contactinformation",&lt;/P&gt;
&lt;P&gt;"name": "datetime",&lt;/P&gt;
&lt;P&gt;"fieldType": "datetime",&amp;nbsp; // Change here&lt;/P&gt;
&lt;P&gt;"formField": true,&lt;/P&gt;
&lt;P&gt;"referencedObjectType": "string",&lt;/P&gt;
&lt;P&gt;"calculationFormula": "string",&lt;/P&gt;
&lt;P&gt;"hasUniqueValue": false,&lt;/P&gt;
&lt;P&gt;"externalOptions": true&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 01:57:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/965655#M73057</guid>
      <dc:creator>Humashankar</dc:creator>
      <dc:date>2024-04-24T01:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error when posting/creating datetime property (HTTP 400 error)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/965656#M73058</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/479645"&gt;@GIlievski&lt;/a&gt;&amp;nbsp;If incase you can share your code, i can look in to the actual issue - the below solution may not be the solution for yours.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 01:58:44 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/965656#M73058</guid>
      <dc:creator>Humashankar</dc:creator>
      <dc:date>2024-04-24T01:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error when posting/creating datetime property (HTTP 400 error)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/965658#M73059</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/713591"&gt;@CMyhra&lt;/a&gt;&amp;nbsp;- Kindly take a look in to my recent response and code and see if that helps&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 02:13:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/965658#M73059</guid>
      <dc:creator>Humashankar</dc:creator>
      <dc:date>2024-04-24T02:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error when posting/creating datetime property (HTTP 400 error)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/965659#M73060</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/738554"&gt;@ADitlevsen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kindly take a look in to my recent response and code and see if that helps&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 02:14:01 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/965659#M73060</guid>
      <dc:creator>Humashankar</dc:creator>
      <dc:date>2024-04-24T02:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error when posting/creating datetime property (HTTP 400 error)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/965663#M73061</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/711889"&gt;@Humashankar&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;We are trying to create a property for Contacts, so it has nothing to do with custom objects.&lt;BR /&gt;Also, the type can be "datetime" or "date", but the fieldType can only be "date".&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If you go to this link&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/api/crm/properties" target="_blank"&gt;https://developers.hubspot.com/docs/api/crm/properties&lt;/A&gt;&amp;nbsp;under Endpoints &amp;gt; Create Property (Core) you can see the values for both Type and Field Type. They are dropdown values.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Again I have done this a few times in the past but something might have changed.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 02:34:02 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/965663#M73061</guid>
      <dc:creator>GIlievski</dc:creator>
      <dc:date>2024-04-24T02:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error when posting/creating datetime property (HTTP 400 error)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/965674#M73062</link>
      <description>&lt;P&gt;Okay I solved my issue, not sure if it will help you&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/738554"&gt;@ADitlevsen&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/713591"&gt;@CMyhra&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/655576"&gt;@HSchaefer9&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;All I did was leave blank the fields "reference object type" and "calculation formula" and it worked.&lt;BR /&gt;I did use the new &lt;A href="https://developers.hubspot.com/beta-docs/reference/api/crm/properties#post-%2Fcrm%2Fv3%2Fproperties%2F%7Bobjecttype%7D" target="_blank" rel="noopener"&gt;Beta docs&lt;/A&gt;, not that it matters.&lt;BR /&gt;cc&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/711889"&gt;@Humashankar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 03:25:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/965674#M73062</guid>
      <dc:creator>GIlievski</dc:creator>
      <dc:date>2024-04-24T03:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error when posting/creating datetime property (HTTP 400 error)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/971348#M73337</link>
      <description>&lt;P&gt;Hello I'm trying to add a datetime property inside Deals but I'm getting some error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl --request POST \&lt;BR /&gt;--url &lt;A href="https://api.hubapi.com/crm/v3/properties/string" target="_blank"&gt;https://api.hubapi.com/crm/v3/properties/string&lt;/A&gt; \&lt;BR /&gt;--header 'authorization: Bearer YOUR_ACCESS_TOKEN' \&lt;BR /&gt;--header 'content-type: application/json' \&lt;BR /&gt;--data '{&lt;BR /&gt;"hidden": false,&lt;BR /&gt;"displayOrder": 2,&lt;BR /&gt;"description": "Depart Time Date",&lt;BR /&gt;"label": "Depart Time Date",&lt;BR /&gt;"type": "datetime",&lt;BR /&gt;"groupName": "dealinformation",&lt;BR /&gt;"name": "departdatetime",&lt;BR /&gt;"fieldType": "date",&lt;BR /&gt;"formField": false,&lt;BR /&gt;"referencedObjectType": "string",&lt;BR /&gt;"calculationFormula": "string",&lt;BR /&gt;"hasUniqueValue": false,&lt;BR /&gt;"externalOptions": false&lt;BR /&gt;}'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AND THE ERROR&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;HTTP 400&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"status": "error",&lt;BR /&gt;"message": "Unable to infer object type from: string",&lt;BR /&gt;"correlationId": "396069f9-1f6b-4262-9345-d4f884730b11"&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Sat, 04 May 2024 01:57:01 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/971348#M73337</guid>
      <dc:creator>PropelYachts</dc:creator>
      <dc:date>2024-05-04T01:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error when posting/creating datetime property (HTTP 400 error)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/971403#M73340</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/756218"&gt;@PropelYachts&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello I'm trying to add a datetime property inside Deals but I'm getting some error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;curl --request POST \&lt;BR /&gt;--url &lt;A href="https://api.hubapi.com/crm/v3/properties/string" target="_blank" rel="noopener"&gt;https://api.hubapi.com/crm/v3/properties/string&lt;/A&gt; \&lt;BR /&gt;--header 'authorization: Bearer YOUR_ACCESS_TOKEN' \&lt;BR /&gt;--header 'content-type: application/json' \&lt;BR /&gt;--data '{&lt;BR /&gt;"hidden": false,&lt;BR /&gt;"displayOrder": 2,&lt;BR /&gt;"description": "Depart Time Date",&lt;BR /&gt;"label": "Depart Time Date",&lt;BR /&gt;"type": "datetime",&lt;BR /&gt;"groupName": "dealinformation",&lt;BR /&gt;"name": "departdatetime",&lt;BR /&gt;"fieldType": "date",&lt;BR /&gt;"formField": false,&lt;BR /&gt;"referencedObjectType": "string",&lt;BR /&gt;"calculationFormula": "string",&lt;BR /&gt;"hasUniqueValue": false,&lt;BR /&gt;"externalOptions": false&lt;BR /&gt;}'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;AND THE ERROR&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;HTTP 400&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;"status": "error",&lt;BR /&gt;"message": "Unable to infer object type from: string",&lt;BR /&gt;"correlationId": "396069f9-1f6b-4262-9345-d4f884730b11"&lt;BR /&gt;}&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Try leaving&amp;nbsp;&lt;SPAN&gt;"referencedObjectType" and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"calculationFormula" empty not as "string"&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/756218"&gt;@PropelYachts&lt;/a&gt;. It worked for me&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 May 2024 11:24:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/971403#M73340</guid>
      <dc:creator>GIlievski</dc:creator>
      <dc:date>2024-05-04T11:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error when posting/creating datetime property (HTTP 400 error)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/971951#M73363</link>
      <description>&lt;P&gt;curl --request POST \&lt;BR /&gt;--url &lt;A href="https://api.hubapi.com/crm/v3/properties/" target="_blank"&gt;https://api.hubapi.com/crm/v3/properties/&lt;/A&gt; \&lt;BR /&gt;--header 'authorization: Bearer YOUR_ACCESS_TOKEN' \&lt;BR /&gt;--header 'content-type: application/json' \&lt;BR /&gt;--data '{&lt;BR /&gt;"hidden": false,&lt;BR /&gt;"displayOrder": 2,&lt;BR /&gt;"description": "Depart Time Date",&lt;BR /&gt;"label": "Depart",&lt;BR /&gt;"type": "datetime",&lt;BR /&gt;"groupName": "dealinformation",&lt;BR /&gt;"name": "departdatetime",&lt;BR /&gt;"fieldType": "date",&lt;BR /&gt;"formField": true,&lt;BR /&gt;"hasUniqueValue": false,&lt;BR /&gt;"externalOptions": true&lt;BR /&gt;}'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AND RESULT NOW IS&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTTP 404&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 13:57:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/971951#M73363</guid>
      <dc:creator>PropelYachts</dc:creator>
      <dc:date>2024-05-06T13:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error when posting/creating datetime property (HTTP 400 error)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/972247#M73390</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/756218"&gt;@PropelYachts&lt;/a&gt;&amp;nbsp;I think see the issue. For objectType you have no value. It needs to be Deals in your case.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 00:22:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/972247#M73390</guid>
      <dc:creator>GIlievski</dc:creator>
      <dc:date>2024-05-07T00:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error when posting/creating datetime property (HTTP 400 error)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/972672#M73417</link>
      <description>&lt;P&gt;I noticed that the Hubspot tool don't save properly so I reviewed again one by one to make sure everything was correct and now worked. But Even having as a datetime field I cannot add the time. So is almost useless to create it.&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 14:11:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/972672#M73417</guid>
      <dc:creator>PropelYachts</dc:creator>
      <dc:date>2024-05-07T14:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error when posting/creating datetime property (HTTP 400 error)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/974233#M73527</link>
      <description>&lt;P&gt;Yeah, you are right on that, manually setting it it still will not give you the option to set the time, just the date. I think if you try setting it via a workflow however with a timestamp it will insert the time as well. Example like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-05-10 at 9.16.50 AM.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/117200i5B4CA7DAB007270E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-05-10 at 9.16.50 AM.png" alt="Screenshot 2024-05-10 at 9.16.50 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 23:17:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/974233#M73527</guid>
      <dc:creator>GIlievski</dc:creator>
      <dc:date>2024-05-09T23:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error when posting/creating datetime property (HTTP 400 error)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/1007576#M74929</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I am facing the same issue and when I try to select Datetime as Field Type I cannot find it among the available options:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AIsmail91_1-1720699897821.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/122045i1E1623B304ECC429/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AIsmail91_1-1720699897821.png" alt="AIsmail91_1-1720699897821.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AIsmail91_2-1720699928100.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/122046i2750D283F322B23D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AIsmail91_2-1720699928100.png" alt="AIsmail91_2-1720699928100.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;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aalaa&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 12:12:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/1007576#M74929</guid>
      <dc:creator>AIsmail91</dc:creator>
      <dc:date>2024-07-11T12:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error when posting/creating datetime property (HTTP 400 error)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/1008488#M74961</link>
      <description>&lt;P&gt;Hey Aalaa,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can now create them with the UI. There is a free beta for any HubSpot tier.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just replace your portal ID in the link below and opt into the beta.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://app.hubspot.com/product-updates/[portalID]/?update=13941230" target="_blank"&gt;https://app.hubspot.com/product-updates/[portalID]/?update=13941230&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 01:10:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/1008488#M74961</guid>
      <dc:creator>GIlievski</dc:creator>
      <dc:date>2024-07-12T01:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error when posting/creating datetime property (HTTP 400 error)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/1009728#M75007</link>
      <description>&lt;P&gt;Hello Goran,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;Yes, for the property type I don't face any issues, I select datetime:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AIsmail91_1-1721027653043.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/122317i0E965271DCF446AE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AIsmail91_1-1721027653043.png" alt="AIsmail91_1-1721027653043.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;I mean after I select the type parameter, there is another parameter called fieldTypeI don't find the same "datetime" in fieldType:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AIsmail91_0-1721027512287.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/122316i121D2D10C3B14E08/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AIsmail91_0-1721027512287.png" alt="AIsmail91_0-1721027512287.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I followed the link you provided and joined the beta, but it's still the same, gives me validation error for all the fieldTypes that I tried since they don't match the Type (datetime):&lt;BR /&gt;curl --request POST \&lt;BR /&gt;--url &lt;A href="https://api.hubapi.com/crm/v3/properties/contacts" target="_blank"&gt;https://api.hubapi.com/crm/v3/properties/contacts&lt;/A&gt; \&lt;BR /&gt;--header 'authorization: Bearer YOUR_ACCESS_TOKEN' \&lt;BR /&gt;--header 'content-type: application/json' \&lt;BR /&gt;--data '{&lt;BR /&gt;"hidden": false,&lt;BR /&gt;"displayOrder": 2,&lt;BR /&gt;"description": "string",&lt;BR /&gt;"label": "DateTime Test",&lt;BR /&gt;"type": "datetime",&lt;BR /&gt;"groupName": "contactinformation",&lt;BR /&gt;"name": "datetimetest",&lt;BR /&gt;"fieldType": "date",&lt;BR /&gt;"formField": true,&lt;BR /&gt;"referencedObjectType": "string",&lt;BR /&gt;"options": [&lt;BR /&gt;{&lt;BR /&gt;"label": "Option A",&lt;BR /&gt;"value": "A",&lt;BR /&gt;"hidden": false,&lt;BR /&gt;"description": "Choice number one",&lt;BR /&gt;"displayOrder": 1&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"label": "Option B",&lt;BR /&gt;"value": "B",&lt;BR /&gt;"hidden": false,&lt;BR /&gt;"description": "Choice number two",&lt;BR /&gt;"displayOrder": 2&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"calculationFormula": "string",&lt;BR /&gt;"hasUniqueValue": false,&lt;BR /&gt;"externalOptions": true&lt;BR /&gt;}'&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 07:17:25 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Error-when-posting-creating-datetime-property-HTTP-400-error/m-p/1009728#M75007</guid>
      <dc:creator>AIsmail91</dc:creator>
      <dc:date>2024-07-15T07:17:25Z</dc:date>
    </item>
  </channel>
</rss>

