文档

创建代码组

该接口用于创建Codeup代码组

请求方式POST/api/v3/groups

请求Action:CreateRepositoryGroup

请求 body

{
  "name": "",
  "path": "",
  "visibility_level": 0,
  "parent_id": 0,
  "description": "",
  "avatar_url": "",
}

body参数说明

参数名

类型

说明

是否必须

默认值

name

string

组名称

path

string

组路径

visibility_level

integer

可见性。可选:

0:私有

10:企业可见

parent_id

long

代码组父路径id

description

string

描述

avatar_url

string

组头像地址

返回 body :

{
   "ErrorCode": "",
   "ErrorMessage": "",
   "RequestId": "",
   "Success":true,
   "Result": {
  "Id": 0,
  "Name": "",
  "Path": "",
  "Description": "",
  "AvatarUrl": "",
  "WebUrl": "",
  "PathWithNamespace": "",
  "NameWithNamespace": "",
  "Type": "",
  "VisibilityLevel": "0",
  "ParentId": 0,
  "OwnerId": 0,
    }
}

返回结果说明:

参数名

类型

说明

Id

long

组id

Name

string

组名称

Path

string

组路径

Description

string

描述

AvatarUrl

string

组头像链接

WebUrl

string

组访问链接

PathWithNamespace

string

组名称(含父路径)

NameWithNamespace

string

组路径(含父路径)

Type

string

类型,组为Group

VisibilityLevel

string

可见性,0:私有;10:企业可见

ParentId

long

父路径id

OwnerId

long

拥有者id

  • 本页导读 (0)
文档反馈