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

POST https://api.scryfall.com/oauth/downgrade
Host: api.scryfall.com
Content-Type: application/json
Authorization: Bearer cs-ExampleSecret

{
  "grant_id": "06efa03a-88e9-401d-80b4-d4edfa8583b7"
}
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8

{
  "object": "oauth_grant",
  "grant_id": "06efa03a-88e9-401d-80b4-d4edfa8583b7",
  "created_at": "2018-06-23T19:19:48-04:00",
  "scope": "read",
  "revoked": false,
  "account": {
    "object": "scryfall_account",
    "id": "58b9b341-1b63-4fb8-82de-dce0508e9c88",
    "username": "amoeboi",
    "display_name": "Amoeboid Changeling",
    "twitter": "wizards_magic",
    "full_featured": true,
    "verified": false
  }
}