POST /repos/:owner/:repo/git/blobs
| Name | Type | Description |
|---|---|---|
content |
string |
Required. The new blob's content. |
encoding |
string |
The encoding used for content. Currently, "utf-8" and "base64" are supported. Default: "utf-8". |
{
"content": "Content of the blob",
"encoding": "utf-8"
}
Status: 201 Created
Location: https://api.github.com/repos/octocat/example/git/blobs/3a0f86fb8db8eea7ccbb9a95f325ddbedfb25e15
{
"url": "https://api.github.com/repos/octocat/example/git/blobs/3a0f86fb8db8eea7ccbb9a95f325ddbedfb25e15",
"sha": "3a0f86fb8db8eea7ccbb9a95f325ddbedfb25e15"
}