跳到主要内容

Upload Image

POST 

/api/v5/repos/:owner/:repo/img/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

    bodystringrequired

    File content in base64 format (Data URL prefix removed) (size limit: 20MB)

    file_namestringrequired

    File name

Responses​

Successful Response

Response Headers
    Schema
      successinteger
      pathstring
      full_pathstring