How to assign Deal owner to 'No owner' via API

Hi,

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.

I would like to know if there is a way to solve this.

Thanks.

Hi, @Suceen :waving_hand: Thanks for your question. Can you try from the on-page example and share your request and response here — Update a Deal by ID?

PATCH /crm/v3/objects/deals/{dealId}

Here’s my quick test:

  • I have a deal — Stunt Helmets for Cats

  • It has an owner — Jaycee

  • I removed and re-added myself as owner in-app

  • Made a PATCH request using this format in the request body to “clear” the value

    {
     "properties": {
     "hubspot_owner_id": ""
     }
    }​
    

    Full request

    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": ""
     }
    }'​
    
  • Received a successful response

    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
    }​
    
  • Verified the change in-app. (The highlighted area in my screenshot shows the source as my private app used via an API call)

I hope this helps get you moving forward. Have fun building! — Jaycee