Procedure to create product, connect to type, fill the type attributes

Andy KalbvleeschAndy Kalbvleesch Posts: 2Member

Okay I can create a product with the API, I can connect a type set to a product but then I need to fill these Type attribute.

"https://api.webshopapp.com/nl/products/89182625.json"

Gives me:

{"product":{"id":89182625,"createdAt":"2019-03-06T17:12:17+01:00","updatedAt":"2019-03-06T17:12:17+01:00","isVisible":false,"visibility":"hidden","hasMatrix":false,"data01":"","data02":"","data03":"","url":"testandy5","title":"testandy5","fulltitle":"testandy5","description":"testandy5","content":"","set":false,"brand":false,"categories":{"resource":{"id":false,"url":"categories\/products?product=89182625","link":"https:\/\/api.webshopapp.com\/nl\/categories\/products.json?product=89182625"}},"deliverydate":false,"image":false,"images":false,"relations":{"resource":{"id":false,"url":"products\/89182625\/relations","link":"https:\/\/api.webshopapp.com\/nl\/products\/89182625\/relations.json"}},"metafields":{"resource":{"id":false,"url":"products\/89182625\/metafields","link":"https:\/\/api.webshopapp.com\/nl\/products\/89182625\/metafields.json"}},"reviews":{"resource":{"id":false,"url":"reviews?product=89182625","link":"https:\/\/api.webshopapp.com\/nl\/reviews.json?product=89182625"}},"type":{"resource":{"id":47603,"url":"types\/47603","link":"https:\/\/api.webshopapp.com\/nl\/types\/47603.json"}},"attributes":{"resource":{"id":false,"url":"products\/89182625\/attributes","link":"https:\/\/api.webshopapp.com\/nl\/products\/89182625\/attributes.json"}},"supplier":false,"tags":{"resource":{"id":false,"url":"tags\/products?product=89182625","link":"https:\/\/api.webshopapp.com\/nl\/tags\/products.json?product=89182625"}},"variants":{"resource":{"id":false,"url":"variants?product=89182625","link":"https:\/\/api.webshopapp.com\/nl\/variants.json?product=89182625"}},"movements":{"resource":{"id":false,"url":"variants\/movements?product=89182625","link":"https:\/\/api.webshopapp.com\/nl\/variants\/movements.json?product=89182625"}}}}

"https://api.webshopapp.com/nl/products/89182625/attributes.json"

gives me nothing...

{"productAttributes":[]}
So it does connect the Type to the product but it doesn't create the productAttributes that belong to the type


Tags:

1 comment

Sign In or Register to comment.