curl --request POST \
--url https://cloud.memsource.com/web/api2/v2/analyses \
--header 'Content-Type: application/json' \
--data '{
"jobs": [
{
"uid": "<string>"
}
],
"type": "PreAnalyse",
"includeFuzzyRepetitions": true,
"separateFuzzyRepetitions": true,
"includeConfirmedSegments": true,
"includeNumbers": true,
"includeLockedSegments": true,
"countSourceUnits": true,
"includeTransMemory": true,
"includeNonTranslatables": true,
"includeMachineTranslationMatches": true,
"transMemoryPostEditing": true,
"nonTranslatablePostEditing": true,
"machineTranslatePostEditing": true,
"analyzeByProvider": false,
"analyzeByLanguage": false,
"name": "<string>",
"netRateScheme": {
"id": "<string>"
},
"compareWorkflowLevel": 8,
"useProjectAnalysisSettings": true,
"callbackUrl": "<string>",
"provider": {
"type": "<string>",
"id": "<string>"
}
}'
{
"asyncRequests": [
{
"asyncRequest": {
"id": "<string>",
"createdBy": {
"firstName": "<string>",
"lastName": "<string>",
"userName": "<string>",
"email": "<string>",
"role": "SYS_ADMIN",
"id": "<string>",
"uid": "<string>"
},
"dateCreated": "2023-11-07T05:31:56Z",
"action": "PRE_ANALYSE",
"asyncResponse": {
"dateCreated": "2023-11-07T05:31:56Z",
"errorCode": "<string>",
"errorDesc": "<string>",
"errorDetails": [
{
"code": "<string>",
"args": {},
"message": "<string>"
}
],
"warnings": [
{
"code": "<string>",
"args": {},
"message": "<string>"
}
]
},
"parent": {},
"project": {
"name": "<string>",
"uid": "<string>"
}
},
"analyse": {}
}
]
}
Returns created analyses - batching analyses by number of segments (api.segment.count.approximation, default 100000), in case request contains more segments than maximum (api.segment.max.count, default 300000), returns 400 bad request.
curl --request POST \
--url https://cloud.memsource.com/web/api2/v2/analyses \
--header 'Content-Type: application/json' \
--data '{
"jobs": [
{
"uid": "<string>"
}
],
"type": "PreAnalyse",
"includeFuzzyRepetitions": true,
"separateFuzzyRepetitions": true,
"includeConfirmedSegments": true,
"includeNumbers": true,
"includeLockedSegments": true,
"countSourceUnits": true,
"includeTransMemory": true,
"includeNonTranslatables": true,
"includeMachineTranslationMatches": true,
"transMemoryPostEditing": true,
"nonTranslatablePostEditing": true,
"machineTranslatePostEditing": true,
"analyzeByProvider": false,
"analyzeByLanguage": false,
"name": "<string>",
"netRateScheme": {
"id": "<string>"
},
"compareWorkflowLevel": 8,
"useProjectAnalysisSettings": true,
"callbackUrl": "<string>",
"provider": {
"type": "<string>",
"id": "<string>"
}
}'
{
"asyncRequests": [
{
"asyncRequest": {
"id": "<string>",
"createdBy": {
"firstName": "<string>",
"lastName": "<string>",
"userName": "<string>",
"email": "<string>",
"role": "SYS_ADMIN",
"id": "<string>",
"uid": "<string>"
},
"dateCreated": "2023-11-07T05:31:56Z",
"action": "PRE_ANALYSE",
"asyncResponse": {
"dateCreated": "2023-11-07T05:31:56Z",
"errorCode": "<string>",
"errorDesc": "<string>",
"errorDetails": [
{
"code": "<string>",
"args": {},
"message": "<string>"
}
],
"warnings": [
{
"code": "<string>",
"args": {},
"message": "<string>"
}
]
},
"parent": {},
"project": {
"name": "<string>",
"uid": "<string>"
}
},
"analyse": {}
}
]
}
successful operation
The response is of type object
.
Was this page helpful?