▸ IndieLogs operation reference

notification-preferences.update

Input validation and access metadata generated from the shared operation registry.

Access: Bearer token required. Additional scope: account:write. MCP allowed: op_notification_preferences_update.

Input JSON Schema

This schema is generated from the canonical Zod input schema in the shared contract package, not copied into the docs source. JSON Schema describes representable structure; runtime refinements and transforms remain enforced by the canonical parser and may not be fully represented here.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "in_app": {
      "type": "boolean"
    },
    "email_digest": {
      "type": "boolean"
    },
    "product_updates": {
      "type": "boolean"
    },
    "kinds": {
      "type": "object",
      "properties": {
        "draft_held": {
          "type": "object",
          "properties": {
            "in_app": {
              "type": "boolean"
            },
            "email": {
              "type": "boolean"
            }
          }
        },
        "press_soon": {
          "type": "object",
          "properties": {
            "in_app": {
              "type": "boolean"
            },
            "email": {
              "type": "boolean"
            }
          }
        },
        "published": {
          "type": "object",
          "properties": {
            "in_app": {
              "type": "boolean"
            },
            "email": {
              "type": "boolean"
            }
          }
        },
        "weekly_edition_sent": {
          "type": "object",
          "properties": {
            "in_app": {
              "type": "boolean"
            },
            "email": {
              "type": "boolean"
            }
          }
        },
        "new_follower": {
          "type": "object",
          "properties": {
            "in_app": {
              "type": "boolean"
            },
            "email": {
              "type": "boolean"
            }
          }
        },
        "cheers_digest": {
          "type": "object",
          "properties": {
            "in_app": {
              "type": "boolean"
            },
            "email": {
              "type": "boolean"
            }
          }
        },
        "payment_failed": {
          "type": "object",
          "properties": {
            "in_app": {
              "type": "boolean"
            },
            "email": {
              "type": "boolean"
            }
          }
        },
        "update_reply": {
          "type": "object",
          "properties": {
            "in_app": {
              "type": "boolean"
            },
            "email": {
              "type": "boolean"
            }
          }
        }
      }
    }
  }
}

HTTP and CLI

POST the versioned operation envelope to /api/v2/execute. Replace the placeholder with a valid input object from the schema above; this shape is not a runnable request.

{"version":1,"operation":"notification-preferences.update","input":<input-object matching schema>}

CLI command shape: indielogs call notification-preferences.update '<input-json>'. The placeholder is not a valid sample input.