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[

      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":"2025-04-07T21:35:28.399Z"}' \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.mittwald.de/v2/projects/string/ssh-users