跳到主要内容

Upload File

POST 

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

Request​

Path Parameters

    owner stringrequired

    Repository space address (address path of the enterprise, organization, or individual)

    repo stringrequired

    Repository path (path)

Query Parameters

    access_token stringrequired

    User authorization code

Body

    filefilerequired

    File (up to 20M)

Responses​

Successful Response

Response Headers
    Schema
      successinteger
      pathstring
      full_pathstring