Deva
Deva

Reputation: 1039

How to call REST API related to Azure Search through postman?

I am trying to call REST API related to Azure Search through postman. Here is the API link: (Check Step 1: Create a data source)

https://learn.microsoft.com/en-us/azure/search/search-howto-indexing-azure-blob-storage

Have sent parameter api-key: [admin key] in form-data and other through jSON object.

enter image description here

I am getting 403 error.

Whats the correct way to get required output?

Update :

Changed position of api-key. Still getting the error as :

enter image description here

Is there any additional setting for postman to work with Azure's REST APIs?

Upvotes: 4

Views: 2730

Answers (1)

Gaurav Mantri
Gaurav Mantri

Reputation: 136146

Please make sure that you pass api-key in Headers instead of form-data and also all the headers should be selected. Once you do that, things should work just fine.

enter image description here

Upvotes: 5

Related Questions