From 5e5efecf392f95a6ccb57f19952e5d8fd4182206 Mon Sep 17 00:00:00 2001 From: Arjun Dandagi Date: Sun, 5 Jul 2020 23:14:37 +0530 Subject: [PATCH 1/2] Update api.mdx "\" makes the $ to be escaped and causes ==> {"errors":[{"message":"Bad credentials"}]} hence the doc fix :) --- website/pages/vagrant-cloud/api.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/pages/vagrant-cloud/api.mdx b/website/pages/vagrant-cloud/api.mdx index 4973a77ba..82fa112b6 100644 --- a/website/pages/vagrant-cloud/api.mdx +++ b/website/pages/vagrant-cloud/api.mdx @@ -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" } }' From fc44b2af581669bd1aea3b77d0d431c928b4c9f0 Mon Sep 17 00:00:00 2001 From: Arjun Dandagi Date: Sun, 5 Jul 2020 23:46:01 +0530 Subject: [PATCH 2/2] Update api.mdx doc fix - dont esscape $ for VAGRANT_CLOUD_TOKEN env VAR --- website/pages/vagrant-cloud/api.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/pages/vagrant-cloud/api.mdx b/website/pages/vagrant-cloud/api.mdx index 82fa112b6..ffab48a71 100644 --- a/website/pages/vagrant-cloud/api.mdx +++ b/website/pages/vagrant-cloud/api.mdx @@ -147,7 +147,7 @@ curl $upload_path --request PUT --upload-file virtualbox-1.2.3.box # Release the version curl \ - --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/release \ --request PUT