apps/tools/translatefiles/presets/project/{pid}
Gets various properties from a project for use by apps/tools/translatefiles/translate (POST):
- Word count profile of project
- Document format profile of project, if assigned
- Project memory resource ID and attached resource IDs
URL
(GET) /api/apps/tools/translatefiles/presets/project/{pid}
PARAMETERS
The body must contain a JSON object with these properties:
pid | The project ID. See projects/list to find projects. | int, Mandatory |
RESULTS
The method returns a JSON object with these properties:
pid | The project ID | int |
pname | The project name | string |
wordcountProfileId | Word count profile. Either the one assigned to project or the platform's default. To fetch details see:Â Word count profiles | int |
wordcountProfileName | Word count profile name | string |
formatProfileId | Document format profile, if assigned to project. To fetch details see:Â Document format profiles | int? |
formatProfileName | Document format profile name, if assigned. | string? |
resourcesProjectMemory | The project memory resource ID. Always set since all projects have a project memory and which contains the segments of the documents marked for translation. | int |
resourcesAttached | The memories or termbases attached to the project. Empty if none attached. | int[] |
EXAMPLES
A project without format profile and attached resources:
{ "pid": 924, "pname": "Sample project", "wordcountProfileId": 189, "wordcountProfileName": "Machine translate", "formatProfileId": null, "formatProfileName": null, "resourcesProjectMemory": 1199, "resourcesAttached": [] }
A project with format profile and attached resources:
{ "pid": 925, "pname": "Sample project 2", "wordcountProfileId": 203, "wordcountProfileName": "Default profile", "formatProfileId": 34, "formatProfileName": "Formats for client", "resourcesProjectMemory": 1199, "resourcesAttached": [ 2003, 1850, 223] }
Copyright Wordbee - Buzzin' Outside the Box since 2008