Add an SSH key to a specified user. Available only for admins.
POST
/v3/users/{id}/keysAdd an SSH key to a specified user. Available only for admins.
请求参数
Path 参数
id
integer <int32>
必需
The ID of the user
Body 参数application/x-www-form-urlencoded
key
string
必需
The new SSH key
title
string
必需
The title of the new SSH key
示例代码
返回响应
成功(201)
HTTP 状态码: 201
内容格式: JSONapplication/json
Add an SSH key to a specified user. Available only for admins.
数据结构
Delete an SSH key from the currently authenticated user
id
string
可选
title
string
可选
key
string
可选
created_at
string
可选
can_push
string
可选
示例
{
"id": "string",
"title": "string",
"key": "string",
"created_at": "string",
"can_push": "string"
}
最后修改时间: 1 个月前