Openminds Sock API
Create SSH Key
Creates a new SSH key.
URL
/ssh_keys
Method
POST
Data parameters
Required
user_token=[string]
client_token=[string]
key=[string]
description=[string]
favorite=[boolean]
Optional
account_ids[]
NOTE: If you decide not to save an SSH key as a favorite, this will become a required parameter.
Sample usage
curl -X POST https://sock.openminds.be/api/v1/ssh_keys -d user_token=1234 -d client_token=-5678 \
--data-urlencode key="ssh-rsa AAAAB3NzaC1y2EAAA...pmKAFX2U" \
-d description="My ssh key" \
-d favorite=true \
-d account_ids[]=7
Sample response
{
"accounts": [
{
"id": 68,
"name": "testclientsharedruby"
}
],
"description": "jorendegroof@dhcp122.om",
"favorite": true,
"id": 1,
"key": "ssh-rsa AAAAB3...P1RDgxQ=="
}