This POST API allows to create and update region translation.
URL Format: https://<Instance>/SmartInterfaceAPI/api/RegionCulture/SaveRegionsCulture
[
{
"RegionName":"string"
"RegionTranslation":"string",
" CultureCode ":"string"
}
]
Culture codes are listed as follows:
CultureCode |
CultureName |
ar-SA | Arabic |
cs-CZ |
Czech |
da-DK |
Danish |
de-DE |
Deutsch |
el-GR |
Greek |
en-AU |
English (AU) |
en-US |
English |
es-ES |
Español |
fi-FI |
Finnish |
fr-FR |
Français |
hr-HR |
Croatian |
hu-HU |
Hungarian |
id-ID |
Indonesian (Bahasa) |
it-IT |
Italiano |
ja-JP |
Japanese |
ko-KR |
Korean |
ms-MY |
Malaysian |
nl-NL |
Dutch |
nn-NO |
Norsk |
pl-PL |
Polish |
pt-BR |
Portuguese (Brazilian) |
pt-PT |
Portuguese |
ro-RO |
Romanian |
ru-RU |
Russian |
sk-SK |
Slovak |
sv-SE |
Swedish |
th-TH |
Thai |
tr-TR |
Turkish |
vi-VN |
Vietnamese |
zh-CHT |
Chinese (Traditional) |
zh-CN |
Chinese(Simplified) |
Success Scenario – Request
The request below describes that this contains only the mandatory attributes:
[
{
"RegionName":"Canada",
"RegionTranslation":"Canada-Trans",
"CultureCode":"en-US"
},
{
"RegionName":"Canada",
"RegionTranslation":"Canada-Trans",
"CultureCode":"ar-SA"
}
]
Success Scenario - Response
{
"data": null,
"statusCode": "200",
"errorDetails": [],
"successDetails": [
{
"key": "RegionName Canada | CultureCode: en-US"
},
{
"key": "RegionName Canada | CultureCode: ar-SA"
}
]
}
Error Scenario – Request
[
{
"RegionName":"",
"RegionTranslation":"Canada-Trans",
"CultureCode":"en-US"
},
{
"RegionName":"Canada",
"RegionTranslation":"",
"CultureCode":"ar-SA"
},
{
"RegionName":"Canada",
"RegionTranslation":"Translation Canada",
"CultureCode":""
},
{
"RegionName":"Canada",
"RegionTranslation":"1g3OaV2AgzevrF0LOFwyOgWtBZYKRGk9Jtec5kxKCCulGyP8i7S7bOJmG4SQQg7Hb0c7HRxZAEuDR1a1W9VgLdRQuHSzKw7O52uD4dGBwfpdZ8oI1Gye4O9jyzRuYluNdpLxUvMK2pMDMRYuULXBlPpLOMhWoVaipDPcYj1ENpfcwFUggM3p3UxoB3zPcypqn1EW3NAG6ljXoTUnPjECj6nH4wNjsnuugIHX4xs3nNAFXw7tluTRDcMB6M44Dz06zlTgnH4m7VgWqLKOWRsrZGasVGSLwn7ttK0MlL4EE1xclazA2eHK51ajNkqXonZs1MuHDRIHAi7DmqwrIyOyUbsKQ8Xs9INxBMWERI183oU62UD8gCTODVkWMfvzoVFTmFeI1H4EmY9FLOalPMeNLMsYTJL4UI64sKMr3HTvMgd1TzQvgMDoVJ8KK365Whe5PyhpHRlxlTJ2zdwqM6AzBmszL7czb5UZgeEu0lejzTBrrtHFpJUImT07LbDeAReSl",
"CultureCode":"en-US"
},
{
"RegionName":"Canada",
"RegionTranslation":"Canada-Trans",
"CultureCode":"ar-SA"
},
{
"RegionName":"Canada",
"RegionTranslation":"Canada-Trans",
"CultureCode":"ar-SA"
}
]
Error Scenario - Response
{
"data": null,
"statusCode": "400",
"errorDetails": [
{
"key": "RegionName: | CultureCode: en-US",
"errors": [
{
"errorCode": "DataException",
"errorDescription": "Region Name is Mandatory. |"
}
]
},
{
"key": "RegionName: Canada | CultureCode: ar-SA",
"errors": [
{
"errorCode": "DataException",
"errorDescription": "Region Translation is Mandatory. |"
},
{
"errorCode": "DataException",
"errorDescription": "The combination of Region Name and Culture Code already exists in the same data feed. |"
},
{
"errorCode": "DataException",
"errorDescription": "The combination of Region Name and Culture Code already exists in the same data feed. |"
}
]
},
{
"key": "RegionName: Canada | CultureCode:",
"errors": [
{
"errorCode": "DataException",
"errorDescription": "Culture Code is Mandatory. |"
}
]
},
{
"key": "RegionName: Canada | CultureCode: en-US",
"errors": [
{
"errorCode": "DataException",
"errorDescription": "Region Translation cannot exceed 100 characters. |"
}
]
}
],
"successDetails": []
}
UserGroup |
||||
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
RegionName |
Yes |
String |
RegionName which needs to be provided |
Mandate validation |
RegionTranslation |
Yes |
String |
RegionTranslation which needs to be provided |
Mandate validation
|
CultureCode |
Yes |
String |
CultureCode which needs to be provided |
The CultureCode must be provided as mentioned in the list. Please see the Additional Information section for more details. |
Region Translation length validation |
Yes |
String |
Region Translation cannot exceed 100 characters
|
Data Exception |