FIREANIME API
Browse API97 operations
POST

UpdatePreferences

UpdatePreferences changes comment and release attention preferences.

/api.v1.notification.NotificationService/UpdatePreferences Bearer required
01

Request

UpdateNotificationPreferencesRequest

UpdateNotificationPreferencesRequestapi.v1.notification.UpdateNotificationPreferencesRequest1 fields

Update Notification Preferences Request message.

Request JSON
{
  "data": {
    "directReplies": false,
    "mentions": false,
    "releaseNotifications": false,
    "quietHoursStart": "string",
    "quietHoursEnd": "string"
  }
}
02

Response

UpdateNotificationPreferencesResponse

UpdateNotificationPreferencesResponseapi.v1.notification.UpdateNotificationPreferencesResponse1 fields

Update Notification Preferences Response message.

Example response
{
  "data": {
    "directReplies": false,
    "mentions": false,
    "releaseNotifications": false,
    "quietHoursStart": "string value",
    "quietHoursEnd": "string value"
  }
}
03

Referenced models

1 nested message types

NotificationPreferencesapi.v1.notification.NotificationPreferences5 fields

Notification Preferences message.

directReplies
bool

Direct Replies value.

mentions
bool

Mentions value.

releaseNotifications
bool

Release Notifications value.

quietHoursStart
string

Quiet Hours Start value.

quietHoursEnd
string

Quiet Hours End value.

04

Error handling

Common failure codes

unauthenticatedThe Bearer token is missing or invalid.

invalid_argumentThe request payload failed validation.

internalThe service could not complete the operation.