Learn

Revoke course access

After a refund, remove a buyer's enrollment in the given courses.

Removes the buyer's enrollment in each listed course, plus any grants still waiting on an unaccepted invite. Their community membership is kept. Needs a write API key. Returns status: "revoked", or "no_access" when there was nothing to remove.

DELETE/v1/learn/access

Authorization

bearerAuth
AuthorizationBearer <token>

API token issued from the dashboard (Settings → API Tokens). Sent as Authorization: Bearer <token>.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json