Skip to content

findSmartEntriesForSmartLibrary ​

Returns a SmartEntry with child SmartEntries including metadata for SmartLib (Tags, Filters, Folders) and metadata and children objects for SmartEntries. Supports paging with pageSize configured in SAM at 50 entries per page. Response payload is GZIPPED to optimise network size

Request ​

http
GET /rest/smartlib/{smartLibId}

Headers ​

HeaderRequiredDescription
x-nextinteract-authtokenYesAuth token returned from loginUser

Parameters ​

ParameterTypeRequiredDescription
smartLibIdLongYesPath parameter of smartLib Id that user is requesting entries for
includeAllBooleanNoFlag to indicate that ALL data should be fetched as in a "deep fetch" otherwise only thumbnails are returned
pageNumIntegerNoInteger value to control paging. Starts at 1. NOTE: response contains totalActivePages and totalActiveSmartEntries which can be used by clients to determine paging functionality
searchWordsStringNoMultiple search words to a maximum of ten. Easiest usage is to repeat the query param as in searchWords=Foo%20Bar&searchWords=Bar etc etc. Search looks for all search words in either Title OR Description OR Tags.
viewByStringNoControls which field(s) to order by. Supported values [lastModified, entryName]. Defaults to lastModified.
orderByStringNoControls the order of entries returned to client. Supported values [asc, desc]. Intended mainly for use by MI Desktop. If no value provides defaults to desc
smartFolderIdLongNoTo show entries under a specified folder for SmartLibraries that have Folders enabled (TP#11279)
hideContainerInfoBooleanNoDefault NO. To hide the container info and just return entries
versionIntegerNoDefaults to version 1 when not supplied. When version=1 then order defaults to "Last Modified Descending" and all entries returned with no folders. When version=2 when searching entries by keyword we won’t return any folders in the payload. When version=2 and smartFolderId=null then default top level folder. When version=2 and smartFolderId supplied then folders/entries returned in order specified by smart library setting

Response ​

200 OK ​

WHEN hideContainerInfo is omitted (or false) THEN payload like below:

json
{
  "smartLibOrder": "AO",
  "urlTemplate": "standard-entry-url.html",
  "authorIsUploader": "N",
  "userRoles": [
    "PUBLISHER",
    "UPLOADER"
  ],
  "smartLibId": 347,
  "smartLibOwner": "CO",
  "cId": 3,
  "cName": "My Interact Finance",
  "targetAppCode": "MY",
  "smartLibStatus": "A",
  "smartLibName": "Test Library",
  "smartLibDesc": "My test library",
  "smartLibVersion": 9,
  "smartLibRequiresMetadata": "Y",
  "smartLibCreated": 1537937973380,
  "smartLibCreatedBy": "1",
  "smartLibModified": 1537937973380,
  "smartLibModifiedBy": "1",
  "smartLibUsesFolders": "N",
  "smartLibUsesFilters": "Y",
  "defaultUserRole": "RA",
  "smartEntries": [
    {
      "smartLibId": 347,
      "smartEntryId": 454,
      "smartEntryStatus": "A",
      "smartEntryType": "PDF",
      "smartEntryName": "AWS HIPAA Whitepaper Final",
      "smartEntryDesc": "AWS HIPAA Whitepaper Final",
      "smartEntryDownloadOrig": "N",
      "smartEntryDownloadPdf": "N",
      "smartEntryCreated": 1537938167057,
      "smartEntryModified": 1537938211113,
      "smartEntryMetadataVersion": 2,
      "smartEntryFileVersion": 1,
      "smartEntryRelatedDate": 1537315200000,
      "smartFiles": [
        {
          "smartEntryId": 454,
          "smartFileId": 565,
          "smartFileType": "THMB",
          "smartFileName": "AWS_HIPAA_Whitepaper_Final-5657a665-c0cb-4d15-866f-9a00ed55d961-tile.jpg",
          "smartFileBytes": 24246,
          "smartFileMd5": "3adf0dce2b7f25a7f33041b692cccf3b",
          "smartFileCreated": 1537938167210,
          "smartFileModified": 1537938167210,
          "smartFileURL": "https://s3.amazonaws.com/DEV.com.nextinteract.brochures/3/smartlibs/347/entries/454/files/565/AWS_HIPAA_Whitepaper_Final-5657a665-c0cb-4d15-866f-9a00ed55d961-tile.jpg"
        },
        {
          "smartEntryId": 454,
          "smartFileId": 564,
          "smartFileType": "OUF",
          "smartFileName": "AWS_HIPAA_Whitepaper_Final.pdf",
          "smartFileBytes": 128304,
          "smartFileMd5": "42af94dd0a50c844acc50e66d6094c20",
          "smartFileCreated": 1537938167092,
          "smartFileModified": 1537938167092,
          "smartFileURL": "https://s3.amazonaws.com/DEV.com.nextinteract.brochures/3/smartlibs/347/entries/454/files/564/AWS_HIPAA_Whitepaper_Final.pdf"
        }
      ],
      "smartEntryCategories": [],
      "smartEntryAuthors": "Aaron, HIPAA",
      "smartEntryURLs": [
        {
          "smartEntryUrlId": 4,
          "smartEntryUrlName": "Interact Technology",
          "smartEntryUrlValue": "http://www.interact.technology"
        }
      ],
      "smartEntryTags": [
        {
          "smartTagId": 109,
          "smartTagName": "Tag2"
        }
      ],
      "smartEntryFolders": [],
      "smartEntryFilters": [
        {
          "smartFilterId": 22,
          "smartFilterName": "Filter2"
        }
      ]
    },
    {
      "smartLibId": 347,
      "smartEntryId": 453,
      "smartEntryStatus": "A",
      "smartEntryType": "URL",
      "smartEntryName": "Google.com",
      "smartEntryDesc": "Google.com website",
      "smartEntryDownloadOrig": "N",
      "smartEntryDownloadPdf": "N",
      "smartEntryCreated": 1537938036977,
      "smartEntryModified": 1537938036977,
      "smartEntryMetadataVersion": 1,
      "smartEntryFileVersion": 1,
      "smartEntryRelatedDate": 1536105600000,
      "smartFiles": [
        {
          "smartEntryId": 453,
          "smartFileId": 562,
          "smartFileType": "OUF",
          "smartFileName": "index.html",
          "smartFileBytes": 3297,
          "smartFileMd5": "caa3aab46945ac50eef4a2bd2e147b70",
          "smartFileCreated": 1537938037093,
          "smartFileModified": 1537938037093,
          "smartFileURL": "https://s3.amazonaws.com/DEV.com.nextinteract.brochures/3/smartlibs/347/entries/453/files/562/index.html"
        },
        {
          "smartEntryId": 453,
          "smartFileId": 563,
          "smartFileType": "THMB",
          "smartFileName": "index-88fa2fc1-fc80-4799-9863-4e6a9b1e4e34-tile.jpg",
          "smartFileBytes": 13148,
          "smartFileMd5": "e9e5a0894af678ca5ff9af221bcdb6b6",
          "smartFileCreated": 1537938037149,
          "smartFileModified": 1537938037149,
          "smartFileURL": "https://s3.amazonaws.com/DEV.com.nextinteract.brochures/3/smartlibs/347/entries/453/files/563/index-88fa2fc1-fc80-4799-9863-4e6a9b1e4e34-tile.jpg"
        }
      ],
      "smartEntryCategories": [],
      "smartEntryUrlLink": "https://google.com",
      "smartEntryAuthors": "Aaron, Peter, Archana",
      "smartEntryURLs": [],
      "smartEntryTags": [
        {
          "smartTagId": 108,
          "smartTagName": "Tag1"
        }
      ],
      "smartEntryFolders": [],
      "smartEntryFilters": [
        {
          "smartFilterId": 21,
          "smartFilterName": "Filter1"
        }
      ]
    }
  ],
  "smartLibTags": [
    {
      "smartTagId": 110,
      "smartTagName": "Tag3"
    },
    {
      "smartTagId": 108,
      "smartTagName": "Tag1"
    },
    {
      "smartTagId": 109,
      "smartTagName": "Tag2"
    }
  ],
  "smartLibFolders": [],
  "smartLibFilters": [
    {
      "smartFilterId": 21,
      "smartFilterName": "Filter1"
    },
    {
      "smartFilterId": 22,
      "smartFilterName": "Filter2"
    }
  ],
  "totalActiveSmartEntries": 2,
  "totalRecords": 2,
  "totalActivePages": 1,
  "userCanUpload": true
}
json
{
  "smartLibOrder": "AO",
  "userRoles": [],
  "smartLibUsesFolders": "N",
  "smartEntries": [
    {
      "smartLibId": 347,
      "smartEntryId": 454,
      "smartEntryStatus": "A",
      "smartEntryType": "PDF",
      "smartEntryName": "AWS HIPAA Whitepaper Final",
      "smartEntryDesc": "AWS HIPAA Whitepaper Final",
      "smartEntryDownloadOrig": "N",
      "smartEntryDownloadPdf": "N",
      "smartEntryCreated": 1537938167057,
      "smartEntryModified": 1537938211113,
      "smartEntryMetadataVersion": 2,
      "smartEntryFileVersion": 1,
      "smartEntryRelatedDate": 1537315200000,
      "smartFiles": [
        {
          "smartEntryId": 454,
          "smartFileId": 565,
          "smartFileType": "THMB",
          "smartFileName": "AWS_HIPAA_Whitepaper_Final-5657a665-c0cb-4d15-866f-9a00ed55d961-tile.jpg",
          "smartFileBytes": 24246,
          "smartFileMd5": "3adf0dce2b7f25a7f33041b692cccf3b",
          "smartFileCreated": 1537938167210,
          "smartFileModified": 1537938167210,
          "smartFileURL": "https://s3.amazonaws.com/DEV.com.nextinteract.brochures/3/smartlibs/347/entries/454/files/565/AWS_HIPAA_Whitepaper_Final-5657a665-c0cb-4d15-866f-9a00ed55d961-tile.jpg"
        },
        {
          "smartEntryId": 454,
          "smartFileId": 564,
          "smartFileType": "OUF",
          "smartFileName": "AWS_HIPAA_Whitepaper_Final.pdf",
          "smartFileBytes": 128304,
          "smartFileMd5": "42af94dd0a50c844acc50e66d6094c20",
          "smartFileCreated": 1537938167092,
          "smartFileModified": 1537938167092,
          "smartFileURL": "https://s3.amazonaws.com/DEV.com.nextinteract.brochures/3/smartlibs/347/entries/454/files/564/AWS_HIPAA_Whitepaper_Final.pdf"
        }
      ],
      "smartEntryCategories": [],
      "smartEntryAuthors": "Aaron, HIPAA",
      "smartEntryURLs": [
        {
          "smartEntryUrlId": 4,
          "smartEntryUrlName": "Interact Technology",
          "smartEntryUrlValue": "http://www.interact.technology"
        }
      ],
      "smartEntryTags": [
        {
          "smartTagId": 109,
          "smartTagName": "Tag2"
        }
      ],
      "smartEntryFolders": [],
      "smartEntryFilters": [
        {
          "smartFilterId": 22,
          "smartFilterName": "Filter2"
        }
      ]
    },
    {
      "smartLibId": 347,
      "smartEntryId": 453,
      "smartEntryStatus": "A",
      "smartEntryType": "URL",
      "smartEntryName": "Google.com",
      "smartEntryDesc": "Google.com website",
      "smartEntryDownloadOrig": "N",
      "smartEntryDownloadPdf": "N",
      "smartEntryCreated": 1537938036977,
      "smartEntryModified": 1537938036977,
      "smartEntryMetadataVersion": 1,
      "smartEntryFileVersion": 1,
      "smartEntryRelatedDate": 1536105600000,
      "smartFiles": [
        {
          "smartEntryId": 453,
          "smartFileId": 562,
          "smartFileType": "OUF",
          "smartFileName": "index.html",
          "smartFileBytes": 3297,
          "smartFileMd5": "caa3aab46945ac50eef4a2bd2e147b70",
          "smartFileCreated": 1537938037093,
          "smartFileModified": 1537938037093,
          "smartFileURL": "https://s3.amazonaws.com/DEV.com.nextinteract.brochures/3/smartlibs/347/entries/453/files/562/index.html"
        },
        {
          "smartEntryId": 453,
          "smartFileId": 563,
          "smartFileType": "THMB",
          "smartFileName": "index-88fa2fc1-fc80-4799-9863-4e6a9b1e4e34-tile.jpg",
          "smartFileBytes": 13148,
          "smartFileMd5": "e9e5a0894af678ca5ff9af221bcdb6b6",
          "smartFileCreated": 1537938037149,
          "smartFileModified": 1537938037149,
          "smartFileURL": "https://s3.amazonaws.com/DEV.com.nextinteract.brochures/3/smartlibs/347/entries/453/files/563/index-88fa2fc1-fc80-4799-9863-4e6a9b1e4e34-tile.jpg"
        }
      ],
      "smartEntryCategories": [],
      "smartEntryUrlLink": "https://google.com",
      "smartEntryAuthors": "Aaron, Peter, Archana",
      "smartEntryURLs": [],
      "smartEntryTags": [
        {
          "smartTagId": 108,
          "smartTagName": "Tag1"
        }
      ],
      "smartEntryFolders": [],
      "smartEntryFilters": [
        {
          "smartFilterId": 21,
          "smartFilterName": "Filter1"
        }
      ]
    }
  ],
  "smartLibFolders": [],
  "totalActiveSmartEntries": 2,
  "totalRecords": 2,
  "totalActivePages": 1,
  "userCanUpload": true
}

Response Headers ​

HeaderDescription
x-nextinteract-tmp-access-tokenAWS access key for temporary access
x-nextinteract-tmp-secret-tokenAWS secret key for temporary access
x-nextinteract-tmp-session-tokenAWS session token for temporary access
x-nextinteract-tmp-token-expiry-secondsNumber of seconds till the above expire
x-nextinteract-tmp-token-expiry-datetime-millisActual UTC date/time millis when the above will expire
x-nextinteract-s3-regionThe AWS region in which STS, Cognito etc relate to. Often needed by AWS SDK or signing

Errors ​

ExceptionDescription
WSInvalidParameterExceptionSee Error Definitions
WSInvalidAuthTokenExceptionSee Error Definitions
WSCacheServiceExceptionSee Error Definitions
WSInsufficientPrivilegesExceptionSee Error Definitions
WSSmartLibNotFoundExceptionSee Error Definitions
WSBrochureNotFoundExceptionSee Error Definitions
WSAuthorisationServiceExceptionSee Error Definitions
WSAwsExpiredTokenExceptionSee Error Definitions
WSCognitoServiceExceptionSee Error Definitions
WSSmartLibraryServiceExceptionSee Error Definitions
WSSTSServiceExceptionSee Error Definitions
WSS3ServiceExceptionSee Error Definitions