Update API usage for CKAN 2