Add a new SSH Key
POST
/v1/ssh-keysAdd a new SSH key to your account.
Request
Header Params
Accept
string
required
Example:
application/json
Content-Type
string
required
Example:
application/json
Body Params application/json
data
object
required
attributes
object
required
Example
{
"data": {
"attributes": {
"comment": "Key for 2024",
"sshkey": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCzb2WiJet6lmjDpDnZO8rzRr4jR4+On3phVIXyriom1DIHrtkrzWYT16h155iCazYLiJow+LLzpFhTcgdyAiXGjiH8j7JKqM3ybsQ6bZTOwBTvFT3xMvG/xpk4qj/2TOH7TikBYTVtbCmnTWpjT7feNXezxDEyyCtagBo/Rc9ONU1HSNU77x+RHakoVA83JIRsrdH6SRi1GppdxniGT6RxJZf3eEOvUEud+yQa9Y2IR9fAp7n7axuRPU8iwN45TwilpATFkUeWEsE20VTIk4Q8IhXVl4zsDJs71TZJp+sltZUMe3JkWzUbb7xX6kzTmcd1G9ZFQS7shYtJ70dF8fP7"
}
}
}
Request samples
Responses
Created(201)
HTTP Code: 201
Content Type : JSONapplication/json
Data Schema
data
object
required
id
integer
required
type
string
required
attributes
object
required
Example
{
"data": {
"id": 208525,
"type": "ssh_keys",
"attributes": {
"customer": "John Smith",
"creator": "John Smith",
"customerId": 42804,
"enabled": true,
"keyType": "Ed25519",
"keyLength": 256,
"sshkey": "ssh-ed25519 fffffffJ/Pa4DtSc4WzwU7B",
"comment": "Key for 2024",
"fingerprint": "6c:3e:1b:30:0e:13:63:7e:94:25:f6:b9:d2:23:2e:86",
"createdAt": "2024-03-26T00:03:43+01:00"
}
}
}
Modified at 4 months ago