Error with POST /products.json: publications - expected Array to be a Hash

3DCLtd
New Member
1 0 0

Hi Shopify,

We're a user of the Admin REST API, which we use as part of an app to automatically publish products to our clients' shopify sites.

We frequently encounter an error when posting a product to `/products.json`.  We get the following error: `{"errors":{"publications":"expected Array to be a Hash"}}`.  This is surprising because "publications" as a key isn't mentioned anywhere in the endpoint documentation, and we're not setting it.  My theory is that this is an issue in a layer between the REST API and the GraphQL API, as publications is indeed defined on the GraphQL schema. 

There are other threads mentioning this issue, dating back as far as 2018, with no resolution.  Please can we get this addressed?

Replies 0 (0)