Zum Hauptinhalt springen

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[
    • *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-11-08T18:11:51.583Z"}' \
    -H "Authorization: Bearer $MITTWALD_API_TOKEN" \
    -H 'Content-Type: application/json' \
    https://api.mittwald.de/v2/projects/string/ssh-users