跳到主要内容

上传文件

POST 

/api/v5/repos/:owner/:repo/file/upload

Request​

Path Parameters

    owner stringrequired

    仓库所属空间地址(企业、组织或个人的地址path)

    repo stringrequired

    仓库路径(path)

Query Parameters

    access_token stringrequired

    用户授权码

Body

    filefilerequired

    文件(限制20M)

Responses​

成功响应

Response Headers
    Schema
      successinteger
      pathstring
      full_pathstring