<?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: API Contact ignore property field hs_marketable_status in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/API-Contact-ignore-property-field-hs-marketable-status/m-p/972923#M73448</link>
    <description>&lt;P&gt;Hey, &lt;SPAN class="mention" data-mention="@TTweave"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/757946"&gt;@TTweave&lt;/a&gt;&lt;/SPAN&gt; &lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; You are not missing anything here. These two properties are set as “read only”. Meaning, they cannot be updated via an API call. The available methods for setting a Contact's Marking status are laid out here — &lt;A href="https://knowledge.hubspot.com/records/set-contacts-as-marketing" target="_blank"&gt;Set Contacts as Marketing&lt;/A&gt;.&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my use cases, when I run into issues like this, I'll make a request to the Properties API and look for the `modificationMetadata` details in the response.&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;Request&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;curl --request GET \
  --url 'https://api.hubapi.com/crm/v3/properties/contacts/hs_marketable_status?archived=false' \
  --header 'authorization: Bearer YOUR_ACCESS_TOKEN'&lt;/LI-CODE&gt;
&lt;P&gt;Response (edited to only show the modificationMetadata)&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt; "modificationMetadata": {
    "archivable": true,
    "readOnlyDefinition": true,
    "readOnlyValue": true
  },
  "formField": false,
  "dataSensitivity": "non_sensitive"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps get you moving forward! — Jaycee&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 May 2024 21:45:21 GMT</pubDate>
    <dc:creator>Jaycee_Lewis</dc:creator>
    <dc:date>2024-05-07T21:45:21Z</dc:date>
    <item>
      <title>API Contact ignore property field hs_marketable_status</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/API-Contact-ignore-property-field-hs-marketable-status/m-p/972862#M73437</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I'm having issues with the hs_marketable_status and hs_marketable_reason_type properties when creating a contact in HubSpot via the API.&lt;/P&gt;&lt;P&gt;Problem When trying to create a new contact using the following endpoint:&lt;/P&gt;&lt;P&gt;&lt;A href="https://api.hubapi.com/crm/v3/objects/contacts/batch/create" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api.hubapi.com/crm/v3/objects/contacts/batch/create&lt;/A&gt;&lt;/P&gt;&lt;P&gt;with this payload:&lt;/P&gt;&lt;PRE&gt;{
    "inputs": [
        {
            "properties": {
                "email": "example@hubspot.com",
                "firstname": "Jane",
                "lastname": "Doe",
                "phone": "(555) 555-5555",
                "hs_marketable_status": "true",
                "hs_marketable_reason_type": "INTEGRATOR_SET"
            }
        }
    ]
}&lt;/PRE&gt;&lt;P&gt;The API ignores the hs_marketable_status field entirely and set it to false (also ignore hs_marketable_reason_type but this is not relevant now). I have tried providing these values as strings, booleans, or even irrelevant strings like "Hello", and nothing seems to work. The values are not validated and appear to be simply ignored.&lt;/P&gt;&lt;P&gt;I used different methods to send requests:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;cURL&lt;/LI&gt;&lt;LI&gt;Postman&lt;/LI&gt;&lt;LI&gt;HubSpot Python SDK(github.com/HubSpot/hubspot-api-python)&lt;/LI&gt;&lt;LI&gt;I verified the API key and permissions are correct.&lt;/LI&gt;&lt;LI&gt;I tried both giving true as a string or as a boolean.&lt;/LI&gt;&lt;LI&gt;I tried both batch and basic API. The example from postman is using batch API.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Additional Context:&lt;/P&gt;&lt;P&gt;I understand that hs_marketable_status is a read-only field that cannot be edited after creation. However, my goal is to create contacts as marketable from the beginning using the API.&lt;/P&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Is hs_marketable_status dependent on another property or configuration?&lt;/LI&gt;&lt;LI&gt;Is there any official documentation that outlines how to set this property during contact creation?&lt;/LI&gt;&lt;LI&gt;Is there a workaround to set contacts as marketable from the start?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Any help or insight would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 19:57:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/API-Contact-ignore-property-field-hs-marketable-status/m-p/972862#M73437</guid>
      <dc:creator>TTweave</dc:creator>
      <dc:date>2024-05-07T19:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: API Contact ignore property field hs_marketable_status</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/API-Contact-ignore-property-field-hs-marketable-status/m-p/972923#M73448</link>
      <description>&lt;P&gt;Hey, &lt;SPAN class="mention" data-mention="@TTweave"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/757946"&gt;@TTweave&lt;/a&gt;&lt;/SPAN&gt; &lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; You are not missing anything here. These two properties are set as “read only”. Meaning, they cannot be updated via an API call. The available methods for setting a Contact's Marking status are laid out here — &lt;A href="https://knowledge.hubspot.com/records/set-contacts-as-marketing" target="_blank"&gt;Set Contacts as Marketing&lt;/A&gt;.&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my use cases, when I run into issues like this, I'll make a request to the Properties API and look for the `modificationMetadata` details in the response.&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;Request&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;curl --request GET \
  --url 'https://api.hubapi.com/crm/v3/properties/contacts/hs_marketable_status?archived=false' \
  --header 'authorization: Bearer YOUR_ACCESS_TOKEN'&lt;/LI-CODE&gt;
