Skip to main content

projects/{did}/documents/offline/export/init (GET)

This method can optionally be called prior to exporting files for offline work. It contains potentially useful information:

  • Is the API user authorized to export files to XLIFF, WORD or EXCEL?

  • The maximum number of files that can be exported in one step

URL

CODE
(GET) /api/projects/{pid}/documents/offline/export/init

PARAMETERS

The URL parameters are:

pid

The project ID

int, Mandatory

RESULTS

The result is a JSON object. The main properties are:

canXliff

Indicates if exporting XLIFF files is authorized.

bool

canOffice

Indicates if exporting Microsoft Word or Excel files is authorized.

bool

maxDocuments

The maximum number of files you can import in one step. The default is 50.

integer

options

A set of properties with default values. This can be useful in a user interface to show default export options to a user.

For example, the options may suggest:

  • including comments with each segment,

  • including translation memory hits, or

  • exporting in XLIFF format by default

object

EXAMPLES

A typical result is:

CODE
{
	"canXliff": true,
	"canOffice": true,
	"maxDocuments": 50,
	"options": {
		"pid": 7833,
		"documents": null,
		"includeComments": true,
		"includeMemoryHits": false,
		"createTmxFile": false,
		"includeCustomFields": false,
		"createExcelReport": true,
		"format": "Xliff"
	}
}

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.