...
(POST) /resources/segments/randomsamplesampling/new
PARAMETERS
The parameters are a JSON object included in the request body:
type | Value must be: Scope | Mandatory, string |
scope | The scope object. The sample will be taken from the segments within this scope (project, job, resource...). Use these methods to find or enumerate: resources, jobs and projects. You will need the respective IDs to create your scope. | 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:
| Optional, object |
src | The 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). | 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? |
...