Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Permits to copy (or consoldiate) the contents of a translation memory into another one.

URL

(PUT) resources/{resourceid}/copy

PARAMETERS

token

The token obtained on connection

Required

resourceid

The id of the resource to copy

Required

targetresourceid

The id of the resource in which the segments shall be copied

Required

options

JSON containing options to execute the copy

Required


JSON format of "options" parameter

sourceLocaleThe language that shall be considered as source for the copy. See chapter REF _Ref358977631 \r \h 12.1 for a list of all supported ISO-2 language codes.Required
languagesToCopyA json array containing a list of language mappings. See below for details.Example:languagesToCopy: [ { "locale": "en-GB", "mappedLocale": "en" } ]Required
bookmarkExcludeRedDefault: falseIf true then texts with red bookmark are excluded during copy.Optional
skipSourceIsTargetDefault: trueIf true then translations identical to source are excludedOptional
statusExcludeErrorDefault: trueIf true then texts in error status are excludedOptional
customFieldsA json array containing a list of custom field ids and values. See below for details.Example:CustomFields: [ { "id": "CustomStr1", "value": "My field" }, { "id": "CustomStr5", "value": "A-2233" } ]Optional
modifiedFromGet texts modified after this date.Optional
modifiedToGet texts modified before this date.Optional
docIds only. Identifies document by document id.
Example: "docids: 2011,2020,2024"Optional
mergeOptionDefault: 30: Merge new and existing data - Replace existing translations1: Merge new and existing data - Do not import if translation already exists2: Do not merge but skip doubles3: Do not merge and do not look for doubles (fastest!)Optional

JSON format of field "customFields"

idThe custom string id such as 'CustomStr1', 'CustomStr2', etc. Use method settings/customfields to obtain all available ids. Note that custom fields may apply to clients only, suppliers only or both (check out the configuration of custom fields in your Wordbee platform).Required
valueThe value (string) of the custom fieldRequired

JSON format of field "languagesToCopy"

localeThe language of the resource from which the segments are copied. See chapter REF _Ref358977631 \r \h 12.1 for a list of all supported ISO-2 language codes.Required
mappedLocaleThe language to map in the target resource. See chapter REF _Ref358977631 \r \h 12.1 for a list of all supported ISO-2 language codes.Required

RESULTS

The method executes asynchronously. It returns the id of the asynchronous operation or 0 if the operation has completed immediately:

<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">2147483647</int>

If not 0 then your software should poll the status of the operation every 5 seconds. See Asynchronous operation, operation "asyncoperations/{operationid}/status".





  • No labels