Add PKM Items
POST/backend/api/pkm
Host: https://core.ocplanet.cloud
Add PKM (Public Key Management) items associated with the user's account.
Request
- application/json
Body
name stringrequired
private_key stringrequired
public_key stringrequired
Responses
- 201
- application/json
- Schema
- Example (from schema)
- Example
Schema
created_at stringrequired
fingerprint stringrequired
id integerrequired
name stringrequired
public_key stringrequired
user objectrequired
display stringrequired
email stringrequired
full_name stringrequired
id integerrequired
{
"created_at": "string",
"fingerprint": "string",
"id": 0,
"name": "string",
"public_key": "string",
"user": {
"display": "string",
"email": "string",
"full_name": "string",
"id": 0
}
}
{
"id": 118,
"name": "DDDD",
"public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDHsXZwjlc9lFgRrSC1bzoZnBLU75taS3qsY+UQr07cmtpKgE1lFOU4SlxqlqK8DrlYK0DPmrZB1G8pzdPOGrhEN7442j9qZC085brGsvslDDYGIS92Cx9TJFWgtPOzPAD9991maqziczUeuTM+lRu8PnTZLDMDCTR01QVEB15ZSFM3N+znZXUhq5wV4iWmv3+cdmOY10639tcSHVucd4ecutTWymKmeIQv+gZNVzmUfqjK6MWMa2ZJF4d8YCf8w+K+IEy+OlvadE8IvMLDRuG4Eq3in1WJxVyVgeueTBWaIAW2eIZLs8Ub5sehjJ6DcmcQWfzR4ztX489AP/Key4DN",
"created_at": "2024-03-15T14:12:10.415725Z",
"fingerprint": "32:d0:7c:fa:c4:c6:6f:47:6d:44:f9:eb:0d:e5:e8:43",
"user": {
"id": 786018,
"email": "deewqe132120@gmail.com",
"full_name": "EN EN",
"display": "EN EN (deewqe132120@gmail.com) #786018"
}
}
Loading...