Use resource.id instead of uuid