Example #1
0
 /**
  * @url PUT /:cal_uid
  *
  * @param string $cal_uid      {@min 32}{@max 32}
  * @param array  $request_data
  */
 public function doPut($cal_uid, $request_data)
 {
     try {
         $calendar = new \ProcessMaker\BusinessModel\Calendar();
         $calendar->setFormatFieldNameInUppercase($this->formatFieldNameInUppercase);
         $arrayData = $calendar->update($cal_uid, $request_data);
     } catch (\Exception $e) {
         throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());
     }
 }