Skip to main content

Create an SSH user for a Project

POST/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[

      A representation of an ssh-public-key.

    • *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-12-18T07:53:20.722Z"}' \
    -H "Authorization: Bearer $MITTWALD_API_TOKEN" \
    -H 'Content-Type: application/json' \
    https://api.mittwald.de/v2/projects/string/ssh-users