{ "opencollection": "1.0.0", "info": { "name": "Samsung SmartThings Apps Locations API", "version": "1.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" }, "docs": "List Locations" }, { "info": { "name": "Create a Location", "type": "http" }, "http": { "method": "POST", "url": "https://api.smartthings.com/v1/locations", "body": { "type": "json", "data": "{}" } }, "docs": "Create a Location" }, { "info": { "name": "Get a Location", "type": "http" }, "http": { "method": "GET", "url": "https://api.smartthings.com/v1/locations/:locationId", "params": [ { "name": "locationId", "value": "", "type": "path", "description": "The identifier of the location." } ] }, "docs": "Get a Location" }, { "info": { "name": "Update a Location", "type": "http" }, "http": { "method": "PUT", "url": "https://api.smartthings.com/v1/locations/:locationId", "params": [ { "name": "locationId", "value": "", "type": "path", "description": "The identifier of the location." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Update a Location" }, { "info": { "name": "Patch a Location", "type": "http" }, "http": { "method": "PATCH", "url": "https://api.smartthings.com/v1/locations/:locationId", "params": [ { "name": "locationId", "value": "", "type": "path", "description": "The identifier of the location." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Patch a Location" }, { "info": { "name": "Delete a Location", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.smartthings.com/v1/locations/:locationId", "params": [ { "name": "locationId", "value": "", "type": "path", "description": "The identifier of the location." } ] }, "docs": "Delete a Location" }, { "info": { "name": "Get the Modes of a Location", "type": "http" }, "http": { "method": "GET", "url": "https://api.smartthings.com/v1/locations/:locationId/modes", "params": [ { "name": "locationId", "value": "", "type": "path", "description": "The identifier of the location." } ] }, "docs": "Get the Modes of a Location" }, { "info": { "name": "Create a Mode", "type": "http" }, "http": { "method": "POST", "url": "https://api.smartthings.com/v1/locations/:locationId/modes", "params": [ { "name": "locationId", "value": "", "type": "path", "description": "The identifier of the location." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Create a Mode" }, { "info": { "name": "Get a Location's Current Mode", "type": "http" }, "http": { "method": "GET", "url": "https://api.smartthings.com/v1/locations/:locationId/modes/current", "params": [ { "name": "locationId", "value": "", "type": "path", "description": "The identifier of the location." } ] }, "docs": "Get a Location's Current Mode" }, { "info": { "name": "Change a Location's Current Mode", "type": "http" }, "http": { "method": "PUT", "url": "https://api.smartthings.com/v1/locations/:locationId/modes/current", "params": [ { "name": "locationId", "value": "", "type": "path", "description": "The identifier of the location." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Change a Location's Current Mode" } ] } ], "bundled": true }