Accounts & Keys
Take a permission away
Remove one grant.
DELETE/grantsself-hosted · access token · manage_members
Self-hosted. Served by synpath serve on your own machine or host, which must be running; the engine and its order types live there. Nothing on this page runs on Synpath's servers.
Request body
| Name | Type | Description |
|---|---|---|
user_id | string | |
account | string | |
permission | string |
Response
{"ok": true}.
import os
import httpx
TOKEN = os.environ["SYNPATH_ACCESS_TOKEN"]
r = httpx.delete("http://127.0.0.1:8000/trading/grants", headers={"Authorization": f"Bearer {TOKEN}"}, json={"user_id":"u_alice","account":"polymarket:desk-a","permission":"trade"})
r.raise_for_status()
print(r.json())200
{
"ok": true
}
