appcenter-docs icon indicating copy to clipboard operation
appcenter-docs copied to clipboard

API Documentation Error for Uploading a New Release

Open chuckbarkertech opened this issue 3 years ago • 0 comments

Item number 7 in the Upload a New Release section for the API seems to be the wrong endpoint. Is there a correct endpoint or am I missing something? The swagger docs do not show the data being submitted as valid and the when submitting similar json an error is returned. The section that seems to be incorrect is this.

DISTRIBUTE_URL="https://api.appcenter.ms/v0.1/apps/$OWNER_NAME/$APP_NAME/uploads/releases/$RELEASE_ID"

curl -H "Content-Type: application/json" -H "Accept: application/json" -H "X-API-Token: $API_TOKEN" \
--data '{"destinations": [{ "name": "'"$DISTRIBUTION_GROUP"'"}] }' \    
-X PATCH \
$DISTRIBUTE_URL

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

chuckbarkertech avatar Aug 11 '21 14:08 chuckbarkertech