Seems that there is an error in the documentation for the following Create Access Application API endpoint (Cloudflare API Documentation):
POST zones/:identifier/access/apps/:identifier
Should be:
POST zones/:identifier/access/apps/
The example is also wrong.