GET /api/businesses/{BusinessID}/challenges

Returns information about the security challenge questions set up for a business.

Authorization Roles/Permissions: Must have read permission for the business information.

Note: The CSRF header is not required for this operation even when CSRF prevention is turned on in the platform.

This topic includes the following sections:

HTTP Method

GET

Back to top

URL

https://{hostname}/api/api/businesses/{BusinessID}/challenges

Back to top

Sample Request

The example below shows a request for the challenges for the specified business

Request URL

https://{hostname}/api/api/businesses/tenantbusiness.acmepaymentscorp/challenges

Sample request headers

Accept: application/json

Sample request body

Not applicable.

Back to top

Request Headers

For general information on request header values, refer to HTTP Request Headers.

Header Description
Accept

application/json, application/xml

application/vnd.soa.v71+json, application/vnd.soa.v71+xml

application/vnd.soa.v72+json, application/vnd.soa.v72+xml

application/vnd.soa.v80+json, application/vnd.soa.v80+xml

application/vnd.soa.v81+json, application/vnd.soa.v81+xml

Back to top

Request Parameters

Parameter Parm Type Data Type Required Description
BusinessID Path string Required The unique ID for a specific business organization on the platform.

Back to top

Response

If successful, this operation returns HTTP status code 200, with information about the challenge questions set up for the business.

Back to top

Sample Response

The sample response below shows successful completion of this operation. There are four challenge questions.

Sample response headers: application/json

Status Code: 200 OK
Content-Type: application/json
Expires: Fri, 06 Feb 2015 14:20:01 GMT

Sample response body: application/json

{
  "Challenge" : [ {
    "ChallengeCode" : "com.soa.challenge.question.city.birth",
    "ChallengeQuestion" : "What is the city of your birth?"
  }, {
    "ChallengeCode" : "com.soa.challenge.question.color",
    "ChallengeQuestion" : "What is your favorite color?"
  }, {
    "ChallengeCode" : "com.soa.challenge.question.employer",
    "ChallengeQuestion" : "Who was your first employer?"
  }, {
    "ChallengeCode" : "com.soa.challenge.question.pet",
    "ChallengeQuestion" : "What is the name of your pet?",
    "MinimumLength" : 2,
    "MaximumLength" : 50,
    "MinimumAlphaCount" : 2,
    "MaximumAlphaCount" : 50,
    "MinimumNumberCount" : 0,
    "MaximumNumberCount" : 50,
    "MinimumUpperCaseLetterCount" : 1,
    "MinimumSpecialCharacterCount" : 0,
    "CanContainSpaces" : true
  } ]
}

Back to top

Sample response headers: application/vnd.soa.v72+xml

Status Code: 200 OK
Content-Type: application/vnd.soa.v72+xml
Expires: Fri, 06 Feb 2015 14:21:25 GMT

Sample response body: application/vnd.soa.v72+xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Challenges xmlns="http://soa.com/xsd/business/1.0" xmlns:ns2="http://soa.com/xsd/legals/1.0" 
xmlns:ns3="http://soa.com/xsd/dnmodel/1.0" xmlns:ns4="http://soa.com/xsd/api/1.0">
  <Challenge>
    <ChallengeCode>com.soa.challenge.question.city.birth</ChallengeCode>
    <ChallengeQuestion>What is the city of your birth?</ChallengeQuestion>
  </Challenge>
  <Challenge>
    <ChallengeCode>com.soa.challenge.question.pet</ChallengeCode>
    <ChallengeQuestion>What is the name of your pet?</ChallengeQuestion>
    <MinimumLength>2</MinimumLength>
    <MaximumLength>50</MaximumLength>
    <MinimumAlphaCount>2</MinimumAlphaCount>
    <MaximumAlphaCount>50</MaximumAlphaCount>
    <MinimumNumberCount>0</MinimumNumberCount>
    <MaximumNumberCount>50</MaximumNumberCount>
    <MinimumUpperCaseLetterCount>1</MinimumUpperCaseLetterCount>
    <MinimumSpecialCharacterCount>0</MinimumSpecialCharacterCount>
    <CanContainSpaces>true</CanContainSpaces>
    <IsCaseSensitive>true</IsCaseSensitive>
  </Challenge>
  <Challenge>
    <ChallengeCode>com.soa.challenge.question.color</ChallengeCode>
    <ChallengeQuestion>What is your favorite color?</ChallengeQuestion>
  </Challenge>
  <Challenge>
    <ChallengeCode>com.soa.challenge.question.employer</ChallengeCode>
    <ChallengeQuestion>Who was your first employer?</ChallengeQuestion>
  </Challenge>
</Challenges>

Back to top

Response Headers

For general information on response header values, refer to HTTP Response Headers.

Header Description
Content-Type

application/json, application/xml

application/vnd.soa.v71+json, application/vnd.soa.v71+xml

application/vnd.soa.v72+json, application/vnd.soa.v72+xml

application/vnd.soa.v80+json, application/vnd.soa.v80+xml

application/vnd.soa.v81+json, application/vnd.soa.v81+xml

Back to top

Response Body

Name Type Description
Challenges Challenges Contains information about one or more business challenges (security questions and answers).

Back to top

Error Codes/Messages

If the call is unsuccessful an error code/message is returned. One or more examples of possible errors for this operation are shown below.

Item Value
500 An error occurred processing the call.

More information about Akana API Platform API error messages.

Back to top

Related Topics