octokit.rest

Create a blob

Parameters

string The token will be passed in the authorization header.

string

string

string The new blob's content.

string The encoding used for content. Currently, "utf-8" and "base64" are supported.

Request

POST https://api.github.com/repos///git/blobs
authorization: bearer undefined
accept: application/vnd.github.v3+json
user-agent: octokit.rest
content-length: 0


Example Response

Status: 201
{
  "url": "https://api.github.com/repos/octocat/example/git/blobs/3a0f86fb8db8eea7ccbb9a95f325ddbedfb25e15",
  "sha": "3a0f86fb8db8eea7ccbb9a95f325ddbedfb25e15"
}

See documentation on GitHub developer guides