Zum Hauptinhalt springen

Create an SSH user for a Project

POST /v2/projects/{projectId}/ssh-users/
v2
POST
ssh-user-create-ssh-user

Request

  • projectIdstring
    required

    ID of the Project to create an SSHUser for.

Responses

application/json

Created

  • activeboolean
  • authUpdatedAtstring (date-time)
    required
  • createdAtstring (date-time)
    required
  • descriptionstring
    required
  • expiresAtstring (date-time)
  • hasPasswordboolean
    required
  • idstring
    required
  • projectIdstring
    required
  • publicKeysarray of object
    • Array[
    • *object

      A representation of an ssh-public-key.

      • commentstring
        required
      • keystring
        required
    • ]
  • updatedAtstring (date-time)
  • userNamestring
    required
  • Usage examples

    $ curl \
    --fail \
    --location \
    -X POST \
    -d '{"authentication":{"password":"string"},"description":"string","expiresAt":"2024-09-19T00:29:18.856Z"}' \
    -H "Authorization: Bearer $MITTWALD_API_TOKEN" \
    -H 'Content-Type: application/json' \
    https://api.mittwald.de/v2/projects/string/ssh-users