Skip to content

updateSmartEntryAIIngestionData ​

Updates AI Ingestion data for a given Smart Entry i.e. lastIngested, aiSummary, and aiTipOfTheDayJSON.

Request ​

http
PUT /rest/smartlib/smartentry/{smartEntryId}/ai-ingested

Headers ​

x-api-key: a SAM system token provided to the AI Ingester process.

Parameters ​

Path Parameters smartEntryId (integer, required) - Id of of the Smart Entry to which a URL is to be added JSON Request Fields smartlibId (integer, required) - Id of of the Smart Library the smart entry relates to. cId (integer, required) - Id of of the Company lastIngested (date/time in UTC, required) - date/time this entry was last AI ingested aiSummary (string, required) - the text of the AI summary aiTipOfTheDayJSON (string, required) - a string representing JSON of a list of tips generated by AI.

SAMPLE REQUEST curl --location --request PUT 'http://localhost:8080/nextinteract-webapp/rest/smartlib/smartentry/15/ai-ingested'
--header 'x-api-key: sam_test_ai_ingester_AYN6Mhr6iJroG48Welye3FaXtZaAN4KXLPRuFQrcCoNQrRrML5DEUP6CQDmsa9GmTPffqOp4r4NydJxBns9XkZiLnvuPrJzYRs7MQjqiRG'
--header 'Content-Type: application/json'
--data '{ "smartlibId" : 1, "cId" : 3, "lastIngested" : 1744863598073, "aiSummary" : "This is a test of the AI summary feature from unit test", "aiTipOfTheDayJSON" : "{"fact1":1,"fact2":"a sample text"}" }'

Response ​

200 OK ​

No payload, just HTTP 200 OK.

Errors ​

ExceptionDescription
InvalidParameterExceptionSee Error Definitions
SmartEntryNotFoundExceptionSee Error Definitions
SmartLibraryServiceExceptionSee Error Definitions
InsufficientPrivilegesExceptionSee Error Definitions