curl --request PATCH \
--url https://{tenantDomain}/api/v2/connections/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"display_name": "<string>",
"options": {
"validation": {
"username": {
"min": 2,
"max": 123
}
},
"non_persistent_attrs": [
"<string>"
],
"precedence": [],
"attributes": {
"email": {
"identifier": {
"active": true
},
"unique": true,
"profile_required": true,
"signup": {
"verification": {
"active": true
}
}
},
"phone_number": {
"identifier": {
"active": true
},
"profile_required": true,
"signup": {
"verification": {
"active": true
}
}
},
"username": {
"identifier": {
"active": true
},
"profile_required": true,
"signup": {},
"validation": {
"min_length": 64.5,
"max_length": 64.5,
"allowed_types": {
"email": true,
"phone_number": true
}
}
}
},
"enable_script_context": true,
"enabledDatabaseCustomization": true,
"import_mode": true,
"configuration": {},
"customScripts": {
"login": "<string>",
"get_user": "<string>",
"delete": "<string>",
"change_password": "<string>",
"verify": "<string>",
"create": "<string>",
"change_username": "<string>",
"change_email": "<string>",
"change_phone_number": "<string>"
},
"otp_settings": {
"email": {
"otp_length": 26,
"otp_expiry": 43230
},
"phone": {
"otp_length": 26,
"otp_expiry": 43230
}
},
"authentication_methods": {
"password": {
"enabled": true
},
"passkey": {
"enabled": true
},
"email_otp": {
"enabled": true
},
"phone_otp": {
"enabled": true
}
},
"passkey_options": {
"progressive_enrollment_enabled": true,
"local_enrollment_enabled": true
},
"password_complexity_options": {
"min_length": 64
},
"password_history": {
"enable": true,
"size": 12
},
"password_no_personal_info": {
"enable": true
},
"password_dictionary": {
"enable": true,
"dictionary": [
"<string>"
]
},
"api_enable_users": true,
"api_enable_groups": true,
"basic_profile": true,
"ext_admin": true,
"ext_is_suspended": true,
"ext_agreed_terms": true,
"ext_groups": true,
"ext_assigned_plans": true,
"ext_profile": true,
"disable_self_service_change_password": true,
"upstream_params": {},
"set_user_root_attributes": "on_each_login",
"gateway_authentication": {
"method": "<string>",
"audience": "<string>",
"secret": "<string>",
"subject": "<string>",
"secret_base64_encoded": true
},
"password_options": {
"complexity": {
"min_length": 36,
"character_types": []
},
"dictionary": {
"active": true,
"custom": [
"<string>"
]
},
"history": {
"active": true,
"size": 12
},
"profile_data": {
"active": true,
"blocked_fields": [
"<string>"
]
}
},
"id_token_signed_response_algs": [],
"id_token_encrypted_response_encs": [],
"enable_pushed_authorization_requests": true,
"pushed_authorization_request_endpoint": "<string>",
"id_token_session_expiry_supported": true,
"useOauthSpecScope": true,
"discovery_url": "<string>",
"oidc_metadata": {
"issuer": "<string>",
"authorization_endpoint": "<string>",
"token_endpoint": "<string>",
"userinfo_endpoint": "<string>",
"jwks_uri": "<string>",
"registration_endpoint": "<string>",
"scopes_supported": [
"<string>"
],
"response_modes_supported": [
"<string>"
],
"response_types_supported": [
"<string>"
],
"grant_types_supported": [
"<string>"
],
"acr_values_supported": [
"<string>"
],
"subject_types_supported": [
"<string>"
],
"id_token_signing_alg_values_supported": [
"<string>"
],
"id_token_encryption_alg_values_supported": [
"<string>"
],
"id_token_encryption_enc_values_supported": [
"<string>"
],
"userinfo_signing_alg_values_supported": [
"<string>"
],
"userinfo_encryption_alg_values_supported": [
"<string>"
],
"userinfo_encryption_enc_values_supported": [
"<string>"
],
"request_object_signing_alg_values_supported": [
"<string>"
],
"request_object_encryption_alg_values_supported": [
"<string>"
],
"request_object_encryption_enc_values_supported": [
"<string>"
],
"token_endpoint_auth_methods_supported": [
"<string>"
],
"token_endpoint_auth_signing_alg_values_supported": [
"<string>"
],
"display_values_supported": [
"<string>"
],
"claim_types_supported": [
"<string>"
],
"claims_supported": [
"<string>"
],
"service_documentation": "<string>",
"claims_locales_supported": [
"<string>"
],
"ui_locales_supported": [
"<string>"
],
"claims_parameter_supported": true,
"request_parameter_supported": true,
"request_uri_parameter_supported": true,
"require_request_uri_registration": true,
"op_policy_uri": "<string>",
"op_tos_uri": "<string>",
"end_session_endpoint": "<string>",
"pushed_authorization_request_endpoint": "<string>",
"require_pushed_authorization_requests": true,
"dpop_signing_alg_values_supported": [
"<string>"
]
},
"thumbprints": [
"<string>"
],
"thumbprints_sha384": [
"<string>"
]
},
"enabled_clients": [
"<string>"
],
"is_domain_connection": true,
"show_as_button": true,
"realms": [
"<string>"
],
"metadata": {},
"cross_app_access_resource_app": {}
}
'