Skip to content

PATCH /issues/{issueNumber} returns "The given key 'Content-Type' was not present in the dictionary." #110246

Discussion options

You must be logged in to vote

As a workaround you can add Content-Type to your $headers variable.

This worked for me:
$headers += @{"Content-Type"="text/json"}

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by hpshelton
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working correctly API and Webhooks Discussions and conversations related to APIs or Webhooks
5 participants