Creating Product via REST API - error in frontend

I am creating via Ayon REST API a Folder, and then I am creating a Product using that folder’s ID as parent folder id.

In both cases I get the right result back, so folder ID returns with good response and same for product ID I get back the ID of created product and I can use Ayon API to fetch the product via its product ID and it does return properly.

When I to to ayon server’s front end web interface I get this error when I click on the newly created folder in ayon’s browser view, while I would expect to see the product created under that folder in the list.

What is the issue with product here? Do I need to create a version for that product after creating the product?

Pretty sure this is the case. All our logic everywhere creates products and directly adds versions to them - so I don’t think we’ve ever had a use case where a product would exist without a version and hence likely, it’s not caught or tested in the frontend call stack either.

As soon as you provide a version for the product and a representation for the version then it should be fine. (It may be that it’s already fine with a version without representations; although also a case I’ve never seen in practice since all version would come with representations currently as far as I know.)