Skip to main content

Add files

POST 

https://app.tolgee.io/v2/projects/:projectId/import

Prepares provided files to import.

Request

Path Parameters

    projectId int64required

Query Parameters

    structureDelimiter string

    When importing files in structured formats (e.g., JSON, YAML), this field defines the delimiter which will be used in names of imported keys.

    Example: .

Body

    filesbinary[]required

Responses

OK

Schema
    errors object[]required
  • Array [
  • codestringrequired
    paramsobject[]
  • ]
  • result object
    _embedded object
    languages object[]
  • Array [
  • conflictCountint32required
    existingLanguageAbbreviationstring
    existingLanguageIdint64
    existingLanguageNamestring
    existingLanguageTagstring
    idint64required
    importFileIdint64required
    importFileIssueCountint32required
    importFileNamestringrequired
    namestringrequired
    namespacestring
    resolvedCountint32required
    totalCountint32required
  • ]
  • page object
    numberint64
    sizeint64
    totalElementsint64
    totalPagesint64
    warnings object[]required
  • Array [
  • codestringrequired
    paramsobject[]
  • ]

Authorization: X-API-Key

name: X-API-Keytype: apiKeyin: header
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://app.tolgee.io/v2/projects/:projectId/import");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("X-API-Key", "<X-API-Key>");
var content = new StringContent(string.Empty);
content.Headers.ContentType = new MediaTypeHeaderValue("multipart/form-data");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://app.tolgee.io
Auth
Parameters
— pathrequired
— query
Body
required
ResponseClear

Click the Send API Request button above and see the response here!