Zum Hauptinhalt springen

Store a new ssh-key

POST/users/self/ssh-keys/
v2
POST
user-create-ssh-key

Request

Responses

application/json

The ssh-key was stored.

    Usage examples

    $ curl \
    --fail \
    --location \
    -X POST \
    -d '{"expiresAt":"2024-12-18T07:57:25.855Z","publicKey":"ssh-rsa ..."}' \
    -H "Authorization: Bearer $MITTWALD_API_TOKEN" \
    -H 'Content-Type: application/json' \
    https://api.mittwald.de/v2/users/self/ssh-keys