code: public DeviceTokenEnvelope updateDeviceToken(String deviceId) throws ApiException {
          ApiResponse<DeviceTokenEnvelope> resp = updateDeviceTokenWithHttpInfo(deviceId);
          return resp.getData();
      }
docs: Update Device Token
  Updates a device&#39;s token
  @param deviceId deviceId (required)
  @return DeviceTokenEnvelope
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body