updateSelf
PUT https://{{host}}/api/v1/self
Body Parameters
| Parameter | Type | Description |
|---|---|---|
| first_name | string | first name of logged-in user |
| last_name | string | last name of logged-in user |
| phone | string | phone number (numbers only, including country code) |
| phone2 | string | secondary phone number |
| password | string | new password |
| enabletwofactor | boolean | to enable or disable two-factory authentication |
| enabletwofactor | boolean | enable two factor authentication |
Note: when two-factor authentication is enabled (from disabled-state), the twofactorseed is re-generated and twofactorverified is reset to false. The OTP will need to be verified before it takes effect.
Request Body
{"password"=>"foryoureyesonly", "first_name"=>"John", "last_name"=>"Smith", "phone"=>"14081112222", "phone2"=>"14083334444", "persona"=>"security", "enable_two_factor"=>true}
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Accept | string | ||
X-CSRFToken | string | ||
Content-Type | string |
RESPONSES
status: OK
{"email":"test@mistsys.com","first_name":"John","last_name":"Smith","phone":"14081112222","phone2":"","via_sso":false,"tags":["has_8021x","mist"]}