def ack(device_uuid, ack_keys)
      validate_device!(device_uuid)
      raise ArgumentError, "ack_keys must not be nil and an array" unless ack_keys && ack_keys.is_a?(Array)
      return true if ack_keys.empty?

      payload = {
        :ack_keys => ack_keys.map(&:to_s)
      }
      status, _, _ = @client.post('/sync/ack', payload, build_headers(device_uuid))
      status == 202
    end
def ack(device_uuid, ack_keys)
      validate_device!(device_uuid)
      raise ArgumentError, "ack_keys must not be nil and an array" unless ack_keys && ack_keys.is_a?(Array)
      return true if ack_keys.empty?

      payload = {
        :ack_keys => ack_keys.map(&:to_s)
      }
      status, _, _ = @client.post('/sync/ack', payload, build_headers(device_uuid))
      status == 202
    end
Acknowledge received data

 post '/sync/ack'

 Send acknowledgement keys to let know the Sync service which data you have.
 As you fetch new data, you need to send acknowledgement keys.

 @param device_uuid [String] Device's UUID for which to perform synchronization.
 @param ack_keys [Array<String>] The list of acknowledgement keys.
 @return [Boolean] Status of the operation.