{
  "opencollection": "1.0.0",
  "info": {
    "name": "Samsung SmartThings Apps Subscriptions API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Subscriptions",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Subscriptions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.smartthings.com/v1/subscriptions",
            "params": [
              {
                "name": "installedAppId",
                "value": "",
                "type": "query",
                "description": "Filter subscriptions by installed app ID."
              }
            ]
          },
          "docs": "Returns all event subscriptions for the authenticated app."
        },
        {
          "info": {
            "name": "Create Subscription",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.smartthings.com/v1/subscriptions",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates an event subscription to receive device capability events, location mode changes, or scene lifecycle events for a SmartApp."
        },
        {
          "info": {
            "name": "Delete Subscription",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.smartthings.com/v1/subscriptions/:subscriptionId",
            "params": [
              {
                "name": "subscriptionId",
                "value": "",
                "type": "path",
                "description": "Subscription ID."
              }
            ]
          },
          "docs": "Removes an event subscription."
        }
      ]
    }
  ],
  "bundled": true
}