While updating the risky country using PUT method, it adds only the mentioned country to the list and removes the previous risky countries.
Steps to reproduce the issue:
1. Call the GET method of API RiskyCountries to verify the current risk countries
Request: curl --location 'https://${SSP_FQDN}/{{tenantName}}/iarisk/v1/RiskyCountries'
Response:
{
"countryCodes": [
"zw",
"af",
"dz",
.
.
.
"ye",
"zm",
"ax"
]
}
2. Call the PUT method of API RiskyCountries add a new risky countries:
Request: curl --location --request PUT 'https://${SSP_FQDN}/{{tenantName}}/iarisk/v1/RiskyCountries'
--data '{
"countryCodes": [
"es"
]
}'
Response:
{
"countryCodes": [
"es"
]
}
3. Call the GET method of API RiskyCountries to verify the current risk countries
Request: curl --location 'https://${SSP_FQDN}/{{tenantName}}/iarisk/v1/RiskyCountries'
Response:
{
"countryCodes": [
"es"
]
}