PUT api/v1/account/updateLanguage/localeCode/{localeCode}/languageId/{languageId}
Used to update only the Language (LocaleId value) for a User. Country Code (ex. en-US) or a language Id as defined within TC2 can be used to update the value in the User Table. Equivalent SOAP API : UpdateUserLanguage
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
localeCode |
localeCode |
string |
Required |
languageId |
newPassword |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
BaseResults
BaseResultsName | Description | Type | Additional information |
---|---|---|---|
ResultCode | integer |
None. |
|
ResultData | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "ResultCode": 1, "ResultData": "sample string 2" }
application/xml, text/xml
Sample:
<BaseResults xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TC2Utilities.RestApi"> <ResultCode>1</ResultCode> <ResultData>sample string 2</ResultData> </BaseResults>