API endpoint for creating Cloudflare pages environment variables

I’m wanting to automate the setting of Cloudflare Pages environment variables with a GitHub Action.

Is there an API for setting Cloudflare pages environment variables?