Cannot create owner using API


#1

Hi Everyone!

We trying to create an owner using API. Don’t receive error on execute and appears on API Get Owners but not appears on Owners using HubSpot GUI.

Our code:
{
“portalId”:“2028774”,
“type”:“PERSON”,
“firstName”:“NOME”,
“lastName”:“SOBRENOME”,
“email”:"teste1@tt.org.br",
“quota”:10000,
“remoteList”:[
{
“portalId”:“2028774”,
“remoteType”:“EMAIL”,
“remoteId”:"admin1@tt.org.br",
“active”:true
}
]
}

Thanks!


#2

Hey @Julio_Cesar

There is an answer to this question here:

Sebastian


#3

Hi Sebatian,

I see this post, but if you see in our code, we put the remote and active.

Thanks,


#4

Hey guys,

Same problem here. The remotelist doesn`t work.
@seb_fairchild Do you have any other suggestion???


#5

This just worked for me using https://api.hubapi.com/owners/v2/owners?hapikey=demo and:

{
    "portalId": 142972,
    "type": "PERSON",
    "firstName": "Dwight",
    "lastName": "Schrute",
    "email": "tester1@varonis.com",
    "remoteList" : [
        {
            "portalId" : 142972,
            "remoteType" : "EMAIL",
            "remoteId": "tester2@varonis.com",
            "active": true
        }
    ]
}

#6

We need to assign owners via the API as well. We’ve been able to create the owners with the Get Owner endpoint.

Since they don’t show up in the UI, we’re not able to assign those owners within HubSpot using Workflows.

Is there any way we could see a little more documentation for the Get Owners endpoint to understand what we need to do to make this work? We’re so close. :slight_smile: