Class Index

Classes


Assets

Collects assets data
Defined in: assets.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Assets(ids, resolver, verbose, FILTERS, fields)
Given a resolver URL or an array of Id's, this endpoint returns asset data for each asset
Class Detail
Assets(ids, resolver, verbose, FILTERS, fields)
Given a resolver URL or an array of Id's, this endpoint returns asset data for each asset
Parameters:
ids Optional
The asset id's
resolver Optional
A resolver url
verbose Optional, Default: false
Setting this to true will collect a variety of default values for each asset.
FILTERS Optional
Filtering can be applied to the "id", "name", "path", "height", "width", "bytes", "lastModified", "mimeType", and "resolver" properties if verbose=true.
fields Optional
An array of field id's to collect the values for each asset
Returns:
[{assetInfo}, ... ]
/wf/restapi/v2/assets

Parameters:
ids=[201629291]

 Response:
 [
 {
	   "id": 201629291
	 }
 ]
/wf/restapi/v2/assets

Parameters:
ids=[201629291,201629290]

 Response:
 [
 {
	   "id": 201629291
	 },
 {
	   "id": 201629290
	 }
 ]
/wf/restapi/v2/assets

Parameters:
resolver=directory://237

 Response:
 [
 {
	   "id": 201629290
	 },
 {
	   "id": 201629291
	 }
 ]
/wf/restapi/v2/assets get the users current selection

Parameters:
resolver=currentSelection://-1

 Response:
 [
 {
     "id": 201629292
   }
 ]
/wf/restapi/v2/assets

Parameters:
ids=[201629291]
fields=["http://purl.org/dc/elements/1.1/ title","http://purl.org/dc/elements/1.1/ subject"]

 Response:
 [
 {
	   "id": 201629291,
	   "fields": {
		 "http://purl.org/dc/elements/1.1/ title": "DC title field",
		 "http://purl.org/dc/elements/1.1/ subject": [
		   "check",
		   "1",
		   "2"
		 ]
	   }
	 }
 ]
A published renditions section will be sent in response with preset names and public S3 URLs as keys
and values respectively if a license for renditions is enabled.
/wf/restapi/v2/assets

Parameters:
ids=[201629291]
verbose=true

 Response:
 [
 {
	   "id": 201629291,
	   "name": "asset4.xmp",
	   "path": "RESTTest/assets/inner/asset4.xmp",
	   "height": 1,
	   "width": 1,
	   "bytes": 4096,
	   "lastModified": 1507813578000,
	   "mimeType": "application/octet-stream",
	   "previews": {
		 "thumbnail": "../servlet/jb.view?table=thumbnails&col=thumbnails&id=pe_323031363239323931",
		 "viewex": "../servlet/jb.view?table=viewex&col=viewex&id=pe_323031363239323931",
		 "downloadUrl": "../servlet/dload?id=pe_323031363239323931"
	   },
	   "publishedRenditions": {
            "webPNG": "https://aws-cloud-host-s3Bucket/c1ba4a79-2a82-7823-ab28-5a0a1fa8220a/c1ba4a79-2a82-7823-ab28-5a0a1fa8220a.png",
            "webJpeg": "https://aws-cloud-host-s3Bucket/9ff45e98-dcc0-7823-9e45-c3be6390d3bf/9ff45e98-dcc0-7823-9e45-c3be6390d3bf.jpeg",
            "webGif": "https://aws-cloud-host-s3Bucket/11a081b2-53cf-7823-bb08-2a7f75c4ccee/11a081b2-53cf-7823-bb08-2a7f75c4ccee.gif"
       }
	 }
 ]
/wf/restapi/v2/assets

 Parameters:
 ids=[201629291]
 fields=["http://ns.mediabeacon.com/datablock/1.0/ datablock"]

 Response:
 [
 {
        "id": 201633049,
        "fields": {
            "http://ns.mediabeacon.com/datablock/1.0/ datablock": [
                {
                    "http://ns.adobe.com/pdf/1.3/ Keywords": "datablock0"
                }
            ]
        }
    }
 ]

Documentation generated by JsDoc Toolkit 2.4.0 on Mon May 18 2026 05:28:00 GMT-0000 (UTC)