Drone CI 中文文档

创建用户

创建一个用户。请注意这个 API 需要管理员权限。

1
POST /api/users

以下是请求体的示例:

1
2
3
4
5
6
{
  "login": "octocat",
  "email": "octocat@github.com",
  "avatar_url": "http://www.gravatar.com/avatar/7194e8d48fa1d2b689f99443b767316c",
  "active": true
}

以下是响应体的示例:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
{
  "id": 1,
  "login": "octocat",
  "email": "octocat@github.com",
  "avatar_url": "http://www.gravatar.com/avatar/7194e8d48fa1d2b689f99443b767316c",
  "active": true,
  "admin": false,
  "machine": false,
  "syncing": false,
  "synced": 1564096971,
  "created": 1564096971,
  "updated": 1564096971,
  "last_login": 1564096971
}