Zum Hauptinhalt springen

Store a new ssh-key

POST /v2/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-09-16T00:30:12.507Z","publicKey":"ssh-rsa ..."}' \
    -H "Authorization: Bearer $MITTWALD_API_TOKEN" \
    -H 'Content-Type: application/json' \
    https://api.mittwald.de/v2/users/self/ssh-keys