APIs & Integrations

CHernandez5
Member | Platinum Partner
Member | Platinum Partner

API query in the users section.

Hello everyone. I have a query, since I am developing using the API in the users section https://developers.hubspot.com/docs/api/settings/user-provisioning. My query is the following, in the PUT endpoint to modify users PUT /settings/v3/users/{userId} has secondTeamIds as a parameter, is there any option that when modifying the secondTeamIds the previous one is deleted and they are not saved in the list? that is, that they replace something like what happens in primaryTeamId, could you tell me if that can be done or if not, tell me why not? Thank you very much, greetings.

0 Upvotes
1 Reply 1
Jaycee_Lewis
Community Manager
Community Manager

API query in the users section.

Hi, @CHernandez5 👋 A few questions to help clarify the outcome you want:

  • When updating the secondTeamIds property, do want the existing value to appended to include the new value?
  • When updating the secondTeamIds property, do want the existing value to deleted and not include the “old” value?

I am happy to run a quick text and confirm the expected behaviour. 

 

Best,

Jaycee

 

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes