{
  "lexicon": 1,
  "id": "app.bsky.notification.putActivitySubscription",
  "defs": {
    "main": {
      "type": "procedure",
      "description": "Puts an activity subscription entry. The key should be omitted for creation and provided for updates. Requires auth.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["subject", "activitySubscription"],
          "properties": {
            "subject": { "type": "string", "format": "did" },
            "activitySubscription": {
              "type": "ref",
              "ref": "app.bsky.notification.defs#activitySubscription"
            }
          }
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["subject"],
          "properties": {
            "subject": { "type": "string", "format": "did" },
            "activitySubscription": {
              "type": "ref",
              "ref": "app.bsky.notification.defs#activitySubscription"
            }
          }
        }
      }
    }
  }
}
