Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

typeValue must be: ScopeMandatory, string

scope

The scope object. The sample will be taken from the segments within this scope (project, job, resource...).

Mandatory, object
layout

Optionally specify the segments' fields to include in the results. This is done using a layout JSON object.

If not specified, the system will include the most relevant properties (including revision history). This should be just fine in almost all cases:

  • Segment level properties such as all IDs, custom fields and labels
  • Source language text, flags, custom fields and labels
  • Source text related comments
  • Target language text, flags, custom fields and labels
  • Target text related comments
  • Target text revisions.
Optional, object
srcThe source locale (language code).Mandatory, string
trg

The target locale (language code).

Mandatory, string
size

The expected sample size. Default is 10.

This must be a value between 1 and 50.

Optional, int?
persist

Optional boolean. Default is false.

Only set to true if required. If true, then the results are temporarily saved and assigned a token (see sampletoken in results).
You need this token when using the QA workflow API methods in order to create a workflow/jobs for the sample.


Optional, bool?
includeresults

Optional boolean. Default is true. If true then the returned JSON includes the result node. Otherwise only the summary statistics are returned.

If you further process results using the sampletoken you may not need the results with this call.

Optional, bool?

...