The documentation page for `sys.sp_invoke_external_rest_endpoint shows that it is available only in Azure SQL Database. Furthermore, the feature is in preview.
New features are usually released to Azure SQL Database first, followed by other SQL Server platforms as appropriate. Although this system stored proc may be visible on other platforms, it has not yet been implemented (at least currently).