# Update
Update tha password of the application user or toggle the SSH key.
# HTTP Request:
PATCH https://api.serveravatar.com/organizations/{organization}/servers/{server}/system-users/{system_user}
# Parameter:
Parameters | Required | Type | Description |
---|---|---|---|
type | Yes | String | Select any type: password , or key |
password | No | String | Random string, Minimum 8 characters, If type is password |
password_confirmation | No | String | Same as password. |
public_key | No | String | Your public key, If type is key |
# Curl Request example:
curl --request PATCH \
--url "https://api.serveravatar.com/organizations/{organization}/servers/{server}/system-users/{system_user}" \
--header 'content-type: application/json' \
--header 'accept: application/json' \
--header 'Authorization: <YOUR API TOKEN>' \
--data '{
"type": "password",
"password": "m7m5DcqIUsNOor4t",
"password_confirmation": "m7m5DcqIUsNOor4t"
}'
# Application User Update Password
- 200 (Ok)
{
"systemUser": {
"id": 5511,
"server_id": 2721,
"username": "testApplicationUser",
"password": "m7m5DcqIUsNOor4t",
"group": "system_users",
"created_at": "2020-02-17 12:49:47",
"updated_at": "2020-02-17 12:49:47"
},
"message": "testApplicationUser has been updated successfully!"
}
# System User Not Found
- 404 (Not Found)
{
"message": "Application user not found!"
}
# Organization Not Found
- 404 (Not Found)
{
"message": "Organization not found!"
}
# Server not found
- 404 (Not Found)
{
"message": "Server not found!"
}
# Server Error
- 500 (Internal Server Error)
{
"message": "Something went really wrong!"
}