Update api.mdx

"\" makes the $ to be escaped and causes ==>  {"errors":[{"message":"Bad credentials"}]} 
hence the doc fix :)
This commit is contained in:
Arjun Dandagi 2020-07-05 23:14:37 +05:30 committed by GitHub
parent 7df0e62ade
commit 5e5efecf39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,7 +118,7 @@ curl \
curl \
--header "Content-Type: application/json" \
--header "Authorization: Bearer \$VAGRANT_CLOUD_TOKEN" \
--header "Authorization: Bearer $VAGRANT_CLOUD_TOKEN" \
https://app.vagrantup.com/api/v1/box/myuser/test/versions \
--data '{ "version": { "version": "1.2.3" } }'
@ -126,7 +126,7 @@ curl \
curl \
--header "Content-Type: application/json" \
--header "Authorization: Bearer \$VAGRANT_CLOUD_TOKEN" \
--header "Authorization: Bearer $VAGRANT_CLOUD_TOKEN" \
https://app.vagrantup.com/api/v1/box/myuser/test/version/1.2.3/providers \
--data '{ "provider": { "name": "virtualbox" } }'