创建组织
创建组织
Header Parameters
- Authorization required
Oauth2 token或者私人token(需以Bearer加空格开头)
- application/json
Request Body required
create org request body
- name string
组织名称
- org string
组织命名空间
- description string
组织描述
Responses
- 200
- 400
- 401
- 403
操作成功
- application/json
- Schema
- Example (from schema)
Schema
- login string
组织名称
- id string
组织id
- url string
组织的OepnApi地址
- repos_url string
组织的repos地址
- events_url string
组织的event地址
- hooks_url string
组织的hooks地址
- issues_url string
组织的issue地址
- members_url string
组织的members地址
- public_members_url string
组织的public members地址
- avatar_url string
组织头像地址
- description string
组织的描述
- name string
the organization's name
- company string
组织官网
- blog string
组织的blog
- location string
组织位置
- public_repos Integer
组织的公共仓库数量
- followers Integer
组织的粉丝数量
- following Integer
组织的关注人数量
- email string
组织的电子邮箱
- html_url string
组织的url
- created_at string
组织的创建时间
- updated_at string
组织的更新时间
- type string
组织的类型
{
"login": "csdn",
"id": "62b59720cbcaeffdff0148ce",
"url": "https://api.atomgit.com/orgs/csdn",
"repos_url": "https://api.atomgit.com/orgs/csdn/repos",
"events_url": "https://api.atomgit.com/orgs/csdn/events",
"hooks_url": "https://api.atomgit.com/orgs/csdn/hooks",
"issues_url": "https://api.atomgit.com/orgs/csdn_test2/issues",
"members_url": "https://api.atomgit.com/orgs/csdn/members/{/member}",
"public_members_url": "https://api.atomgit.com/orgs/csdn/public_members/{/member}",
"avatar_url": "https://img-host/uploads/org/1656042927816_7741.png",
"description": "csdn is a goog website",
"name": "测试组织",
"company": "http://www.csdn.net",
"blog": "http://www.csdn.net",
"location": "北京市朝阳区",
"public_repos": 1,
"followers": 10,
"following": 0,
"email": "admin@csdn.net",
"html_url": "https://atomgit.com/csdn",
"created_at": "2022-12-21T15:45:17+08:00",
"updated_at": "2022-12-21T15:45:17+08:00",
"type": "Organization"
}
参数有误
操作失败,暂未登录
暂无权限,操作失败
Loading...