Support » Plugin: WooCommerce » Create product with tags?

  • Resolved aptx

    (@aptx)


    There is no documentation on the syntax used to add tags to a product when it is created via API. “tags” is a valid property returned in the response from creating a product. I have tried a few things but the JSON is not working. Should I post the ID or the name? Is it an array, array of objects or array of arrays.

    Thanks.

    • This topic was modified 1 year, 4 months ago by aptx.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter aptx

    (@aptx)

    Figured it out. IDs in an array of objects.

    	"tags" : 
    	[
    		{
    			"id" : 41
    		},
    		{
    			"id" : 42
    		}
    	]
    
Viewing 1 replies (of 1 total)
  • The topic ‘Create product with tags?’ is closed to new replies.