跳到主要内容

Update Warehouse Settings

PATCH 

/api/v5/repos/:owner/:repo

Request​

Path Parameters

    owner stringrequired

    Repository space address (organization or individual's address path)

    repo stringrequired

    Repository path (path)

Query Parameters

    access_token stringrequired

    User authorization code

Body

    namestringrequired

    Repository name

    descriptionstring

    Repository description

    homepagestring

    Project Address (e.g. https://gitcode.com)

    pathstring

    Update repository path

    privateboolean

    Repository is public or private. (true/false)

    default_branchstring

    Default branch

    lfs_enabledboolean

    Whether to enable LFS

    tagsstring[]

    Project Tags

Responses​

Successful Response

Response Headers
    Schema
      idinteger
      full_namestring
      human_namestring
      urlstring
      pathstring
      namestring
      descriptionstring
      privateinteger
      publicinteger
      namespace object
      idinteger
      namestring
      pathstring
      develop_modestring
      regionnull
      cellstring
      kindstring
      full_pathstring
      full_namestring
      parent_idnull
      visibility_levelinteger
      enable_file_controlinteger
      owner_idnull
      empty_reponull
      starrednull
      visibilitystring
      ownernull
      creatornull
      forked_from_projectnull
      item_typenull
      main_repository_languagenull
      homepagestring