Reference Guide

Examples of using PATCH and POST to set properties and
perform
actions
1. /rest/v1/Sessions
a. POST Login
{
"Password": "",
"UserName": ""
}
b. DELETE Session (Clear session)
From the /rest/v1/Sessions URI select the href: for the session to be cleared. An
example is href: /rest/v1/Sessions/administrator53d95db4c8098e1d. When
the session is verified sending a DELETE request will clear the session.
2. /rest/v1/AccountService
a. PATCH Minimum Password Length
{
"Oem": {
"Hp": {
"MinPasswordLength": 8
}
}
}
This changes the Minimum Password Length. Acceptable values are 0 through 39.
b. PATCH Authentification Failure Logging Threshold
{
"Oem": {
"Hp": {
"AuthFailureLoggingThreshold": 3
}
}
}
This changes the threshold at which an SSH login failure is logged.
3. /rest/v1/AccountService/Accounts
a. POST New User
{
"UserName": "",
"Password": "",
"Oem": {
"Hp": {
"LoginName": ""
}
}
}
This adds a new user.
4. /rest/v1/AccountService/Accounts/N
a. PATCH Modify User Account privileges
{
"Oem": {
"Hp": {
"Privileges": {
"LoginPriv": true,
"RemoteConsolePriv": true,