1
votes

I'm working with the REST API for Azure API Management, trying to create a new product. In the image below I've used a REST client called Insomnia to create my product:

enter image description here

I noticed that the product is always created with the state property as "Not published", regardless of the value sent:

enter image description here

Why is the state property always "Not published", and how can I create a published product?

1

1 Answers

2
votes

This is by design, according to the official doc, before publishing your product you need to add one or more APIs. In portal, if you publish a product without any apis, you'll get the following result.
enter image description here
enter image description here

So you need to add one or more APIs to your product before publishing, either through portal or rest.