POST api/translations
Add a new translation.
Request Information
URI Parameters
None.
Body Parameters
AddTranslationDTOName | Description | Type | Additional information |
---|---|---|---|
TranslationBaseId |
Translation base ID. Null if adding a new translation key as well. |
integer |
None. |
Key |
Translation key. |
string |
None. |
Value |
Translation value. |
string |
None. |
TranslationLanguage |
Language of the translation. |
TranslationLanguage |
None. |
ApplicationType |
Application type that the translation refers to. |
ApplicationType |
None. |
ApplicationName |
Application name that the translation refers to. |
ApplicationName |
None. |
Request Formats
application/json, text/json
Sample:
{ "TranslationBaseId": 1, "Key": "sample string 1", "Value": "sample string 2", "TranslationLanguage": 0, "ApplicationType": 0, "ApplicationName": 0 }
text/html
Sample:
{"TranslationBaseId":1,"Key":"sample string 1","Value":"sample string 2","TranslationLanguage":0,"ApplicationType":0,"ApplicationName":0}
application/xml, text/xml
Sample:
<AddTranslationDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.WebAPI.DTOs"> <ApplicationName>RetailProducts</ApplicationName> <ApplicationType>CPP</ApplicationType> <Key>sample string 1</Key> <TranslationBaseId>1</TranslationBaseId> <TranslationLanguage>Croatian</TranslationLanguage> <Value>sample string 2</Value> </AddTranslationDTO>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
AddTranslationResponseDTOName | Description | Type | Additional information |
---|---|---|---|
Id |
ID in the format "TranslationBaseId/TranslationItemId". |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Id": "sample string 1" }
text/html
Sample:
{"Id":"sample string 1"}
application/xml, text/xml
Sample:
<AddTranslationResponseDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.WebAPI.DTOs"> <Id>sample string 1</Id> </AddTranslationResponseDTO>