Retrieves the most recent transactions of a Flex document in JSON format.
URL
(GET) /api/apps/wbflex/documents/{id}/log
PARAMETERS
URL parameters are:
id | The Flex document identifier. Either a document ID (such as 1000) or a job ID (such as c300). | int/string, Mandatory |
skip | Optional, default is 0. Permits to paginate transactions. A value of 20 means that we show the 20th, 21th etc. transaction | int?, Optional |
take | Optional, default is 20. Retrieve this number of transaction. The maximum allowed value is 100. | int?, Optional |
RESULTS
A JSON object containing some details of the Flex document plus a list of the transactions.
A typical record:
{ "ts": "2019-05-16T12:54:18.6476328Z", "success": true, "error": null, "mode": "FULL", "source": { "segmentsTotal": 1, "segmentsErrors": 0, "header": { "pushAll": null, "pushAllDeleteSegments": null, "chgStatusTarget": null, "chgStatusSource": null, "chgBookmarkTarget": null, "chgBookmarkSource": null, "major": "alpha", "minor": "2000" } }, "updates": { "total": 0, "totalAdded": 0, "totalUpdated": 0, "totalRemoved": 0, "texts": {}, "textsMeta": {} } }
The main properties are:
ts | Date of operation | datetime |
success | True if success. False if failure. | bool |
error | If failed, contains a short error message | string? |
mode | The push mode. Either "FULL" or "PARTIAL" | string |
source | Provides information on the flex file content which was pushed: Number of segments and texts as well as instructions (in the header node). | object |
updates | Statistics on updates: Number of segments, texts and meta data added, updated or removed (for the given major/minor version) | object |
For a detailed description of properties please refer to: apps/wbflex/documents/{id}/log/report
EXAMPLES
A typical document: