POST /oauth/downgrade

Required authentication: Application
Supported formats: json

Downgrades the scope of the OAuth grant identified by the submitted grant_id.

If the scope of the grant is read_write, it will change to read. If the scope was already read, the grant object is returned unchanged (read is the lowest permission scope).

Downgraded grants cannot be upgraded later, this change is permanent.

This method is designed to allow your application to proactively relinquish rights to a user’s account if you no longer need read_write scope.

Parameter Type Atn Details
grant_id UUID The grant_id for the OAuth grant to downgrade.

Example Requests

Downgrade an OAuth grant

Content-Type: application/json
Authorization: Bearer cs-ExampleSecret

  "grant_id": "84bb97aa-79e9-4d8b-b837-b9f0bec2a8b0"
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8

  "object": "oauth_grant",
  "grant_id": "84bb97aa-79e9-4d8b-b837-b9f0bec2a8b0",
  "created_at": "2018-01-16T06:38:58-05:00",
  "scope": "read",
  "revoked": false,
  "account": {
    "object": "scryfall_account",
    "id": "504c70ba-5bd8-4d6f-823e-e6691e8b3c89",
    "username": "amoeboi",
    "display_name": "Amoeboid Changeling",
    "twitter": "wizards_magic",
    "full_featured": true,
    "verified": false