SSH Keys

Update an SSH key's display name. The public key itself cannot be changed — delete and recreate to rotate.

put/api/v1/ssh-keys/{id}

Request

  • Base URL
    https://api.rafftechnologies.com
  • URL
    https://api.rafftechnologies.com/api/v1/ssh-keys/{id}
  • Auth
    API key in header X-API-Key

Path parameters

idstring uuid required

SSH key ID (UUID)

Request body

namestring required

New SSH key display name

Response

SSH key updated

successboolean

Example response

{
  "data": {
    "name": "laptop",
    "fingerprint": "SHA256:1+VorffDlD3U7juTRFPvwlXH1Ae81o/2yTnpEN7t26w",
    "servers": [
      {
        "name": "web-01",
        "status": "active"
      }
    ]
  }
}

Changes

    • info

      added the optional property / to the response with the status

    • warning

      added the new sk-ecdsa-sha2-nistp256@openssh.com enum value to the / response property for the response status

    • warning

      added the new sk-ssh-ed25519@openssh.com enum value to the / response property for the response status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status