-
Notifications
You must be signed in to change notification settings - Fork 62.5k
Closed
Labels
contentThis issue or pull request belongs to the Docs Content teamThis issue or pull request belongs to the Docs Content teamfix-internallyTriggers a workflow to copy the issue internally and close the current issueTriggers a workflow to copy the issue internally and close the current issue
Description
Code of Conduct
- I have read and agree to the GitHub Docs project's Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/rest/releases/assets?apiVersion=2022-11-28#upload-a-release-asset
What part(s) of the article would you like to see updated?
For the GitHub enterprise cloud below GH CLI is expecting the HOSTNAME
while it should take the default as api.github.com
.
# GitHub CLI api
# https://cli.github.com/manual/gh_api
gh api \
--method POST \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
--hostname HOSTNAME \
/repos/OWNER/REPO/releases/RELEASE_ID/assets?name=example.zip \
-f '@example.zip'
Documentation shoudl explicity say why HOSTNAME
parameter is used and why
I believe it should also only need to show when someone selects "Version: Enterprsie Server 3.x.x" Attached image for your reference.

Additional information
No response
Metadata
Metadata
Assignees
Labels
contentThis issue or pull request belongs to the Docs Content teamThis issue or pull request belongs to the Docs Content teamfix-internallyTriggers a workflow to copy the issue internally and close the current issueTriggers a workflow to copy the issue internally and close the current issue