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

« Previous Version 2 Next »

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
skipOptional, default is 0. Permits to paginate transactions. A value of 20 means that we show the 20th, 21th etc. transactionint?, Optional
takeOptional, 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
successTrue if success. False if failure.bool
errorIf failed, contains a short error messagestring?
modeThe 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
updatesStatistics 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:





  • No labels