跳到主要内容

Create user

This can only be done by the logged in user.

Request Body required

Created user object

  • login string

    this user name

  • id string

    this user id

  • url string

    return personal information interface in json format

  • name string

    User's nisckname

  • company string

    User's company

  • blog string

    User's personal website or blog

  • location string

    User's location

  • email string

    User's email

  • bio string

    User's brief introduction

  • avatar_url string

    User's avatar

  • html_url string

    User's personal homepage

  • public_repos Integer

    User's public repostory count

  • total_private_repos Integer

    User's private repostory count

  • owned_private_repos Integer

    User's self private repostory count

  • created_at string

    User's register time

  • updated_at string

    User's update personal information time

Responses

successful operation

POST /user

Request

Base URL
https://api.atomgit.com
Body required
{
"login": "mrpuatomgit",
"id": "63db126c0566d2f7d2c9498c",
"url": "https://api.atomgit.com/users/mrpuatomgit",
"name": "这就是我的昵称",
"company": "atom",
"blog": "https://youboke.com",
"location": "beijing",
"email": "2214882769@qq.com",
"bio": "hello i am putianyang",
"avatar_url": "https://img-host/uploads/user/1656318880150_5104.png",
"html_url": "https://atomgit.com/mrpuatomgit",
"public_repos": 3,
"total_private_repos": 2,
"owned_private_repos": 1,
"created_at": "2023-02-02 09:31:24",
"updated_at": "2023-02-15 18:20:50"
}
curl -L -X POST 'https://api.atomgit.com/user' \
-H 'Content-Type: application/json' \
--data-raw '{
"login": "mrpuatomgit",
"id": "63db126c0566d2f7d2c9498c",
"url": "https://api.atomgit.com/users/mrpuatomgit",
"name": "这就是我的昵称",
"company": "atom",
"blog": "https://youboke.com",
"location": "beijing",
"email": "2214882769@qq.com",
"bio": "hello i am putianyang",
"avatar_url": "https://img-host/uploads/user/1656318880150_5104.png",
"html_url": "https://atomgit.com/mrpuatomgit",
"public_repos": 3,
"total_private_repos": 2,
"owned_private_repos": 1,
"created_at": "2023-02-02 09:31:24",
"updated_at": "2023-02-15 18:20:50"
}'