fix: correct curl syntax errors in API examples#468
Open
AnassKartit wants to merge 1 commit intomicrosoft-foundry:mainfrom
Open
fix: correct curl syntax errors in API examples#468AnassKartit wants to merge 1 commit intomicrosoft-foundry:mainfrom
AnassKartit wants to merge 1 commit intomicrosoft-foundry:mainfrom
Conversation
- Change -h to -H for header flags (lowercase is help, uppercase is headers) - Change -f to -F for form data flags in file upload example - Use double quotes for Bearer token to enable variable expansion - Remove trailing whitespace after line continuation backslashes
sdgilley
approved these changes
Jan 26, 2026
Contributor
sdgilley
left a comment
There was a problem hiding this comment.
✅ Auto-approved by content maintenance automation
This PR has been automatically validated and approved because:
- No deleted files are referenced in documentation
- No renamed files are referenced in documentation
- No deleted cells/snippets in modified files that are referenced in docs
If you notice any issues, please add a comment and we'll review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes curl syntax errors that would cause API example commands to fail.
Changes
-h→-H(lowercase is help, uppercase is headers)-f→-F(lowercase is fail-silently, uppercase is form data)$AZURE_AI_AUTH_TOKENto enable shell variable expansionImpact
All curl examples in the affected file were broken and would not execute successfully. These fixes ensure users can copy-paste and run the examples as expected.