Skip to main content

Set MFA KBA configuration

POST 

https://sailpoint.api.identitynow.com/beta/mfa/kba/config/answers

This API sets answers to challenge questions. Any configured questions omitted from the request are removed from user KBA configuration.

Request

Body arrayrequired

  • Array [
  • idstringrequired

    Question Id

    Example: c54fee53-2d63-4fc5-9259-3e93b9994135
    answerstringrequired

    An answer for the KBA question

    Example: Your answer
  • ]

Responses

The new KBA configuration for the user.

Schema
  • Array [
  • idstringrequired

    Question Id

    Example: c54fee53-2d63-4fc5-9259-3e93b9994135
    questionstringrequired

    Question description

    Example: [{"text":"Nouvelle question MFA -1 ?","locale":"fr"},{"text":"MFA new question -1 ?","locale":""}]
    hasAnswerbooleanrequired

    Denotes whether the KBA question has an answer configured for the current user

    Example: true
  • ]

Authorization: oauth2

type: Personal Access Token
scopes: idn:mfa-kba:authenticate
user levels: USER
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://sailpoint.api.identitynow.com/beta/mfa/kba/config/answers"
method := "POST"

payload := strings.NewReader(`[
{
"id": "c54fee53-2d63-4fc5-9259-3e93b9994135",
"answer": "Your answer"
}
]`)

client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)

if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Content-Type", "application/json")
req.Header.Add("Accept", "application/json")
req.Header.Add("Authorization", "Bearer <TOKEN>")

res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()

body, err := io.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}
Request Collapse all
Base URL
https://sailpoint.api.identitynow.com/beta
Auth
Body required
[
  {
    "id": "c54fee53-2d63-4fc5-9259-3e93b9994135",
    "answer": "Your answer"
  }
]
ResponseClear

Click the Send API Request button above and see the response here!