Change my default method

PATCH {{stripeUrl}}/admin/v1/Me

Prerequisties for this: - Use the 'Obtain ME access_token' to obtain a valid access token. - Use 'Search for devices' to obtain the deviceId.

The user needs to provide the device id of the new device/method that they want to set as the default. For example: The user in the example request had PUSH as the default, and now wants to set EMAIL as the preferred factor.

Note: The preferredDevice value is the deviceId enrolled for EMAIL factor.

Request Body

{"schemas"=>["urn:ietf:params:scim:api:messages:2.0:PatchOp"], "Operations"=>[{"op"=>"replace", "path"=>"urn:ietf:params:scim:schemas:oracle:idcs:extension:mfa:User:preferredAuthenticationFactor", "value"=>"{{desired default method type, such as TOTP}}"}, {"op"=>"replace", "path"=>"urn:ietf:params:scim:schemas:oracle:idcs:extension:mfa:User:preferredDevice", "value"=>{"value"=>"{{deviceId for desired default method>}}"}}]}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring
Datestring
Content-Typestring
x-content-sha256string

RESPONSES

status: OK

{"idcsCreatedBy":{"type":"User","display":"admin user","value":"05999e92c93c4b45a04efd094ac5730e","$ref":"https://example.identitycloud.com/admin/v1/Users/05999e92c93c4b45a04efd094ac5730e"},"id":"c810ff4522eb437abac013291c1984d1","meta":{"created":"2019-01-24T10:06:52.595Z","lastModified":"2019-01-28T13:58:32.734Z","resourceType":"Me","location":"https://example.identitycloud.com/admin/v1/Me/c810ff4522eb437abac013291c1984d1"},"active":true,"displayName":"Joe Bloggs","idcsLastModifiedBy":{"value":"c810ff4522eb437abac013291c1984d1","display":"Joe Bloggs","type":"User","$ref":"https://example.identitycloud.com/admin/v1/Users/c810ff4522eb437abac013291c1984d1"},"userName":"jbloggs","urn:ietf:params:scim:schemas:oracle:idcs:extension:userState:User":{"locked":{"on":false}},"name":{"formatted":"Joe Bloggs","familyName":"Bloggs","givenName":"Joe"},"emails":[{"verified":true,"primary":false,"secondary":false,"value":"joe.bloggs@example.com","type":"recovery"},{"verified":true,"primary":true,"secondary":false,"value":"joe.bloggs@example.com","type":"work"}],"urn:ietf:params:scim:schemas:oracle:idcs:extension:mfa:User":{"mfaStatus":"ENROLLED","loginAttempts":0,"preferredAuthenticationFactor":"EMAIL","preferredDevice":{"value":"9ec781d2deeb4dc99de1776083a48200","$ref":"https://example.identitycloud.com/admin/v1/Devices/9ec781d2deeb4dc99de1776083a48200"}},"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:oracle:idcs:extension:userState:User","urn:ietf:params:scim:schemas:oracle:idcs:extension:mfa:User"]}