{
"id": "app.bivri.actor.putPreferences",
"defs": {
"main": {
"type": "procedure",
"input": {
"schema": {
"type": "object",
"properties": {
"notifications": {
"ref": "app.bivri.actor.defs#notificationPreferences",
"type": "ref"
}
}
},
"encoding": "application/json"
},
"errors": [
{
"name": "AuthRequired",
"description": "Nobody is authenticated, so there are no preferences to replace."
}
],
"output": {
"schema": {
"type": "object",
"required": [
"notifications"
],
"properties": {
"notifications": {
"ref": "app.bivri.actor.defs#notificationPreferences",
"type": "ref"
}
}
},
"encoding": "application/json"
},
"description": "Replace the authenticated account's own preferences. Every group sent is replaced whole and every group omitted is left as it was, so a client that knows about one group cannot silently reset another it has never heard of. Sending the same preferences twice is the same as sending them once. Preferences are the account's alone: nothing here names another account, and nothing here is served to one."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}