跳到主要内容

Create a user

Create a user

Request Body REQUIRED
email email REQUIRED
password string REQUIRED
name string REQUIRED

Possible values: length ≤ 32

gender int32 REQUIRED
is_admin boolean REQUIRED
language language
webhook_url string
is_bot boolean
Responses
200
Schema OPTIONAL
uid int64

User id

email string OPTIONAL
password string
name string
gender int32
is_admin boolean
language language
create_by string
in_online boolean
online_devices object[]
device string
device_token string OPTIONAL
is_online boolean
created_at timestamp
updated_at timestamp
avatar_updated_at timestamp
status string

Possible values: [normal, frozen]

webhook_url string OPTIONAL
is_bot boolean
406

Invalid webhook url

409

User conflict

Schema OPTIONAL
reason string

Possible values: [name_conflict, email_conflict]