To stop the Recommendations Inference service, use the following query:
GET {ServiceName}/Com.Ingr.Srd.V2.StopAIService(ProcessId=273)
The sample query to stop the Recommendations Inference service with process Id 273 is:
GET
https://<appserver with domain>/<virtual_directory>/Srd/V2/Projects('SDB')/Disciplines(5020)/Nls(1)/Com.Ingr.Srd.V2.StopAIService(ProcessId=273)/
The same Web API is used for codelist as well as commodity codes.
Response
Parameter |
Description |
Type |
Notes |
---|---|---|---|
ProcessId |
ID of Inference Service process |
Integer |
|
Status |
Status of the Recommendation Inference service |
String |
If the response body is empty, the ident has not been used in any specification.
Sample response
{
"@odata.context": " https://<appserver with domain>/<virtual_directory>/Srd/V2/$metadata#Com.Ingr.Srd.V2.ProcessStatus",
"ProcessId": 273,
"Status": "Stopped"
}