updateSelf

PUT https://{{host}}/api/v1/self

Body Parameters

ParameterTypeDescription
first_namestringfirst name of logged-in user
last_namestringlast name of logged-in user
phonestringphone number (numbers only, including country code)
phone2stringsecondary phone number
passwordstringnew password
enabletwofactorbooleanto enable or disable two-factory authentication
enabletwofactorbooleanenable 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

KeyDatatypeRequiredDescription
Acceptstring
X-CSRFTokenstring
Content-Typestring

RESPONSES

status: OK

{"email":"test@mistsys.com","first_name":"John","last_name":"Smith","phone":"14081112222","phone2":"","via_sso":false,"tags":["has_8021x","mist"]}