Metadata API
The Metadata is a hierarchical structure describing the data in a job. It is composed of 5 basic levels, from top to bottom: Job, Group, Document, Datapage, and Page.
There is a set of plugins that allow to edit the Metadata during a Workflow process (see Metadata tasks), but you can also manipulate the Metadata in your process via scripts using the Metadata API.
In the Metadata API, each unit, on all levels in the hierarchy, is represented by an object called a Node.
A Node item is a collection of its lower level node type items. At the top of this tree sits a single Node object named MetaJob. The MetaJob is a collection of MetaGroup objects, where each MetaGroup is a collection of one or more MetaDocument objects. In turn, MetaDocument objects hold MetaDatapage objects, which have MetaPage objects.
In addition, a Node contains a collection of Attributes and can contain any number of Fields.
All of these objects are contained in a MetaFile object, and they are obtained, directly or indirectly, through methods of this object.