POST api/v1/company/translation/import

Given a csv file string containing translations to be inserted.

Request Information

URI Parameters

None.

Body Parameters

Ghostery.Privacy.Common.Objects.Company.TranslationImport
NameDescriptionTypeAdditional information
Csv

string

None.

GroupId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "csv": "sample string 1",
  "groupId": 2
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'System.Web.Http.ModelBinding.JQueryMvcFormUrlEncodedFormatter' to write type 'Ghostery.Privacy.Common.Objects.Company.TranslationImport'.

Response Information

Resource Description

True is successfully imported, false if not.

Ghostery.Privacy.Common.Objects.Company.TranslationImportResult
NameDescriptionTypeAdditional information
IsValid

boolean

None.

ValidationMessages

Collection of string

None.

UpdatedRecords

integer

None.

UpdatedLanguages

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "isValid": true,
  "validationMessages": [],
  "updatedRecords": 2,
  "updatedLanguages": [
    "sample string 1",
    "sample string 2"
  ]
}