PUT users doesn't work

When I’m trying to update one of my users:

PUT https://api.hubapi.com/settings/v3/users/26828843
{
 "primaryTeamId": 11608416
}

I’m getting:

{
 "status": "error",
 "message": "internal error",
 "correlationId": "5478d6f1-b378-4719-bc73-560910ab7d2a"
}

Any idea why this is happening?
Team 11608416 exists on my crm account

Hi, @Sachavskyi :waving_hand: Thanks for reaching out. Based on the info you provided, I was able to make a successful update.

Here’s my quick test:

  • I verified my Team IDs by going to Settings > Properties > Contacts—searched for HubSpot Team

  • I used this endpoint to make the update
    PUT /settings/v3/users/{userId}​

  • My request

    curl --request PUT \
     --url 'https://api.hubapi.com/settings/v3/users/10233975?idProperty=USER_ID' \
     --header 'authorization: Bearer YOUR_ACCESS_TOKEN' \
     --header 'content-type: application/json' \
     --data '{
     "primaryTeamId": "12073943"
    }'​
    
  • My response

    HTTP 200
    
    {
     "id": "10233975",
     "email": "SomeUser@hubspot.com",
     "roleIds": [],
     "primaryTeamId": "12073943"
    }​
    

Can you try from the example listed on the Settings API endpoint page, please? And include your request and response body here?

Thank you! — Jaycee

Here is the request and response body from Settings API endpoint page:

curl --request PUT \
 --url https://api.hubapi.com/settings/v3/users/26828843 \
 --header 'authorization: Bearer my_token' \
 --header 'content-type: application/json' \
 --data '{
 "roleId": "449312",
 "primaryTeamId": "11608416"
}'
HTTP 500

{
 "status": "error",
 "message": "internal error",
 "correlationId": "b6505c65-32b6-4ab3-9a5a-be38df507c61"
}

Hey, @Sachavskyi! 500 errors are tricky to pin down because they are often non-specific.

Guess we’ll just play Dr. House and start ruling things out :blush:

More questions —

  • Is this happening for only one specific User?
  • Or is it for any User?
  • If it’s just this User, can you change them to another team outside the original team or the problematic one?
  • Is this happening in a portal with a paid subscription? — Starter, Professional, etc?

Thank you very much for all the help so far! — Jaycee

  • This is for any User
  • My portalId=2662710

And here is my teamId:

@Jaycee_Lewis any news?