/**
  * Update the specified ProfileProperty in storage.
  * PUT/PATCH /profileProperties/{id}
  *
  * @param  int              $id
  * @param Request $request
  *
  * @return Response
  */
 public function update($id, Request $request)
 {
     $input = $request->all();
     /** @var ProfileProperty $profileProperty */
     $profileProperty = $this->profilePropertyRepository->apiFindOrFail($id);
     $result = $this->profilePropertyRepository->update($input, $id);
     $profileProperty = $profileProperty->fresh();
     return $this->sendResponse($profileProperty->toArray(), "ProfileProperty updated successfully");
 }