Appearance
updateSmartEntryAIIngestionFailure ​
Updates AI Ingestion failure info and increments the aiIngestionFailures count field.
Request ​
http
PUT /rest/smartlib/smartentry/{smartEntryId}/ai-ingestion-failureHeaders ​
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 aiIngestionError (string, required) - a string representing the AI ingester error. Can be an entire stacktrace if needed.
SAMPLE REQUEST curl --location --request PUT 'http://localhost:8080/nextinteract-webapp/rest/smartlib/smartentry/15/ai-ingestion-failure'
--header 'x-api-key: sam_test_ai_ingester_AYN6Mhr6iJroG48Welye3FaXtZaAN4KXLPRuFQrcCoNQrRrML5DEUP6CQDmsa9GmTPffqOp4r4NydJxBns9XkZiLnvuPrJzYRs7MQjqiRG'
--header 'Content-Type: application/json'
--data '{ "smartlibId" : 1, "cId" : 3, "aiIngestionError" : "Specific AI Igester error details to go here. Can be a stacktrace if necessary" }'
Response ​
200 OK ​
No payload, just HTTP 200 OK.
Errors ​
| Exception | Description |
|---|---|
InvalidParameterException | See Error Definitions |
SmartEntryNotFoundException | See Error Definitions |
SmartLibraryServiceException | See Error Definitions |
InsufficientPrivilegesException | See Error Definitions |