{ "opencollection": "1.0.0", "info": { "name": "Mist Admins Sites Psks API", "version": "2604.1.1" }, "request": { "auth": { "type": "apikey", "key": "Authorization", "value": "{{Authorization}}", "placement": "header" } }, "items": [ { "info": { "name": "Sites Psks", "type": "folder" }, "items": [ { "info": { "name": "listSitePsks", "type": "http" }, "http": { "method": "GET", "url": "https://api.mist.com/api/v1/sites/:site_id/psks", "params": [ { "name": "site_id", "value": "", "type": "path" }, { "name": "ssid", "value": "", "type": "query" }, { "name": "role", "value": "", "type": "query" }, { "name": "name", "value": "", "type": "query" }, { "name": "limit", "value": "", "type": "query" }, { "name": "page", "value": "", "type": "query" } ] }, "docs": "Get List of Site PSKs" }, { "info": { "name": "createSitePsk", "type": "http" }, "http": { "method": "POST", "url": "https://api.mist.com/api/v1/sites/:site_id/psks", "params": [ { "name": "site_id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Create Site PSK\n\n\nWhen `usage`==`macs`, corresponding \"macs\" field will hold a list consisting of client mac addresses ([\"xx:xx:xx:xx:xx\",...]) or mac patterns([\"xx:xx:*\",\"xx*\",...]) or both ([\"xx:xx:xx:xx:xx:xx\", \"xx:*\", ...]). This list is capped at 5000" }, { "info": { "name": "updateSiteMultiplePsks", "type": "http" }, "http": { "method": "PUT", "url": "https://api.mist.com/api/v1/sites/:site_id/psks", "params": [ { "name": "site_id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Update multiple PSKs" }, { "info": { "name": "importSitePsks", "type": "http" }, "http": { "method": "POST", "url": "https://api.mist.com/api/v1/sites/:site_id/psks/import", "params": [ { "name": "site_id", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Import PSK from CSV file or JSON\n\n## CSV File Format\n```csv\nPSK Import CSV File Format:\nname,ssid,passphrase,usage,vlan_id,mac\nCommon,warehouse,foryoureyesonly,single,35,a31425f31278\nJustin,reception,visible,multi,1002\n```" }, { "info": { "name": "getSitePsk", "type": "http" }, "http": { "method": "GET", "url": "https://api.mist.com/api/v1/sites/:site_id/psks/:psk_id", "params": [ { "name": "site_id", "value": "", "type": "path" }, { "name": "psk_id", "value": "", "type": "path", "description": "PSK ID" } ] }, "docs": "Get Site PSK Details" }, { "info": { "name": "updateSitePsk", "type": "http" }, "http": { "method": "PUT", "url": "https://api.mist.com/api/v1/sites/:site_id/psks/:psk_id", "params": [ { "name": "site_id", "value": "", "type": "path" }, { "name": "psk_id", "value": "", "type": "path", "description": "PSK ID" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Update Site PSK" }, { "info": { "name": "deleteSitePsk", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.mist.com/api/v1/sites/:site_id/psks/:psk_id", "params": [ { "name": "site_id", "value": "", "type": "path" }, { "name": "psk_id", "value": "", "type": "path", "description": "PSK ID" } ] }, "docs": "Delete Site PSK" } ] } ], "bundled": true }