DewaVPS

Create SSH key

POST
/credential/ssh

Create a new SSH key credential.

Authorization

ApiKeyAuth
x-apikey<token>

In: header

Request Body

application/x-www-form-urlencoded

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://api.dewavps.com/v1/credential/ssh" \  -H "Content-Type: application/x-www-form-urlencoded" \  -d 'title=string&key=string'
{
  "message": "SSH Key successfully created",
  "data": {
    "credential_id": 0
  }
}