POST api/Translations/AddTranslation

Request Information

URI Parameters

None.

Body Parameters

AddBindingModel
NameDescriptionTypeAdditional information
AddSegment

string

None.

Source

string

None.

ResultLimit

integer

None.

ShouldReplaceNumbers

boolean

None.

ShouldDoTermRecognition

boolean

None.

ShouldUseRtf

boolean

None.

ShouldSetHyperlinksMatch

boolean

None.

DatabaseType

DatabaseType

None.

SourceLanguageId

integer

None.

TargetLanguageId

integer

None.

SubjectId

integer

None.

SubsubjectId

integer

None.

ProjectCode

string

None.

MinMatchPercent

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "AddSegment": "sample string 1",
  "Source": "sample string 2",
  "ResultLimit": 3,
  "ShouldReplaceNumbers": true,
  "ShouldDoTermRecognition": true,
  "ShouldUseRtf": true,
  "ShouldSetHyperlinksMatch": true,
  "DatabaseType": 1,
  "SourceLanguageId": 8,
  "TargetLanguageId": 9,
  "SubjectId": 10,
  "SubsubjectId": 11,
  "ProjectCode": "sample string 12",
  "MinMatchPercent": 13
}

application/xml, text/xml

Sample:
<AddBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TTWebApi.Models">
  <DatabaseType>Private</DatabaseType>
  <MinMatchPercent>13</MinMatchPercent>
  <ProjectCode>sample string 12</ProjectCode>
  <SourceLanguageId>8</SourceLanguageId>
  <SubjectId>10</SubjectId>
  <SubsubjectId>11</SubsubjectId>
  <TargetLanguageId>9</TargetLanguageId>
  <ResultLimit>3</ResultLimit>
  <ShouldDoTermRecognition>true</ShouldDoTermRecognition>
  <ShouldReplaceNumbers>true</ShouldReplaceNumbers>
  <ShouldSetHyperlinksMatch>true</ShouldSetHyperlinksMatch>
  <ShouldUseRtf>true</ShouldUseRtf>
  <AddSegment>sample string 1</AddSegment>
  <Source>sample string 2</Source>
</AddBindingModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AddBindingModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.