Uploading new File #24370
-
I must be missing something very simple here… based on this: Repositories - GitHub DocsI would expect uploading a new file would be fairly trivial, but I keep getting an error.
I am doing the PUT via C# and a HttpWebRequest. What is being sent to the server is this (Token Redacted):
The response I get back is this:
Any idea what I might be doing wrong? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
If this is actually the payload:
BrienKing:
… then it’s indeed invalid JSON. The attribute keys aren’t wrapped in double quotes. It should be:
|
Beta Was this translation helpful? Give feedback.
-
Yes, that was it. I knew I was missing something very simple. Couldn’t see the forest because of all the trees :slight_smile: |
Beta Was this translation helpful? Give feedback.
If this is actually the payload:
… then it’s indeed invalid JSON. The attribute keys aren’t wrapped in double quotes. It should be: