To add tasks from a second generation App Engine standard runtime, any of the App Engine flexible runtimes, or even from entirely outside of App Engine, you should now use Cloud Tasks API beta (v2). An older version, called the App Engine Task Queue REST API (v1), was turned down as of February 20, 2018. See the Feature Deprecations page for more information.
Cloud Tasks API
The docs in this section describe using the App Engine SDK to access the Task service from a first generation App Engine standard runtime.