I gave it a try and it seems it’s not straightforward to edit Yoast metadata via API.
Looking at their docs it seems that the APIs are read only:
The way you could do it is create your custom WordPress end point where you pass the Yoast fields with the n8n HTTP request node and then change the Yoast medatata fields within WordPress. Make.com provides a custom WordPress plugin and dedicated node that I assume does something like that.