The answer provided by 'Nthrack' fixed the issue.
Upgrade azapi to 1.15.0.
azapi = { source = "azure/azapi" version = "1.15.0" }
I have tried to award the points 'Nthrack' but can't seem to do this.