Question1Replies65Views SREECHARAN Member since 2011 21 posts Cognizant Technologies Solutions US Posted: January 16, 2020Last activity: January 16, 2020 PegaAPI Agent StopHello All,We are trying to stop agent using API ... but getting below exception any suggestions would be a great help.Msg received while stopping Agent:[an error occurred while processing this directive][an error occurred while processing this directive]You don't have permission to access the requested directory.There is either no index document or the directory is read-protected.[an error occurred while processing this directive] Pega Platform System Administration ×Close popoverFacebookTwitterLinkedinEmail Copy Link Copied! Posted: 10 months agoHarish_GCS PEGA replied to SREECHARANHi SreeCharan, Are you trying to stop an agent which is in running status? What do you mean by API ? Like an activity ? If yes, Explore Engine API's from help and look at PublicAPI methods. getAgentUtils() provides developers with facilities to query, start, and stop agent processing through an activity. Access AgentUtils methods through PublicAPI interface. AgentUtils interface has this method to stop agent terminateQueue public boolean terminateQueue(java.lang.String aRuleSetName) Terminate all currently enabled queues for the specified agent. If a queue is already disabled, it will be ignored. Parameters: aRuleSetName - The name of the agent (key to the Rule-Agent-Queue record) to modify. Returns: boolean Returns true if the Agent was found, false if the Agent was not found.