Add a new query option "type" to the rest resource "action"