HubSpot Ideas

mo2266

Add Ability to Include Specific Folder in Create/Update Contact List API

Hello,

 

When creating or updating a contact list through the APIs there is no way to set the folder (attribute looks to be parentId) that the list should be created in/moved to. It would be very helpful if the lists that we generate/modify via API could include which folder the list should be in. The two APIs are:

 

  1. Create API: https://legacydocs.hubspot.com/docs/methods/lists/create_list
  2. Update API: https://legacydocs.hubspot.com/docs/methods/lists/update_list

 

We use folders to categorize work. Without being able to specify a folder in the API, we need someone to manually find and move the list that the API creates into the correct folder, or to change the folder if the update that the API makes results in it needing to be in a different folder. The code calling the API knows which folder it should be in, so if we were able specify the folder in the API call then that would solve this for us.

 

Specifying a folder to put something in is a very common use case. The structure I've typically seen is either to include a folder ID or the path to the folder. 

 

Thanks!

6 Replies
GJennings
Member

Can't believe this isn't already in the API, would make organising lists so much more useful!

EmOh
Member

Absolutely!! With larger accounts that have lots of users, lists not organized in folders get out of hand fast. It would be sooo nice to be able to automatically put them in the right folder via the API. ALSO, it would be amazing to be able to limit what lists users see in the Lists area. Like every other object—let us assign a specific list to specific teams or users. 

Hosioneh
Member

We need this too

FredrikWendt
Contributor

Yep, we need this as well. If we could only to set it at creation time (create_list), that would still make a huge difference for us.

TCable
Member

I really need this too.  To manually move an API-created list to a folder is absurd.  This negates much of the automation.  There are already too many contact lists in the root folder.

TCable
Member

I was able to find a way to create a contact list directly into a pre-created folder in HubSpot. 

Here is what I used, where parentId is the folder id in HubSpot.  You will need to put a contact list into the folder and then get the information on that contact list to see the folder id.


POST to https://api.hubapi.com/contacts/v1/lists

{"name":"Tony Test Contact List 4","parentId"60940867"limitExempt":true}