How to get ID of newly created question / answer pair in Azure Language Studio via authoring API?

Ryan Exner 1 Reputation point
2023-06-26T19:01:50.6533333+00:00

How do we get the details of the IDs of newly created QnA pairs via the authoring API?

After successfully creating them, we following the operational-location to get the status, the results are not listed. A resultUrl is returned, but that URL returns a 404 error. It's pertinent to mention that the authoring API documentation does not list this in the return documentation and we do tag the items with a unique guid in the filtering.

The only workaround I can find is downloading the entire KB, but that isn't a sustainable solution.

Any help would greatly be appreciated!

User's image

Source: https://learn.microsoft.com/en-us/rest/api/cognitiveservices/questionanswering/question-answering-projects/update-qnas?tabs=HTTP

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
888 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,105 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 48,526 Reputation points Microsoft Employee
    2023-06-27T08:59:44.4733333+00:00

    @Ryan Exner Have you tried to get the QnAs of a project using the Get Qnas API? This should give you the question ids of your KB. For example, here is the response for my KB.

    User's image

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.