跳到主要内容

创建或更新仓库content

创建或更新仓库content

Request Body
  • message string

    提交信息

  • content string

    文件内容,使用Base64编码。

  • sha string

    如果是更新文件,则改字段为必填。就提交的 SHA 值。

  • branch string

    分支名称。Default:代码仓库的默认分支。

  • committer object

    提交者。默认值:当前认证的用户。"

  • name string

    提交者的名称。如果省略该字段,您将收到 422 状态码。

  • email string

    提交者的电子邮件。如果省略电子邮件,您将收到422状态码。

  • date string
  • author object

    提交作者。默认值:当前认证的用户。

  • name string

    提交作者的名称。如果省略该字段,您将收到 422 状态码。

  • email string

    提交作者的电子邮件。如果省略电子邮件,您将收到422状态码。

  • date string
Responses

成功

PUT /repos/:owner/:repo/contents/:path

Request

Base URL
https://api.atomgit.com
Body
curl -L -X PUT 'https://api.atomgit.com/repos/:owner/:repo/contents/:path' \
-H 'Content-Type: application/json' \
--data-raw ''