&lt;P&gt;Response (edited to only show the modificationMetadata)&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt; "modificationMetadata": {
    "archivable": true,
    "readOnlyDefinition": true,
    "readOnlyValue": true
  },
  "formField": false,
  "dataSensitivity": "non_sensitive"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps get you moving forward! — Jaycee&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 21:45:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/API-Contact-ignore-property-field-hs-marketable-status/m-p/972923#M73448</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2024-05-07T21:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: API Contact ignore property field hs_marketable_status</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/API-Contact-ignore-property-field-hs-marketable-status/m-p/973075#M73465</link>
      <description>&lt;P&gt;Thanks for the answer; it really helped me find this &lt;A href="https://knowledge.hubspot.com/integrations/manage-marketing-contacts-settings-for-your-integrations" target="_new" rel="noreferrer"&gt;resource&lt;/A&gt; and understand how it works. It was as simple as toggling a button.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I still think there is something confusing about it. I knew that it was read-only, but I thought that, as in the frontend, we could only set it during creation but not change it later (as shown &lt;A href="https://knowledge.hubspot.com/records/set-contacts-as-marketing" target="_new" rel="noreferrer"&gt;here&lt;/A&gt;). It seems I was wrong, but what made me think that—and is still very confusing—is that for other read-only fields like hs_email_optout, adding it to the properties returns this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"hs_email_optout" is a read-only property; its value cannot be set., error: READ_ONLY_VALUE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, for the marketable fields, I didn't get this error; the field was simply ignored, which made me think it wasn't "fully" read-only, and that it could be set during creation like in the frontend.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nevertheless, thank you for your answer. I ended up fixing my issue.&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 07:23:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/API-Contact-ignore-property-field-hs-marketable-status/m-p/973075#M73465</guid>
      <dc:creator>TTweave</dc:creator>
      <dc:date>2024-05-08T07:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: API Contact ignore property field hs_marketable_status</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/API-Contact-ignore-property-field-hs-marketable-status/m-p/973442#M73483</link>
      <description>&lt;P&gt;Hey, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/757946"&gt;@TTweave&lt;/a&gt;&lt;/SPAN&gt;! Thanks for letting us know that helped. I agree with you, I'd expect a validation warning when trying to set this via an API call. I'll work on submitting this feedback internally.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a fantastic day! — Jaycee&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 17:07:49 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/API-Contact-ignore-property-field-hs-marketable-status/m-p/973442#M73483</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2024-05-08T17:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: API Contact ignore property field hs_marketable_status</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/API-Contact-ignore-property-field-hs-marketable-status/m-p/1050167#M77121</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;&amp;nbsp; can you clarify or find out the rational for having this property as read only and not updatable by the API?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is perfectly reasonable for enterprise customers to be managing consumer data outside of hubspot in a profile or identity store and create/update records from outside of HubSpot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Having to add manual steps inside the console or workflows when it should be easily updateable via the API has no apparent logic or reasoning backing it up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Craig&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2024 12:18:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/API-Contact-ignore-property-field-hs-marketable-status/m-p/1050167#M77121</guid>
      <dc:creator>CScott68</dc:creator>
      <dc:date>2024-10-04T12:18:13Z</dc:date>
    </item>
  </channel>
</rss>

