Azure API 管理 REST API 始终创建未发布的产品

Azure API Management REST API always creates unpublished product

我正在与 REST API for Azure API Management, trying to create a new product. In the image below I've used a REST client called Insomnia 合作开发我的产品:

我注意到产品总是使用 state 属性 作为 "Not published" 创建,无论发送的值如何:

为什么 state 属性 总是 "Not published",如何创建已发布的产品?

这是设计使然,根据 the official doc在发布您的产品之前,您需要添加一个或多个 API。在门户中,如果您在没有任何 api 的情况下发布产品,您将得到以下结果。

因此您需要在发布前向您的产品添加一个或多个 API,或者通过 portal or rest