Skip to main content

Update a user's Linux configuration

PATCH 

/users/:userId

Merges the supplied linux_config into the user's stored Linux account properties (the UID, GID, home directory and default shell used when the account is created on a Linux system). Only linux_config can be changed with this endpoint. Properties not supplied keep their current values. The body may be JSON or form-encoded.

Required role: admin or superadmin.

Only the linux_config fields you send are changed; fields you leave out keep their stored values (a partial update, not a replacement). An empty linux_config object succeeds and changes nothing. With a form-encoded body, send the fields with bracket names (linux_config[uid]=20003&linux_config[home_dir]=/home/y); a single flat linux_config form field is accepted with 200 but does nothing. A value that cannot be stored (for example a non-numeric uid) returns 400 ValidationError. A non-object linux_config such as a string returns 200 and changes nothing. Other body fields (for example access) are ignored. Unknown userId returns the plain-text 404 Invalid User ID.

Request​

Responses​

Updated.