Jump to content

Assigning categories to products using APIs.

Go to solution Solved by paul2009,

Recommended Posts

Site URL: http://thirstydice.com

Hi,

I posted this in the wrong forum earlier and it was deleted, so I respectfully request to ask this again (this time hopefully in the correct plact):

 

How can I use the API to assign products to a category? I have/will have hundreds of items uploaded/removed at various times but I can only see how to assign tags using either the Products API or the Inventory API.

Categories are crucial to any online store, and I would argue that if the API is to be useful at all then it should allow category assignations like it does tags. I'm perfectly fine with adding categories before or after, but the ability to associate them with a product is pretty important.

Am I missing something here?

 

 

Link to comment
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Solution
25 minutes ago, bobby215 said:

How can I use the API to assign products to a category?

This isn't possible using an API. The Products API does not allow store categories to be managed. 

 

 

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

Link to comment
  • 2 months later...

Is there any way to read the categories assigned to a product through the API, even if writing is not supported?

 

And if not, is there a way to request this feature be added?

Edited by dd01
Link to comment
8 minutes ago, dd01 said:

Is there any way to read the categories assigned to a product through the API?

You can read tags but not categories. 

To make a feature request, please contact Squarespace Customer Care using a support ticket. 

Did this help? Please give feedback by clicking an icon below  ⬇️

Edited by paul2009

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.