Is 'type' validated on the api?