This POST API allows to create and update Category translation.
URL Format: https://<Instance>/SmartInterfaceAPI/api/Category/CategoryCulture
[
{
"CategoryName":"string"
"CategoryTranslation":"string",
" CultureCode ":"string"
}
]
Following are the culture code values:
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:
[
{
"CategoryName":"COAL HANDLING",
"CategoryTranslation":"COAL HANDLING ",
"CultureCode":"es-ES"
},
{
"CategoryName":"COMBUSTIBLE DUST SUPPRESSION",
"CategoryTranslation":"COAL HANDLING EQUIPMENT",
"CultureCode":"es-ES",
}]
Success Scenario - Response
{
"data": null,
"statusCode": "200",
"errorDetails": [],
"successDetails": [
{
"key": "CategoryName: COAL HANDLING EQUIPMENT | CultureCode: es-ES"
},
{
"key": "CategoryName: COMBUSTIBLE DUST SUPPRESSION | CultureCode: es-ES"
}
]
}
Error Scenario – Request
[
{
"CategoryName":"COAL HANDLING EQUIPMENT",
"CategoryTranslation":"1g3OaV2AgzevrF0LOFwyOgWtBZYKRGk9Jtec5kxKCCulGyP8i7S7bOJmG4SQQg7Hb0c7HRxZAEuDR1a1W9VgLdRQuHSzKw7O52uD4dGBwfpdZ8oI1Gye4O9jyzRuYluNdpLxUvMK2pMDMRYuULXBlPpLOMhWoVaipDPcYj1ENpfcwFUggM3p3UxoB3zPcypqn1EW3NAG6ljXoTUnPjECj6nH4wNjsnuugIHX4xs3nNAFXw7tluTRDcMB6M44Dz06zlTgnH4m7VgWqLKOWRsrZGasVGSLwn7ttK0MlL4EE1xclazA2eHK51ajNkqXonZs1MuHDRIHAi7DmqwrIyOyUbsKQ8Xs9INxBMWERI183oU62UD8gCTODVkWMfvzoVFTmFeI1H4EmY9FLOalPMeNLMsYTJL4UI64sKMr3HTvMgd1TzQvgMDoVJ8KK365Whe5PyhpHRlxlTJ2zdwqM6AzBmszL7czb5UZgeEu0lejzTBrrtHFpJUImT07LbDeAReSl",
"CultureCode":"es-ES",
},
{
"CategoryName":"COMBUSTIBLE DUST SUPPRESSION",
"CategoryTranslation":"COAL HANDLING EQUIPMENT",
"CultureCode":"es-ES",
},
{
"CategoryName":"",
"CategoryTranslation":"COAL HANDLING EQUIPMENT",
"CultureCode":"es-ES",
},
{
"CategoryName":"COMBUSTIBLE DUST SUPPRESSION",
"CategoryTranslation":"",
"CultureCode":"es-ES",
},
{
"CategoryName":"COMBUSTIBLE DUST SUPPRESSION",
"CategoryTranslation":"COAL HANDLING EQUIPMENT",
"CultureCode":"",
},
{
"CategoryName":"COAL HANDLING EQUIPMENT",
"CategoryTranslation":"COAL HANDLING EQUIPMENT",
"CultureCode":"es-ES",
}
]
Error Scenario - Response
{
"data": null,
"statusCode": "400",
"errorDetails": [
{
"key": "CategoryName: COAL HANDLING EQUIPMENT | CategoryLevel: 2 | ParentCategoryName: MATERIALS-CIVIL | ParentCategoryLevel: 1 | CultureCode: es-ES",
"errors": [
{
"errorCode": "LengthException",
"errorDescription": "Category Translation cannot exceed 512 characters"
}
]
},
{
"key": "CategoryName: COMBUSTIBLE DUST SUPPRESSION | CategoryLevel: 2 | ParentCategoryName: MATERIALS-CIVIL | ParentCategoryLevel: 1 | CultureCode: es-ES",
"errors": [
{
"errorCode": "DataException",
"errorDescription": "A combination of CategoryName,CategoryLevel,ParentCategoryName,ParentCategoryLevel and CultureCode already exists in the same data feed"
},
{
"errorCode": "MandatoryException",
"errorDescription": "CategoryTranslation is Mandatory"
}
]
},
{
"key": "CategoryName: | CategoryLevel: 2 | ParentCategoryName: MATERIALS-CIVIL | ParentCategoryLevel: 1 | CultureCode: es-ES",
"errors": [
{
"errorCode": "MandatoryException",
"errorDescription": "CategoryName is Mandatory"
}
]
},
{
"key": "CategoryName: COMBUSTIBLE DUST SUPPRESSION | CategoryLevel: 2 | ParentCategoryName: MATERIALS-CIVIL | ParentCategoryLevel: 1 | CultureCode:",
"errors": [
{
"errorCode": "MandatoryException",
"errorDescription": "CultureCode is Mandatory"
}
]
},
{
"key": "CategoryName: COAL HANDLING EQUIPMENT | CategoryLevel: 1 | ParentCategoryName: MATERIALS-CIVIL | ParentCategoryLevel: 1 | CultureCode: es-ES",
"errors": [
{
"errorCode": "DataException",
"errorDescription": "A combination of CategoryName,CategoryLevel,ParentCategoryName,ParentCategoryLevel and CultureCode already exists in the same data feed"
},
{
"errorCode": "DataException",
"errorDescription": "A combination of CategoryName,CategoryLevel,ParentCategoryName,ParentCategoryLevel and CultureCode already exists in the same data feed"
}
]
}
],
"successDetails": []
}
UserGroup |
||||
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
CategoryName |
Yes |
String |
CategoryName which needs to be provided |
Mandate validation |
CategoryTranslation |
Yes |
String |
CategoryTranslation which needs to be provided |
Mandate validation Length Exception - Category Translation cannot exceed 512 characters |
CultureCode |
Yes |
String |
CultureCode which needs to be provided |
The value of CultureCode must be from the list provided. For more information, see the Additional Information section. |