Hello there,
We used to use the publishedAt attribute to publish to Online Stores when calling productCreate and productUpdate operations. However, the publishedAt attribute is marked as deprecated in the latest API version (2024-04).
The docs suggest to use publishablePublish operation. Doing this would imply several changes to our workflow:
- Our app would have to make two API calls instead of one
- Our app would have to first be aware (fetch, parse/filter and store) of available publications to then be able to publish to the Online Store
- Our users would have to re-authorize our app tp get an access token with permissions
read_publicationsandwrite_publicationsso we can read and publish products to the Online Store
The questions are:
- Is there any way to continue to automatically publish to Online Stores in a single API call (e.g. productSet which is what we are using) instead of making our app aware of all the publications?
- If the only way is to use the
publishablePublishoperation, is there any way to publish to Online Stores by default without having to specify the publication ID? - If the only way is to use the
publishablePublishoperation, is there any way to do so without having our users to re-authorize?
Thanks