Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pporada-gl/ad755dbbca09d78fdcacc5e4d83aa06e to your computer and use it in GitHub Desktop.
Save pporada-gl/ad755dbbca09d78fdcacc5e4d83aa06e to your computer and use it in GitHub Desktop.
Curl Fail
APIMETHOD="/repos/${OWNER}/${REPO}/issues/$ISSUE/labels"
URL="https://api.github.com/${APIMETHOD}"
curl --header "Authorization: token ${TOKEN}" \
-s \
-XPOST \
--data '{["enhancement"]}' \
--location "${URL}"
-------------------------------------------
{
"message": "Not Found",
"documentation_url": "https://developer.github.com/v3"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment