updateSecurityAnswers


SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::updateSecurityAnswers

Update portal login security questions and answers.

Description

Update a user’s login security questions and answers on the SoftLayer customer portal. These questions and answers are used to optionally log into the SoftLayer customer portal using two-factor authentication. Each user must have three distinct questions set with a unique answer for each question, and each answer may only contain alphanumeric or the . , - _ ( ) [ ] : ; > < characters. Existing user security questions and answers are deleted before new ones are set, and users may only update their own security questions and answers.

Parameters

Name Type Description
questions SoftLayer_User_Security_Question[] A list of security questions to use when logging into the SoftLayer customer portal. Each of these objects must have at least their id property populated.
answers string[] The answers that correspond to the given list of security questions.

Required Headers

Optional Headers

  • None

Return Values

  • boolean

Error Handling

  • Throws the exception ‘Access is denied.’ if a user tries to change another user’s portal login security questions and answers.
  • Throws the exception ‘Please provide three different security questions.’ if the questions parameter does not contain three distinct security questions.
  • Throws the exception ‘Please provide three unique security question answers.’ if the answers parameter does not contain three unique answers.
  • Throws the exception ‘‘Please provide valid security questions.’ if any of the given security questions do not exist.
curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [SoftLayer_User_Security_Question, string]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_User_Customer_OpenIdConnect_TrustedProfile/{SoftLayer_User_Customer_OpenIdConnect_TrustedProfileID}/updateSecurityAnswers'