code: @PATCH
      @Path("/{iOSID}")
      @Consumes(MediaType.APPLICATION_JSON)
      @Produces(MediaType.APPLICATION_JSON)
      public Response updateiOSVariant(
              @PathParam("pushAppID") String pushApplicationId,
              @PathParam("iOSID") String iOSID,
              iOSVariant updatediOSVariant) {
  
          iOSVariant iOSVariant = (iOSVariant)variantService.findByVariantID(iOSID);
  
          if (iOSVariant != null) {
  
              // apply update:
              iOSVariant.setName(updatediOSVariant.getName());
              iOSVariant.setDescription(updatediOSVariant.getDescription());
              iOSVariant.setProduction(updatediOSVariant.isProduction());
              logger.trace("Updating text details on iOS Variant '{}'", iOSID);
  
              variantService.updateVariant(iOSVariant);
              return Response.noContent().build();
          }
          return Response.status(Status.NOT_FOUND).entity("Could not find requested Variant").build();
      }
docs: Update iOS Variant
  
  @param pushApplicationId id of {@link PushApplication}
  @param iOSID             id of {@link iOSVariant}
  @param updatediOSVariant updated version of {@link iOSVariant}
  @return                  updated {@link iOSVariant}
  
  @statuscode 204 The iOS Variant updated successfully
  @statuscode 404 The requested Variant resource does not exist