ETExamTower
Q42Using APIs

Drag and drop the code into the snippet to update an SSID in Meraki by using the Dashboard API. Not all options are used. <DragDrop items={["application/json","organization_id","network_id","wireless_password","base_url","api_key","encryptionMode"]} slots={[{"answer":"base_url","id":"url_base"},{"answer":"network_id","id":"url_network"},{"answer":"api_key","id":"header_key"},{"answer":"application/json","id":"content_type"},{"answer":"wireless_password","id":"psk"},{"answer":"encryptionMode","id":"encryption_mode"}]} template={"base_url = \"https://api.meraki.com/api/v0\"\nnetwork_id = \"N_1234567890\"\nrequests.put(\n {{url_base}} + \"/networks/\" + {{url_network}} + \"/ssids/0\",\n headers = {\n \"X-Cisco-Meraki-API-Key\": {{header_key}},\n \"Content-Type\": \"{{content_type}}\"\n },\n data = json.dumps ({\n \"number\": 0,\n \"name\": ssid,\n \"enabled\": True,\n \"authMode\": \"psk\",\n \"psk\": {{psk}},\n \"{{encryption_mode}}\": \"wpa\",\n \"wpaEncryptionMode\": \"WPA2 only\"\n })\n)"} explanation={"The SSID update endpoint is network-scoped and uses the network ID in its path. API-key authentication uses the `X-Cisco-Meraki-API-Key` header, and JSON request payloads use `application/json`. With PSK authentication, `psk` supplies the wireless passkey and `encryptionMode` specifies the PSK encryption mode, such as `wpa`.\n\n**Learn more:** [Update Network Wireless SSID — Meraki Dashboard API v1](https://developer.cisco.com/meraki/api-v1/update-network-wireless-ssid/) · [Meraki Dashboard API v1 Introduction](https://developer.cisco.com/meraki/api-v1/)"} reuse={false} />

← → navigate · a answer
Discussion · 6
28
I agree the answer should be: 1. base_url 2. network_id 3. api_key 4. application/json 5. wireless_password 6. encryptionMode
4
base_url network_id api_key application/json wireless_password encryptionMode
2
agree with the answer
2
It is correct. 1. base_url 2. network_id 3. api_key 4. application/json 5. wireless_password 6. encryptionMode
1
Agree, the answer is correct: 1. base_url 2. network_id 3. api_key 4. application/json 5. wireless_password 6. encryptionMode
1
answer: 1. base_url 2. network_id 3. api_key 4. application\json 5. wireless_password 6. encryptionMode Rationale: 1 and 2 just finish the URL in an order that makes sense 3. api_key fits here 4. this is the only content-type option, and it mathes the format of data shown below in the code 5. password works here 6. encryptionmode works here. Reference: https://developer.cisco.com/meraki/api-v1/update-network-wireless-ssid/