I used the REST-API to export an QnA-Project with Postman. The result is a 202, so it should work. But the response body is empty. The documentation shows a link to a job. But I don't get that link. I used: URL: https://[HOST]/language/query-knowledgebases/projects/myproject/:export?api-version=2021-10-01&format=Excel
I set the Ocp-Apim-Subscription-Key in the header as an authetification. But the result is still empty.
Who had the same problem? Regards Andreas
If your response code of 202 indicates that the request has been approved and the export task has been started. It still does not mean that the export task has been finished. Before the export task is completed, the response body will remain blank.
You can use the code below and check the job's status using Python.
Code:
Output:
Reference:
Question Answering Projects - Export - REST API (Azure Cognitive Services) | Microsoft Learn