Skip to main content

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-11-08T18:07:47.613Z","publicKey":"ssh-rsa ..."}' \
    -H "Authorization: Bearer $MITTWALD_API_TOKEN" \
    -H 'Content-Type: application/json' \
    https://api.mittwald.de/v2/users/self/ssh-keys