<?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 to assign Deal owner to 'No owner' via API in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-assign-Deal-owner-to-No-owner-via-API/m-p/895925#M69843</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, we can change the deal owner to 'No owner' via UI however to do so via API we need the internal value of 'No owner' but unfortunately can't find it anywhere in the HubSpot documentation and it's erroring out if I provide null or blank value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know if there is a way to solve this.&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;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Dec 2023 15:04:08 GMT</pubDate>
    <dc:creator>Suceen</dc:creator>
    <dc:date>2023-12-19T15:04:08Z</dc:date>
    <item>
      <title>How to assign Deal owner to 'No owner' via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-assign-Deal-owner-to-No-owner-via-API/m-p/895925#M69843</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, we can change the deal owner to 'No owner' via UI however to do so via API we need the internal value of 'No owner' but unfortunately can't find it anywhere in the HubSpot documentation and it's erroring out if I provide null or blank value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know if there is a way to solve this.&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2023 15:04:08 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-assign-Deal-owner-to-No-owner-via-API/m-p/895925#M69843</guid>
      <dc:creator>Suceen</dc:creator>
      <dc:date>2023-12-19T15:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign Deal owner to 'No owner' via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-assign-Deal-owner-to-No-owner-via-API/m-p/896146#M69852</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/681169"&gt;@Suceen&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for your question. Can you try from the on-page example and share your request and response here — &lt;A href="https://developers.hubspot.com/docs/api/crm/deals" target="_blank" rel="noopener"&gt;Update a Deal by ID&lt;/A&gt;?&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;PATCH /crm/v3/objects/deals/{dealId}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's my quick test:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;I have a deal — Stunt Helmets for Cats&lt;/LI&gt;
&lt;LI&gt;It has an owner — Jaycee&lt;/LI&gt;
&lt;LI&gt;I removed and re-added&amp;nbsp;myself as owner in-app&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Made a PATCH request using this format in the request body to “clear” the value&lt;BR /&gt;&lt;LI-CODE lang="javascript"&gt;{
    "properties": {
        "hubspot_owner_id": ""
    }
}​&lt;/LI-CODE&gt;
&lt;P&gt;Full request&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;curl --request PATCH \
  --url https://api.hubapi.com/crm/v3/objects/deals/13149364401 \
  --header 'authorization: Bearer YOUR_ACCESS_TOKEN' \
  --header 'content-type: application/json' \
  --data '{
  "properties": {
    "hubspot_owner_id": ""
  }
}'​&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;LI&gt;Received a successful response&amp;nbsp;&lt;BR /&gt;&lt;LI-CODE lang="javascript"&gt;HTTP 200

{
  "id": "13149364401",
  "properties": {
    "amount": "6003",
    ...
    "hubspot_owner_id": "",
    "hubspot_team_id": "",
    "pipeline": "default"
  },
  "createdAt": "2023-04-26T16:23:08.110Z",
  "updatedAt": "2023-12-19T21:27:37.628Z",
  "archived": false
}​&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;LI&gt;Verified the change in-app. (The highlighted area in my screenshot shows the source as my private app used via an API call)&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CleanShot 2023-12-19 at 14.38.09.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/105745i664E3FBD1E7E5008/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CleanShot 2023-12-19 at 14.38.09.png" alt="CleanShot 2023-12-19 at 14.38.09.png" /&gt;&lt;/span&gt;
&lt;P&gt; &lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I hope this helps get you moving forward. Have fun building! — Jaycee&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2023 21:53:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-assign-Deal-owner-to-No-owner-via-API/m-p/896146#M69852</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2023-12-19T21:53:33Z</dc:date>
    </item>
  </channel>
</rss>

