Revoke User Grant via ReST - Oauth App

Attempting to revoke the user’s token and permission grant via GitHub ReST API call. The goal is equivalent to the manual revoke functionality on the GH site (under settings|applications|Authorized OAuth Apps|…|‘Revoke’ menu item); example below:

The following [python] code results in an error:

import json, os, requests

CLIENT_ID = os.environ["GITHUB_CLIENT_ID"]
CLIENT_SECRET = os.environ["GITHUB_CLIENT_SECRET"]

# user-specific access_code granted via OAuth dance:
USER_ACCESS_TOKEN = "gho_lXtp0JAqFWkeX0XQXuXKXVXzxt6RA00cUw00" 

data = {"access_token": USER_ACCESS_TOKEN}
url = f"https://api.github.com/applications/{CLIENT_ID}/grant"
headers = {"Accept": "application/vnd.github.v3+json"}
auth = (CLIENT_ID, CLIENT_SECRET)
resp = requests.delete(url, headers=headers, data=json.dumps(data), auth=auth)

The above call results in a 404, with the following JSON response:

{"message": "Not Found", "documentation_url": "https://docs.github.com/rest/reference/apps#delete-an-app-authorization"}.

It’s not quite clear what is failing here. Any advice here?