Update Data Source (Azure Cognitive Search REST API)
Overwrites an existing data source definition with a revised version.
PUT https://[service name].search.windows.net/datasources/[data source name]?api-version=[api-version] Content-Type: application/json api-key: [admin key]
|service name||Required. Set this to the unique, user-defined name of your search service.|
|data source name||Required. The request URI specifies the name of the data source to update.|
|api-version||Required. The current version is
The following table describes the required and optional request headers.
|Content-Type||Required. Set this to
You can get the
api-key from your service dashboard in the Azure portal. For more information, see Find existing keys.
The request body syntax is the same as for Create Data Source.
When updating an existing data source, the entire definition is replaced with the contents of the request body. In general, the best pattern to use for updates is to retrieve the data source definition with a GET, modify it, and then update it with PUT.
For a successful request: 201 Created if a new data source was created, and 204 No Content if an existing data source was updated
Some properties cannot be updated on an existing data source. For example, you cannot change the type of an existing data source.