blog.brookie.atprotify.unregisterPush
Stop sending push notifications for an account to a device. Other accounts on the same device are unaffected. Send a service-auth token bound to this method, or no token and the account's did: knowing the device token is proof enough to take it off the relay, so an app can still unregister an account whose session has expired.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | atprotify.brookie.blog |
| Commit rev | 3n2pszsnv2f25 |
| Indexed |
Checks
Validunlimited-stringdefs.main.input.schema.properties.appIdNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.input.schema.properties.platformNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Stop sending push notifications for an account to a device. Other accounts on the same device are unaffected. Send a service-auth token bound to this method, or no token and the account's did: knowing the device token is proof enough to take it off the relay, so an app can still unregister an account whose session has expired.",
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"appId": {
"type": "string"
},
"did": {
"description": "The account to remove, when calling without a service-auth token.",
"format": "did",
"type": "string"
},
"platform": {
"type": "string"
},
"token": {
"maxLength": 4096,
"type": "string"
}
},
"required": [
"platform",
"token"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {},
"type": "object"
}
},
"type": "procedure"
}
},
"id": "blog.brookie.atprotify.unregisterPush",
"lexicon": 1
}