Set Duo MFA configuration
PUThttps://sailpoint.api.identitynow.com/v2024/mfa/duo-web/config
This API sets the configuration of an Duo MFA method.
Request
Responses
- 200
- 400
- 401
- 403
- 429
- 500
MFA configuration of an Duo MFA method.
Client Error - Returned if the request body is invalid.
Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.
Forbidden - Returned if the user you are running as, doesn't have access to this end-point.
Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again.
Internal Server Error - Returned if there is an unexpected error.
Authorization: oauth2
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Put, "https://sailpoint.api.identitynow.com/v2024/mfa/duo-web/config");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <TOKEN>");
var content = new StringContent("{\n \"mfaMethod\": \"duo-web\",\n \"enabled\": true,\n \"host\": \"example.com\",\n \"accessKey\": \"qw123Y3QlA5UqocYpdU3rEkzrK2D497y\",\n \"identityAttribute\": \"email\",\n \"configProperties\": {\n \"skey\": \"qwERttyZx1CdlQye2Vwtbsjr3HKddy4BAiCXjc5x\",\n \"ikey\": \"Q123WE45R6TY7890ZXCV\"\n }\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear