public function put($processUid, $request_data = null) { $response = array(); try { $process = new \ProcessMaker\BusinessModel\Process(); $userUid = $this->getUserId(); $data = $process->updateProcess($processUid, $userUid, $request_data); //Response $response["success"] = true; $response["message"] = "Process updated successfully"; $response["data"] = $data; } catch (\Exception $e) { throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()); } return $response; }