{
  "opencollection": "1.0.0",
  "info": {
    "name": "Samsung SmartThings Apps Locations API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Locations",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Locations",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.smartthings.com/v1/locations",
            "params": [
              {
                "name": "pageToken",
                "value": "",
                "type": "query",
                "description": "Pagination cursor."
              }
            ]
          },
          "docs": "Returns all SmartThings locations accessible to the authenticated user."
        },
        {
          "info": {
            "name": "Create Location",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.smartthings.com/v1/locations",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new SmartThings location."
        },
        {
          "info": {
            "name": "Get Location",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.smartthings.com/v1/locations/:locationId",
            "params": [
              {
                "name": "locationId",
                "value": "",
                "type": "path",
                "description": "Unique location identifier (UUID)."
              }
            ]
          },
          "docs": "Returns details for a specific SmartThings location."
        },
        {
          "info": {
            "name": "Update Location",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.smartthings.com/v1/locations/:locationId",
            "params": [
              {
                "name": "locationId",
                "value": "",
                "type": "path",
                "description": "Unique location identifier (UUID)."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates a SmartThings location's properties."
        },
        {
          "info": {
            "name": "Delete Location",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.smartthings.com/v1/locations/:locationId",
            "params": [
              {
                "name": "locationId",
                "value": "",
                "type": "path",
                "description": "Unique location identifier (UUID)."
              }
            ]
          },
          "docs": "Deletes a SmartThings location and all associated devices and automations."
        },
        {
          "info": {
            "name": "List Rooms",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.smartthings.com/v1/locations/:locationId/rooms",
            "params": [
              {
                "name": "locationId",
                "value": "",
                "type": "path",
                "description": "Unique location identifier (UUID)."
              }
            ]
          },
          "docs": "Returns all rooms within a SmartThings location."
        },
        {
          "info": {
            "name": "Create Room",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.smartthings.com/v1/locations/:locationId/rooms",
            "params": [
              {
                "name": "locationId",
                "value": "",
                "type": "path",
                "description": "Unique location identifier (UUID)."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new room within a SmartThings location."
        }
      ]
    }
  ],
  "bundled": true
}