Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update an old API version for 2024 to the latest one #154

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Be3751
Copy link

@Be3751 Be3751 commented Jan 4, 2025

I have updated an old API version for 2024 to the latest one. The old API version was deprecated, so if you use the old API version, you will get an error response from it.

Actually, when I read one of the documents I changed, I tried executing the following command, which is written in the document, but I got an error response(I'm not sure but the status code was 404 probably).
curl -i -X POST "%DI_ENDPOINT%documentintelligence/documentModels/prebuilt-layout:analyze?features=ocr.highResolution,ocr.formula,ocr.font?api-version=2024-02-29-preview" -H "Content-Type: application/json" -H "Ocp-Apim-Subscription-Key: %DI_KEY%" --data-ascii "{'urlSource': '<document-url>'}"

Copy link
Contributor

@Be3751
Copy link
Author

Be3751 commented Jan 4, 2025

@microsoft-github-policy-service agree

Copy link
Contributor

@Be3751 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants