Method CreateLanguageCode
CreateLanguageCode(String, LanguageCodeContract)
Create a language code
Declaration
string CreateLanguageCode(string connectionId, LanguageCodeContract languageCode)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
LanguageCodeContract | languageCode | LanguageCode to create |
Returns
Type | Description |
---|---|
System.String | The created language code id |
Examples
POST http://YourServerName/InfoShare/Json/Common/CreateLanguageCode
Example for create a language code.{
"connectionId":"eb5718e6-8fd6-460b-9da3-4fb0434e81a8",
"languageCode": {
"Culture":"fr",
"Description":"Französisch" }
}
Response:
{
"CreateLanguageCodeResult": "ccf699a3-e8e0-e911-a94b-00155d290a08"
}
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | Object with id {id} already exists (10078) |
ServiceException | The administrative context {administrativeContext} is already checked out by user {displayLoginName} (10129) |