SoftLayer User Customer::updateSecurityAnswers

From SoftLayer Development Network Wiki

Jump to: navigation, search

updateSecurityAnswers is a member of the SoftLayer_User_Customer service.

Contents

Overview

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.

Return Type

updateSecurityAnswers returns the boolean data type.

Headers

Required Headers

updateSecurityAnswers requires the following headers:

Parameters

updateSecurityAnswers takes the following parameters:

questions

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

The answers that correspond to the given list of security questions.

  • Type: array of strings

Error Handling

updateSecurityAnswers throws the following exceptions:

  • SoftLayer_Exception_Public
Throw the exception 'Access is denied.' if a user tries to change another user's portal login security questions and answers.
  • SoftLayer_Exception_Public
Throw the exception 'Please provide three different security questions.' if the questions parameter does not contain three distinct security questions.
  • SoftLayer_Exception_Public
Throw the exception 'Please provide three unique security question answers.' if the answers parameter does not contain three unique answers.
  • SoftLayer_Exception_Public
Throw the exception 'Security question answers can only contain alphanumeric and the . , - _ ( ) [ ] : ; > < characters.' if any of the given answers contain invalid characters.
  • SoftLayer_Exception_Public
Throw the exception Please provide valid security questions.' if any of the given security questions do not exist.

See Also

Personal tools