<?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: Setting a hasUniqueValue flag for the line_item property fails in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Setting-a-hasUniqueValue-flag-for-the-line-item-property-fails/m-p/770026#M62318</link>
    <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/53177"&gt;@balabanov&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Based on a product update from last summer (I am still trying to find the link to add here) this can only be added to a property when it is created. My other mission here is to get the documentation updated to include this detail.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Jaycee&lt;/P&gt;</description>
    <pubDate>Thu, 16 Mar 2023 22:28:40 GMT</pubDate>
    <dc:creator>Jaycee_Lewis</dc:creator>
    <dc:date>2023-03-16T22:28:40Z</dc:date>
    <item>
      <title>Setting a hasUniqueValue flag for the line_item property fails</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Setting-a-hasUniqueValue-flag-for-the-line-item-property-fails/m-p/768352#M62219</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to set the&amp;nbsp;hasUniqueValue flag for the line item property, and the return is 200 OK, but the value is not saved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a sample request:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;curl --request PATCH \
  --url https://api.hubapi.com/crm/v3/properties/line_item/ws_c7_ext_id \
  --header 'authorization: Bearer xxxxxx' \
  --header 'content-type: application/json' \
  --data '{
	"hasUniqueValue": true
}'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the response is false:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
	"updatedAt": "2023-03-14T11:21:23.492Z",
	"createdAt": "2023-01-31T17:09:27.261Z",
	"name": "ws_c7_ext_id",
	"label": "WS C7 External ID",
	"type": "string",
	"fieldType": "text",
	"description": "",
	"groupName": "",
	"options": [],
	"updatedUserId": "xxxxxx",
	"displayOrder": 2,
	"calculated": false,
	"externalOptions": false,
	"archived": false,
	"hasUniqueValue": false,
	"hidden": false,
	"modificationMetadata": {
		"archivable": true,
		"readOnlyDefinition": false,
		"readOnlyValue": false
	},
	"formField": true
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I failed to find any documented limitations on these properties, maybe someone has encountered this issue before me?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 11:28:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Setting-a-hasUniqueValue-flag-for-the-line-item-property-fails/m-p/768352#M62219</guid>
      <dc:creator>balabanov</dc:creator>
      <dc:date>2023-03-14T11:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a hasUniqueValue flag for the line_item property fails</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Setting-a-hasUniqueValue-flag-for-the-line-item-property-fails/m-p/768710#M62235</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/53177"&gt;@balabanov&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; To confirm, this is a custom property, you've created? If so, can you make a call to the properties API and conform the field-type, please? My gut feeling (non-scientific opinion) is there is limitation on not adding this to existing properties. Meaning, it can only be set when the property is created. If so, I'll provide a suggestion to have the documentation updated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Jaycee&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 21:13:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Setting-a-hasUniqueValue-flag-for-the-line-item-property-fails/m-p/768710#M62235</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2023-03-14T21:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a hasUniqueValue flag for the line_item property fails</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Setting-a-hasUniqueValue-flag-for-the-line-item-property-fails/m-p/768725#M62236</link>
      <description>&lt;P&gt;hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You're correct, it's a custom property. Here goes the output:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "updatedAt": "2023-03-14T11:21:48.720Z",
  "createdAt": "2023-01-31T17:09:27.261Z",
  "name": "ws_c7_ext_id",
  "label": "WS C7 External ID",
  "type": "string",
  "fieldType": "text",
  "description": "",
  "groupName": "xxxxxx",
  "options": [],
  "updatedUserId": "xxxxxx",
  "displayOrder": 2,
  "calculated": false,
  "externalOptions": false,
  "archived": false,
  "hasUniqueValue": false,
  "hidden": false,
  "modificationMetadata": {
    "archivable": true,
    "readOnlyDefinition": false,
    "readOnlyValue": false
  },
  "formField": true
}&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 14 Mar 2023 21:50:22 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Setting-a-hasUniqueValue-flag-for-the-line-item-property-fails/m-p/768725#M62236</guid>
      <dc:creator>balabanov</dc:creator>
      <dc:date>2023-03-14T21:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a hasUniqueValue flag for the line_item property fails</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Setting-a-hasUniqueValue-flag-for-the-line-item-property-fails/m-p/770026#M62318</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/53177"&gt;@balabanov&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Based on a product update from last summer (I am still trying to find the link to add here) this can only be added to a property when it is created. My other mission here is to get the documentation updated to include this detail.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Jaycee&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 22:28:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Setting-a-hasUniqueValue-flag-for-the-line-item-property-fails/m-p/770026#M62318</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2023-03-16T22:28:40Z</dc:date>
    </item>
  </channel>
</rss>

