How to call REST API through postman to create index in Azure?

烈酒焚心 提交于 2019-12-02 07:08:00

问题


I am creating an application where I need to call REST API related to create data source as mentioned here: https://docs.microsoft.com/en-us/azure/search/search-howto-indexing-azure-blob-storage

Here is how I am making my request :

I am getting following error :

{
    "error": {
        "code": "",
        "message": "The request is invalid. Details: index : The property 'type' does not exist on type 'Microsoft.Azure.Search.V2016_09_01.IndexDefinition'. Make sure to only use property names that are defined by the type.\r\n"
    }
}

What should I do so that 'type' can be set correctly?


回答1:


You're posting to the wrong URL try the following

https://[service name].search.windows.net/datasources?api-version=2016-09-01


来源:https://stackoverflow.com/questions/45279079/how-to-call-rest-api-through-postman-to-create-index-in-azure

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!