{
  "opencollection": "1.0.0",
  "info": {
    "name": "Samsung SmartThings Apps Rules API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Rules",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Rules",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.smartthings.com/v1/rules",
            "params": [
              {
                "name": "locationId",
                "value": "",
                "type": "query",
                "description": "Filter rules by location ID."
              },
              {
                "name": "max",
                "value": "",
                "type": "query",
                "description": "Maximum number of rules to return."
              },
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "Pagination offset."
              }
            ]
          },
          "docs": "Returns all automation rules for the authenticated user."
        },
        {
          "info": {
            "name": "Create Rule",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.smartthings.com/v1/rules",
            "params": [
              {
                "name": "locationId",
                "value": "",
                "type": "query",
                "description": "Location ID where the rule will be created."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new SmartThings automation rule with trigger conditions and actions."
        },
        {
          "info": {
            "name": "Get Rule",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.smartthings.com/v1/rules/:ruleId",
            "params": [
              {
                "name": "ruleId",
                "value": "",
                "type": "path",
                "description": "Unique rule identifier."
              },
              {
                "name": "locationId",
                "value": "",
                "type": "query",
                "description": "Location ID of the rule."
              }
            ]
          },
          "docs": "Returns details for a specific automation rule."
        },
        {
          "info": {
            "name": "Update Rule",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.smartthings.com/v1/rules/:ruleId",
            "params": [
              {
                "name": "ruleId",
                "value": "",
                "type": "path",
                "description": "Unique rule identifier."
              },
              {
                "name": "locationId",
                "value": "",
                "type": "query",
                "description": "Location ID of the rule."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates an existing SmartThings automation rule."
        },
        {
          "info": {
            "name": "Delete Rule",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.smartthings.com/v1/rules/:ruleId",
            "params": [
              {
                "name": "ruleId",
                "value": "",
                "type": "path",
                "description": "Unique rule identifier."
              },
              {
                "name": "locationId",
                "value": "",
                "type": "query",
                "description": "Location ID of the rule."
              }
            ]
          },
          "docs": "Deletes a SmartThings automation rule."
        }
      ]
    }
  ],
  "bundled": true
}