添加一个公钥
POST/api/v5/user/keys
Request
Query Parameters
access_token stringrequired
用户授权码
- application/json
Body
keystringrequired
公钥内容
titlestringrequired
公钥名称
Responses
- 200
成功响应
Response Headers
- application/json
- Schema
- Example (auto)
- 1
Schema
idinteger
titlestring
keystring
created_atstring
urlstring
{
"id": 0,
"title": "string",
"key": "string",
"created_at": "string",
"url": "string"
}
成功示例
{
"id": 311915,
"title": "555555",
"key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIa6IyTGuI8V5wrhANDFyezQqL73dY9ctLGHgpOggp7E Gitee",
"created_at": "2024-11-14T03:34:40.318+00:00",
"url": "https://api.gitcode.com/v5/user/keys/311915"
}