Git
创建 Blob 对象。Create blob object.
在指定仓库中创建一个新的 Git Blob 对象。通过请求体传入文件内容(Base64 编码),返回创建后的 Blob SHA 值。通常与创建 Tree 和 Commit 接口配合使用,实现通过 API 提交文件。 Create a new Git Blob object in the specified repository. Pass file content (Base64 encoded) in the request body, returns the created Blob SHA. Typically used together with Create Tree and Create Commit endpoints to submit files via the API. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-code:rw
post/{repo}/-/git/blobs
Request
- Base URL: https://api.cnb.cool (the document declares no server; this is the origin it was published from)
- URL: https://api.cnb.cool/{repo}/-/git/blobs
- Auth: API key in header Authorization
Path parameters
repostring required
不带.git后缀的仓库名称。格式:组织名称/仓库名称。Repository name without .git suffix. Format: org/repo.
Request body
Response
Created
Changes
No recorded changes to this operation across all 1 revision of this API.