Skip to content
This repository was archived by the owner on Jul 27, 2023. It is now read-only.

Commit 04afd8e

Browse files
Fixing type in Send From Download in Set Autoupgrade for sites.
1 parent b0569d9 commit 04afd8e

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Postman Collection/Mist_Runner_collection.json.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"info": {
33
"_postman_id": "f8534122-72a7-4d7e-81ca-3b19771a88f3",
4-
"name": "Mist Runner Collections 0.3.0",
4+
"name": "Mist Runner Collections 0.3.1",
55
"description": "This collection will use a CSV Template to create multiple sites via the Mist API.\n\nIt also uses a google API to get the lat/long of the address and use the properly formatted address returned from Google Maps.\n\n\nRequired Environmental Variables:\n\n{{apitoken}} This your Mist dashboard API token. It should have permissions to create sites\n{{google_api_token}} This is a google API token that has access to geocode APIs.\n\n\nCSV Required Values:\nsite_name\nsite_address (Note, must be URL Encoded (replace \" \" with \"+\" and enclosed in quotes)\n\nCSV Optional Values:\nsite_groups\nrf_template_id\n\nExample CSV:\n\nsite_name,site_address,site_groups,rf_template_id\n```\nAdonis,\"5592+S+Adonis+Pl,+Boise,+ID+83716\",xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx,xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\n```",
66
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
77
},
@@ -1636,7 +1636,8 @@
16361636
"}",
16371637
"}",
16381638
"else if (!!pm.iterationData.get(\"id\")) {",
1639-
" pm.collection.set(\"c_site_id\", pm.iterationData.get(\"id\"))",
1639+
" console.info(\"Found ID Field\")",
1640+
" pm.collectionVariables.set(\"c_site_id\", pm.iterationData.get(\"id\"))",
16401641
" nextRequest = \"updateSiteSettings - Firmware\"",
16411642
"};",
16421643
"",
@@ -1676,6 +1677,7 @@
16761677
" pm.collectionVariables.set(\"c_site_name\", pm.iterationData.get(\"site_name\"))",
16771678
" }",
16781679
"}",
1680+
"",
16791681
"console.info(`Site Name = ${pm.collectionVariables.get(\"c_site_name\")}`)"
16801682
],
16811683
"type": "text/javascript"
@@ -1778,7 +1780,7 @@
17781780
],
17791781
"body": {
17801782
"mode": "raw",
1781-
"raw": "{\n \"auto_upgrade\": {\n \"enabled\": true,\n \"version\": \"custom\",\n \"time_of_day\": \"02:00\",\n \"custom_versions\": {\n \"AP43\": \"0.7.20216\",\n \"AP41\": \"0.7.20216\"\n },\n \"day_of_week\": \"sun\"\n }\n}",
1783+
"raw": "{\n \"auto_upgrade\": {\n \"enabled\": true,\n \"version\": \"custom\",\n \"time_of_day\": \"02:00\",\n \"custom_versions\": {\n \"AP43\": \"0.8.21602\",\n \"AP41\": \"0.8.21602\",\n \"AP33\": \"0.8.21602\",\n \"AP12\": \"0.8.21602\"\n },\n \"day_of_week\": \"sun\"\n }\n}",
17821784
"options": {
17831785
"raw": {
17841786
"language": "json"
@@ -4045,6 +4047,10 @@
40454047
{
40464048
"key": "c_clone",
40474049
"value": ""
4050+
},
4051+
{
4052+
"key": "c_site_name",
4053+
"value": ""
40484054
}
40494055
]
40504056
}

0 commit comments

Comments
 (0)