Creates a challenge to update a user's PIN using the current PIN.
Universally unique identifier (UUID v4) idempotency key. This key is utilized to ensure exactly-once execution of mutating requests. To create a UUIDv4 go to uuidgenerator.net. If the same key is reused, it will be treated as the same request and the original response will be returned.
Unique system generated JWT session token for specific user.
1from circle.web3 import user_controlled_wallets
2from circle.web3 import utils
3
4client = utils.init_user_controlled_wallets_client(api_key=key)
5
6api_instance = user_controlled_wallets.PINAuthenticationApi(client)
7request = user_controlled_wallets.SetPinRequest.from_dict({
8 "idempotencyKey": "d1b66f87-2320-5834-bcd3-175a36a4d331",
9})
10response = api_instance.update_user_pin_challenge(x_user_token=user_token, set_pin_request=request)
11print(response.json())
12
1{
2 "data": {
3 "challenge_id": "c4d1da72-111e-4d52-bdbf-2e74a2d803d5"
4 }
5}