APIs & Integrations

nikan
Participante | Parceiro Elite
Participante | Parceiro Elite

POST to Product Folders

resolver

I am working on a new project where I'd like to be able to access my product library's folders using the API. For example, I'd like to POST a new product to a specific folder within my product library, but I don't see a product property that is associated with folders nor is it a supported parameter as far as I have found. Is there a way to achieve this or is it something that is going to be supported in the near future? 

Thanks

1 Solução aceita
dennisedson
Solução
Equipe de Produto da HubSpot
Equipe de Produto da HubSpot

POST to Product Folders

resolver

Hey @nikan 

After doing a little digging, I found the "hs_folder_id" property.

I ran the example json from the docs and was able to successfully create a product in that folder

Here is my code:

{
  "properties": {
    "hs_folder_id": "1858187",
    "description": "Onboarding service for data product",
    "hs_cost_of_goods_sold": "600.00",
    "hs_sku": "191902",
    "name": "Implementation Service ",
    "price": "6000.00"
  }
}

Hope this gets you somewhere!

 

Exibir solução no post original

4 Respostas 4
nikan
Participante | Parceiro Elite
Participante | Parceiro Elite

POST to Product Folders

resolver

Small oversight on my part - that is exactly what I was looking for. Thanks, Dennis!

dennisedson
Solução
Equipe de Produto da HubSpot
Equipe de Produto da HubSpot

POST to Product Folders

resolver

Hey @nikan 

After doing a little digging, I found the "hs_folder_id" property.

I ran the example json from the docs and was able to successfully create a product in that folder

Here is my code:

{
  "properties": {
    "hs_folder_id": "1858187",
    "description": "Onboarding service for data product",
    "hs_cost_of_goods_sold": "600.00",
    "hs_sku": "191902",
    "name": "Implementation Service ",
    "price": "6000.00"
  }
}

Hope this gets you somewhere!

 

sathivel
Membro

POST to Product Folders

resolver

Hi Dennis, 

Thanks for your post. Its very useful between may I Know how to create folder in product & quotes section VIA api. Because I need to create folder then create a product inside the folder . Please advice me.

Thanks

 

OBojahr
Colaborador(a)

POST to Product Folders

resolver

Any update on @sathivel last question?

0 Avaliação positiva