Azure.Search (preview:2025-08-01)

2025/08/29 • 5 updated methods

KnowledgeRetrieval_Retrieve (updated)
Description KnowledgeAgent retrieves relevant data from backing stores.
Reference Link ¶

⚶ Changes

{
  "#id": "KnowledgeRetrieval_Retrieve",
  "$parameters": {
    "retrievalRequest": {
      "$properties": {
        "knowledgeSourceParams": {
          "$properties": [
            {
              "#name": "kind",
              "Enum": {
                "new": [
                  [
                    "searchIndex",
                    "A knowledge source that reads data from a Search Index."
                  ],
                  [
                    "azureBlob",
                    "A knowledge source that read and ingest data from Azure Blob Storage to a Search Index."
                  ]
                ],
                "old": [
                  [
                    "searchIndex",
                    "A knowledge source that reads data from a Search Index."
                  ],
                  [
                    "azureBlob",
                    "A knowledge source that read and ingest data from Azure Blob Storage to a Search Index."
                  ],
                  [
                    "web",
                    "A knowledge source that reads data from the web."
                  ]
                ]
              }
            }
          ]
        }
      }
    }
  }
}

⚼ Request

POST:  /retrieve
{
retrievalRequest:
{
messages:
[
{
role: string ,
content:
[
{
type: enum ,
}
,
]
,
}
,
]
,
knowledgeSourceParams:
[
{
knowledgeSourceName: string ,
kind: enum ,
}
,
]
,
}
,
x-ms-client-request-id: string ,
api-version: string ,
x-ms-query-source-authorization: string ,
}

⚐ Response (200)

