Skip to main content
Shell Users

Create a shell user in a server

Asynchronous Request

POST
/servers/{serverSlug}/shellUsers
Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

serverSlugstringrequired

Slug of the server

Body

application/json

Shell user that will be added to the server

groupstringdefault:sudorequired

Group assignment for the shell user. Only a single group is allowed here.

passwordstringrequired

Password for the shell user. Aphanumeric. Underscore and dashes allowed. [a-zA-Z0-9_-]

publicKeysinteger[]

List of PublicKeys IDs to be assigned to the shell user

shellstringdefault:/bin/bashrequired

Default Shell assigned to the shell user

usernamestringrequired

Shell username. Aphanumeric. Underscore allowed. [a-zA-Z0-9_]

Response

application/json

Shell user creation initiated

X-Callback-IDstringheader

CallbackID

createdstring

Shell user creation datetime

groupstring

Shell user group

idinteger

Shell user ID

publicKeysobject[]

Shell

shellstring

Shell

usernamestring

Username