Update a user. Available only for admins.
PUT
/v3/users/{id}Update a user. Available only for admins.
请求参数
Path 参数
id
integer <int32>
必需
The ID of the user
Body 参数application/x-www-form-urlencoded
email
string
可选
The email of the user
password
string
可选
The password of the new user
name
string
可选
The name of the user
username
string
可选
The username of the user
skype
string
可选
The Skype username
linkedin
string
可选
The LinkedIn username
twitter
string
可选
The Twitter username
website_url
string
可选
The website of the user
organization
string
可选
The organization of the user
projects_limit
integer <int32>
可选
The number of projects a user can create
extern_uid
string
可选
The external authentication provider UID
provider
string
可选
The external provider
bio
string
可选
The biography of the user
location
string
可选
The location of the user
admin
boolean
可选
Flag indicating the user is an administrator
can_create_group
boolean
可选
Flag indicating the user can create groups
confirm
boolean
可选
Flag indicating the account needs to be confirmed
external
boolean
可选
Flag indicating the user is an external user
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Update a user. Available only for admins.
数据结构
Get the currently authenticated user
name
string
可选
username
string
可选
id
string
可选
state
string
可选
avatar_url
string
可选
web_url
string
可选
created_at
string
可选
is_admin
string
可选
bio
string
可选
location
string
可选
skype
string
可选
linkedin
string
可选
twitter
string
可选
website_url
string
可选
organization
string
可选
last_sign_in_at
string
可选
confirmed_at
string
可选
email
string
可选
theme_id
string
可选
color_scheme_id
string
可选
projects_limit
string
可选
current_sign_in_at
string
可选
identities
object (Identity)
可选
provider
string
可选
extern_uid
string
可选
can_create_group
string
可选
can_create_project
string
可选
two_factor_enabled
string
可选
external
string
可选
示例
{
"name": "string",
"username": "string",
"id": "string",
"state": "string",
"avatar_url": "string",
"web_url": "string",
"created_at": "string",
"is_admin": "string",
"bio": "string",
"location": "string",
"skype": "string",
"linkedin": "string",
"twitter": "string",
"website_url": "string",
"organization": "string",
"last_sign_in_at": "string",
"confirmed_at": "string",
"email": "string",
"theme_id": "string",
"color_scheme_id": "string",
"projects_limit": "string",
"current_sign_in_at": "string",
"identities": {
"provider": "string",
"extern_uid": "string"
},
"can_create_group": "string",
"can_create_project": "string",
"two_factor_enabled": "string",
"external": "string"
}
最后修改时间: 1 个月前