* * |
All API calls must be made as follows:
|
| Method | Request Parameter | Response Body
| create | * template (Template): template * strict (boolean): whether deprecated features (non-QName attribute keys) are disallowed * return (boolean): return created template (default: false) | template (Template): created template (if return is true)
| delete | * id (nonNegativeInteger): template id
or
-
customId (string): template custom id |
| get | * id (nonNegativeInteger): template id
or
-
customId (string): template custom ID
-
optional (boolean): treat missing template as not an error
-
withoutHiddenAttributes (boolean): whether hidden attributes are excluded | template (Template): template
| getImage | * id (nonNegativeInteger): template ID
or
-
customId (string): template custom id | image (base64): base64-encoded PNG image (64 x 64 pixels)
| query | * start (nonNegativeInteger): paging start * limit (nonNegativeInteger): paging limit * filters (Filters): array of filters * sorters (Sorters): array of sorters * withoutHiddenAttributes (boolean): whether hidden attributes are excluded | * total (nonNegativeInteger): total number of templates * templates (Templates): templates
| setImage | either
-
id (nonNegativeInteger): template id
or
-
customId (string): template custom id
-
image (base64): base64-encoded PNG image (64 x 64 pixels) |
| update | * template (Template): template * strict (boolean): whether deprecated features (non-QName attribute keys) are disallowed * return (boolean): return updated template (default: false) | template (Template): updated template (if return is true)
| getActionAttributes | * template (Template): only the id or customId is required * action (Action): only the key is required * parameters: array of action parameters (attribute) * columns (optional): array of columns when executed from a grid overview (Frontend) * custom (any) | attributes (Attributes): attributes to be passed to executeAction
| executeAction | * template (Template): only the id or customId is required * action (Action): only the key is required * parameters: array of action parameters (attribute) * columns (optional): array of columns when executed from a grid overview (front end) * custom (any) | * message (string): message (optional) * download: download (optional) * custom: any (optional) * refresh (boolean): optional - reload (all) asset data (because the action may have changed it)
//// Restrictions due to authorization logic in the JavaScript client: //// Parameter Context template custom id * versionComment (string) - intentionally separate from 'asset' + [NOTE] ==== 'versionComment' is intentionally separate from 'asset' ==== * requiredOverride (boolean) - whether "required" validation is skipped * return (boolean): return created asset * returnParameters (any): Parameters for the 'get' request of 'return' |
asset (Asset): created asset (full if return is true, otherwise only the id) |
update |
either create a new version: * asset (Asset): asset, containing id or (customId + (template/id or template/customId)) * versionComment (string) + [NOTE] ==== 'versionComment' is intentionally separate from 'asset' ==== * activationPolicy (string): whether the new version should be activated—"true," "false," or "ifHEADActive" (default value)—only meaningful if the "inactive versions" feature is enabled * requiredOverride (boolean) — whether "required" validation is skipped * onlyIfChanged (boolean) — do nothing if there are no changes to the preceding version or update unversioned attributes only: * unversionedAttributesOnly (True) * asset as above * requiredOverride as above * onlyIfChanged as above or, if the "inactive versions" feature is enabled, activate an existing version: * either id: asset id or customId + (templateId or templateCustomId) * updatedOn: version to activate: possible values "HEAD" or <updatedOn> additional parameters: * return (boolean): return updated asset (default: false) * returnParameters (any): Parameters for the 'get' request of the 'return' |
* asset (Asset): updated asset (if return is true) * unchanged (True): present if onlyIfChanged is set and there are no changes |
delete |
* either id (nonNegativeInteger): asset id * unlinkChildAssets (boolean): if true, existing child assets are unlinked; if false (default value) and there are existing child assets, the operation fails |
get |
* either id (nonNegativeInteger): asset id * optional (boolean): treat missing assets as non-errors |
asset (Asset): asset |
query |
* start (nonNegativeInteger): paging start * limit (nonNegativeInteger): paging limit * filters (Filters): array of filters * sorters (Sorters): array of sorters * sortMode: case-insensitive sort? (possible values: '', 'ci', 'user', 'user_ci') - used only for string attribute values and asset displayName/customId/description * verbosity (nonNegativeInteger): 2 includes child assets (but not joinedChildAssetIds, as that would be redundant), 1 includes attributes and joinedChildAssetIds; 5 is a special format for the frontend tree view (default: 0) * withoutHiddenAttributes: whether hidden attributes are excluded * withoutAttributeGroups: list[string] - regular expressions for (first-level) attribute groups that are not output (performance optimization) * restricted (boolean): whether assets from restricted templates should also be queried (Some options are then not supported, e.g., verbosity) * getActions (boolean): if true, also return all actions |
* total (nonNegativeInteger): total number of assets * queries (Queries): queries (only if getQueries is true) * user (User): user (only if getUser is true) * assets (Assets): assets |
executeAction |
* template (Template): only the id or customId is required * action (Action): only the key is required * filters (Filters): array of filters (To execute the action for a specific asset, use a filter for id or for customId) * sorters (Sorters): array of sorters * verbosity (nonNegativeInteger): 1 includes attributes and versions (default: 0) — deprecated; can be defined in the action itself * parameters: array of action parameters (attribute) * columns (optional): array of columns when executed from a grid overview (front end) — since Version 3.3.1 * custom (any) + [NOTE] ==== "custom" input and output are a customization point for custom UIs that reuse the Data Management backend ==== |
* total (nonNegativeInteger): total number of assets for which the action is executed * message (string): message (optional) * download: download (optional) * custom: any (optional) * refresh (boolean): optional - reload the asset data (because the action may have changed it) |
getActionAttributes |
* template (Template): only the id or customId is required * action (Action): only the key is required * filters (Filters): array of filters (To execute the action for a specific asset, use a filter for id or for customId) * sorters (Sorters): array of sorters * verbosity (nonNegativeInteger): 1 includes attributes and versions (default: 0) - deprecated, can be defined in the Action itself * parameters: array of action parameters (attribute) * columns (optional): array of columns when executed from a grid overview (front end) — since Version 3.3.1 * custom (any) + [NOTE] ==== "custom" input and output are a customization point for custom UIs that reuse the Data Management backend ==== |
attributes (Attributes): Parameter Context created query (if return is true) |
delete |
id (nonNegativeInteger): query id |
get |
* id (nonNegativeInteger): query id * returnEmpty (boolean): if true, return an empty query if the query does not exist |
query (Query): query |
query |
* start (nonNegativeInteger): paging start * limit (nonNegativeInteger): paging limit * filters (Filters): array of filters * sorters (Sorters): array of sorters * query (anyElement): with start, limit, filters, sorters as above |
* total (nonNegativeInteger): total number of queries * queries (Queries): queries |
update |
* query (Query): query * return (boolean): return updated query (default: false) |
query (Query): updated query (if return is true) |