<?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 How do you set secondary email addresses on Contacts? in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/How-do-you-set-secondary-email-addresses-on-Contacts/m-p/1068269#M78142</link>
    <description>&lt;P&gt;Morning&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on an integration, and part of the flow is that users on our system can change their email address. When this happens I need to be able to locate the Contact record on HubSpot, update their email address and move their old email into the hs_additional_emails field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The docs say you can simply update this property (a comma separated list) and you are good to go.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I try this the API tells me this is a computed property and is READONLY. So - what do I do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have seen reference to beta and legacy endpoints for working with secondary email addresses but can't actually find a concrete answer. Also using a totally separate endpoint makes my code more complex. Why not gives devs both options?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sergio&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Nov 2024 10:53:33 GMT</pubDate>
    <dc:creator>PTSergio</dc:creator>
    <dc:date>2024-11-12T10:53:33Z</dc:date>
    <item>
      <title>How do you set secondary email addresses on Contacts?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-do-you-set-secondary-email-addresses-on-Contacts/m-p/1068269#M78142</link>
      <description>&lt;P&gt;Morning&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on an integration, and part of the flow is that users on our system can change their email address. When this happens I need to be able to locate the Contact record on HubSpot, update their email address and move their old email into the hs_additional_emails field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The docs say you can simply update this property (a comma separated list) and you are good to go.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I try this the API tells me this is a computed property and is READONLY. So - what do I do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have seen reference to beta and legacy endpoints for working with secondary email addresses but can't actually find a concrete answer. Also using a totally separate endpoint makes my code more complex. Why not gives devs both options?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sergio&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 10:53:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-do-you-set-secondary-email-addresses-on-Contacts/m-p/1068269#M78142</guid>
      <dc:creator>PTSergio</dc:creator>
      <dc:date>2024-11-12T10:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do you set secondary email addresses on Contacts?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-do-you-set-secondary-email-addresses-on-Contacts/m-p/1068654#M78174</link>
      <description>&lt;P&gt;Hey, &lt;SPAN class="mention" data-mention="@PTSergio"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/833316"&gt;@PTSergio&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; I am going to flag this to my internal resources and try to get us confirmation. Here's my example, which returns a `400` response. I agree with you, this conflicts with what the documentation states.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;POST https://api.hubapi.com/crm/v3/objects/contacts&lt;/LI-CODE&gt;&lt;LI-CODE lang="javascript"&gt;{
    "properties": {
        "company": "Wagstaff School",
        "email": "misslabonz@bobsburgers.com",
        "firstname": "Miss LaBonz",
        "hs_additional_emails": "labonz@bobsburgers.com"
        
    }
}&lt;/LI-CODE&gt;
&lt;P&gt;Response&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
    "status": "error",
    "message": "Property values were not valid: [{\"isValid\":false,\"message\":\"\\\"hs_additional_emails\\\" is a calculated property; its value cannot be set.\",\"error\":\"READ_ONLY_VALUE\",\"name\":\"hs_additional_emails\",\"localizedErrorMessage\":\"\\\"hs_additional_emails\\\" is a calculated property; its value cannot be set.\",\"propertyValue\":\"labonz@bobsburgers.com\",\"portalId\":22245342}]",
    "correlationId": "2f951629-106e-43ee-980e-7a15681c4033",
    "category": "VALIDATION_ERROR"
}&lt;/LI-CODE&gt;
&lt;P&gt;Thanks! — Jaycee&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 22:44:05 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-do-you-set-secondary-email-addresses-on-Contacts/m-p/1068654#M78174</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2024-11-12T22:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do you set secondary email addresses on Contacts?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-do-you-set-secondary-email-addresses-on-Contacts/m-p/1069865#M78251</link>
      <description>&lt;P&gt;Hey, &lt;SPAN style="color:var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/833316"&gt;@PTSergio&lt;/a&gt;&lt;/SPAN&gt; &lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; I'm working with my resources on this. Here's the update (so far):&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;the documentation around the v3 endpoint is incorrect and will be updated&lt;/LI&gt;&lt;LI&gt;you'll need to use the v1 endpoint listed &lt;A href="https://developers.hubspot.com/beta-docs/reference/api/crm/objects/contacts/v1#add-a-secondary-email-address" target="_blank"&gt;&lt;STRONG&gt;here&lt;/STRONG&gt;&lt;/A&gt;. Because it is a legacy endpoint, it has limitations that our v3 endpoints don't. Namely, that you'll need to send multiple requests if you have to add more than one secondary email address. And you cannot create a Contact and set the secondary email address in a single call. You'll have to make separate requests to accomplish this — one to create the contact + add values to your specified properties and a second request to the secondary email endpoint&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I filed the doc update request just now. I'm out for vacation starting tomorrow but will update this post if I get any additional updates from my internal resources.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for taking the time to make this post and flag this issue. It's likely caused others a few unnecessary headaches.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Talk soon(ish) &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt; — Jaycee&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 22:54:09 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-do-you-set-secondary-email-addresses-on-Contacts/m-p/1069865#M78251</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2024-11-14T22:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do you set secondary email addresses on Contacts?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-do-you-set-secondary-email-addresses-on-Contacts/m-p/1117743#M80684</link>
      <description>&lt;P&gt;Hi there&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;We are now 5 months later and the documentation for v3 is still incorrect.&lt;BR /&gt;&lt;BR /&gt;I just lost quite a lot of time on this, before I found this post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While the best would be for the endpoint to work as expected, what is at least the status of your documentation update request ?&lt;BR /&gt;&lt;BR /&gt;This entire part:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;To add secondary emails to a contact, when creating or editing the contact, in your request body, include emails in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;hs_additional_emails&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;field. Multiple emails can be separated by a semi-colon.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Needs to be replace with something among the lines of "you cannot change&lt;SPAN class=""&gt;hs_additional_emails&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;through the API".&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 16:57:14 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-do-you-set-secondary-email-addresses-on-Contacts/m-p/1117743#M80684</guid>
      <dc:creator>OGIRARD</dc:creator>
      <dc:date>2025-03-04T16:57:14Z</dc:date>
    </item>
  </channel>
</rss>

