Document Intelligence Rest API Version-2024-02-29-preview

Padma Dighe 20 Reputation points
2024-03-11T14:51:39.1533333+00:00

Hi,

As per the documentation https://learn.microsoft.com/en-us/azure/ai-services/document-intelligence/whats-new?view=doc-intel-4.0.0&tabs=csharp#february-2024

Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
2,123 questions
0 comments No comments
{count} votes

Accepted answer
  1. VasaviLankipalle-MSFT 18,676 Reputation points Moderator
    2024-03-11T21:19:47.76+00:00

    Hello @Padma Dighe , Thanks for using Microsoft Q&A Platform.

    The issue is with the request URL. For API version>=2023-10-31-preview or latest the formrecognizer client is now migrated to documentintelligence.

    If you observe for API version 2023-10-31-previewor2024-02-29-preview the request URL has documentintelligence as client.

    Request URL https://{endpoint}/documentintelligence/documentModels/{modelId}:analyze?api-version=2024-02-29-preview[&pages][&locale][&stringIndexType][&features][&queryFields]

    Request URL https://{endpoint}/documentintelligence/documentModels/{modelId}:analyze?api-version=2023-10-31-preview[&pages][&locale][&stringIndexType][&features][&queryFields]

    However, for API version 2023-07-31, Request URL has formrecognizer as client, https://westeurope.api.cognitive.microsoft.com/formrecognizer/documentModels/prebuilt-layout:analyze?api-version=2023-07-31

    Please visit this guide for migrating to azure-ai-documentintelligence from azure-ai-formrecognizer: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/documentintelligence/azure-ai-documentintelligence/MIGRATION_GUIDE.md

    Correct your request here is the sample you can try: https://westeurope.api.cognitive.microsoft.com/documentintelligence/documentModels/prebuilt-read:analyze?api-version=2024-02-29-preview

    I hope this helps.

    Regards,

    Vasavi

    -Please kindly accept the answer and vote 'yes' if you feel helpful to support the community, thanks.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.