{
response:
[
{
role: string ,
content:
[
{
type: enum ,
}
,
]
,
}
,
]
,
activity:
[
{
id: integer ,
type: string ,
elapsedMs: integer ,
}
,
]
,
references:
[
{
type: string ,
id: string ,
activitySource: integer ,
sourceData: object ,
rerankerScore: number ,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
KnowledgeSources_CreateOrUpdate (updated)
Description Creates a new knowledge source or updates an knowledge source if it already exists.
Reference Link ¶

⚶ Changes

{
  "#id": "KnowledgeSources_CreateOrUpdate",
  "$parameters": {
    "KnowledgeSource": {
      "$properties": [
        {
          "#name": "kind",
          "Enum": {
            "new": [
              [
                "searchIndex",
                "A knowledge source that reads data from a Search Index."
              ],
              [
                "azureBlob",
                "A knowledge source that read and ingest data from Azure Blob Storage to a Search Index."
              ]
            ],
            "old": [
              [
                "searchIndex",
                "A knowledge source that reads data from a Search Index."
              ],
              [
                "azureBlob",
                "A knowledge source that read and ingest data from Azure Blob Storage to a Search Index."
              ],
              [
                "web",
                "A knowledge source that reads data from the web."
              ]
            ]
          }
        }
      ]
    }
  },
  "$responses": {
    "200": {
      "$properties": [
        {
          "#name": "kind",
          "Enum": {
            "new": [
              [
                "searchIndex",
                "A knowledge source that reads data from a Search Index."
              ],
              [
                "azureBlob",
                "A knowledge source that read and ingest data from Azure Blob Storage to a Search Index."
              ]
            ],
            "old": [
              [
                "searchIndex",
                "A knowledge source that reads data from a Search Index."
              ],
              [
                "azureBlob",
                "A knowledge source that read and ingest data from Azure Blob Storage to a Search Index."
              ],
              [
                "web",
                "A knowledge source that reads data from the web."
              ]
            ]
          }
        }
      ]
    },
    "201": {
      "$properties": [
        {
          "#name": "kind",
          "Enum": {
            "new": [
              [
                "searchIndex",
                "A knowledge source that reads data from a Search Index."
              ],
              [
                "azureBlob",
                "A knowledge source that read and ingest data from Azure Blob Storage to a Search Index."
              ]
            ],
            "old": [
              [
                "searchIndex",
                "A knowledge source that reads data from a Search Index."
              ],
              [
                "azureBlob",
                "A knowledge source that read and ingest data from Azure Blob Storage to a Search Index."
              ],
              [
                "web",
                "A knowledge source that reads data from the web."
              ]
            ]
          }
        }
      ]
    }
  }
}

⚼ Request

PUT:  /knowledgesources('{sourceName}')
{
sourceName: string ,
KnowledgeSource:
{
name: string ,
description: string ,
kind: enum ,
@odata.etag: string ,
encryptionKey:
{
keyVaultKeyName: string ,
keyVaultKeyVersion: string ,
keyVaultUri: string ,
accessCredentials:
{
applicationId: string ,
applicationSecret: string ,
}
,
identity:
{
@odata.type: string ,
}
,
}
,
}
,
x-ms-client-request-id: string ,
If-Match: string ,
If-None-Match: string ,
Prefer: string ,
api-version: string ,
}

⚐ Response (200)

{
name: string ,
description: string ,
kind: enum ,
@odata.etag: string ,
encryptionKey:
{
keyVaultKeyName: string ,
keyVaultKeyVersion: string ,
keyVaultUri: string ,
accessCredentials:
{
applicationId: string ,
applicationSecret: string ,
}
,
identity:
{
@odata.type: string ,
}
,
}
,
}

⚐ Response (201)

{
name: string ,
description: string ,
kind: enum ,
@odata.etag: string ,
encryptionKey:
{
keyVaultKeyName: string ,
keyVaultKeyVersion: string ,
keyVaultUri: string ,
accessCredentials:
{
applicationId: string ,
applicationSecret: string ,
}
,
identity:
{
@odata.type: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
KnowledgeSources_Get (updated)
Description Retrieves a knowledge source definition.
Reference Link ¶

⚶ Changes

{
  "#id": "KnowledgeSources_Get",
  "$responses": {
    "200": {
      "$properties": [
        {
          "#name": "kind",
          "Enum": {
            "new": [
              [
                "searchIndex",
                "A knowledge source that reads data from a Search Index."
              ],
              [
                "azureBlob",
                "A knowledge source that read and ingest data from Azure Blob Storage to a Search Index."
              ]
            ],
            "old": [
              [
                "searchIndex",
                "A knowledge source that reads data from a Search Index."
              ],
              [
                "azureBlob",
                "A knowledge source that read and ingest data from Azure Blob Storage to a Search Index."
              ],
              [
                "web",
                "A knowledge source that reads data from the web."
              ]
            ]
          }
        }
      ]
    }
  }
}

⚼ Request

GET:  /knowledgesources('{sourceName}')
{
sourceName: string ,
x-ms-client-request-id: string ,
api-version: string ,
}

⚐ Response (200)

{
name: string ,
description: string ,
kind: enum ,
@odata.etag: string ,
encryptionKey:
{
keyVaultKeyName: string ,
keyVaultKeyVersion: string ,
keyVaultUri: string ,
accessCredentials:
{
applicationId: string ,
applicationSecret: string ,
}
,
identity:
{
@odata.type: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
KnowledgeSources_List (updated)
Description Lists all knowledge sources available for a search service.
Reference Link ¶

⚶ Changes

{
  "#id": "KnowledgeSources_List",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": [
            {
              "#name": "kind",
              "Enum": {
                "new": [
                  [
                    "searchIndex",
                    "A knowledge source that reads data from a Search Index."
                  ],
                  [
                    "azureBlob",
                    "A knowledge source that read and ingest data from Azure Blob Storage to a Search Index."
                  ]
                ],
                "old": [
                  [
                    "searchIndex",
                    "A knowledge source that reads data from a Search Index."
                  ],
                  [
                    "azureBlob",
                    "A knowledge source that read and ingest data from Azure Blob Storage to a Search Index."
                  ],
                  [
                    "web",
                    "A knowledge source that reads data from the web."
                  ]
                ]
              }
            }
          ]
        }
      }
    }
  }
}

⚼ Request

GET:  /knowledgesources
{
x-ms-client-request-id: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
name: string ,
description: string ,
kind: enum ,
@odata.etag: string ,
encryptionKey:
{
keyVaultKeyName: string ,
keyVaultKeyVersion: string ,
keyVaultUri: string ,
accessCredentials:
{
applicationId: string ,
applicationSecret: string ,
}
,
identity:
{
@odata.type: string ,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
KnowledgeSources_Create (updated)
Description Creates a new knowledge source.
Reference Link ¶

⚶ Changes

{
  "#id": "KnowledgeSources_Create",
  "$parameters": {
    "KnowledgeSource": {
      "$properties": [
        {
          "#name": "kind",
          "Enum": {
            "new": [
              [
                "searchIndex",
                "A knowledge source that reads data from a Search Index."
              ],
              [
                "azureBlob",
                "A knowledge source that read and ingest data from Azure Blob Storage to a Search Index."
              ]
            ],
            "old": [
              [
                "searchIndex",
                "A knowledge source that reads data from a Search Index."
              ],
              [
                "azureBlob",
                "A knowledge source that read and ingest data from Azure Blob Storage to a Search Index."
              ],
              [
                "web",
                "A knowledge source that reads data from the web."
              ]
            ]
          }
        }
      ]
    }
  },
  "$responses": {
    "201": {
      "$properties": [
        {
          "#name": "kind",
          "Enum": {
            "new": [
              [
                "searchIndex",
                "A knowledge source that reads data from a Search Index."
              ],
              [
                "azureBlob",
                "A knowledge source that read and ingest data from Azure Blob Storage to a Search Index."
              ]
            ],
            "old": [
              [
                "searchIndex",
                "A knowledge source that reads data from a Search Index."
              ],
              [
                "azureBlob",
                "A knowledge source that read and ingest data from Azure Blob Storage to a Search Index."
              ],
              [
                "web",
                "A knowledge source that reads data from the web."
              ]
            ]
          }
        }
      ]
    }
  }
}

⚼ Request

POST:  /knowledgesources
{
KnowledgeSource:
{
name: string ,
description: string ,
kind: enum ,
@odata.etag: string ,
encryptionKey:
{
keyVaultKeyName: string ,
keyVaultKeyVersion: string ,
keyVaultUri: string ,
accessCredentials:
{
applicationId: string ,
applicationSecret: string ,
}
,
identity:
{
@odata.type: string ,
}
,
}
,
}
,
x-ms-client-request-id: string ,
api-version: string ,
}

⚐ Response (201)

{
name: string ,
description: string ,
kind: enum ,
@odata.etag: string ,
encryptionKey:
{
keyVaultKeyName: string ,
keyVaultKeyVersion: string ,
keyVaultUri: string ,
accessCredentials:
{
applicationId: string ,
applicationSecret: string ,
}
,
identity:
{
@odata.type: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}