> ## Documentation Index
> Fetch the complete documentation index at: https://docs.r28.ai/charter/llms.txt
> Use this file to discover all available pages before exploring further.

# git_blobs_create

> Write a file's content into the object store and get its SHA back, without committing anything. Needed for binary content, which a tree entry cannot carry inline; for text, putting `content` straight on the tree entry is one call fewer. Up to 100 MB.

<div className="tool-route"><span className="tool-row-method" data-method="POST">POST</span><code>{"https://api.github.com/repos/{owner}/{repo}/git/blobs"}</code></div>

```python github_git_blobs_create.py theme={null}
from charter.packs import github

result = await github.git_blobs_create.ainvoke({"owner": ..., "repo": ..., "content": ...})
```

<Note>
  Requires `repo`, `read:user`.
</Note>

## Path parameters

<div className="reference-table">
  | Field                                                         | Type     | Description                                                                              |
  | ------------------------------------------------------------- | -------- | ---------------------------------------------------------------------------------------- |
  | `owner` <span className="required" title="required">\*</span> | `string` | The account owner of the repository. The name is not case sensitive.                     |
  | `repo` <span className="required" title="required">\*</span>  | `string` | The name of the repository without the `.git` extension. The name is not case sensitive. |
</div>

## Body

<div className="reference-table">
  | Field                                                           | Type                                                           | Description                                                                                                                                                                            |
  | --------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | `content` <span className="required" title="required">\*</span> | `string`                                                       | The new blob's content.                                                                                                                                                                |
  | `encoding`                                                      | [BlobEncoding](/charter/charter/packs/github/git/objects#blobencoding) | The encoding used for `content`. Currently, `utf-8` and `base64` are supported. GitHub uses `utf-8` when this is absent — pass `base64` with base64-encoded content for a binary file. |
</div>
