nerdexam
Cisco

350-901 · Question #87

An engineer must enable an SSID in a Meraki network. Which request accomplishes this task?

The correct answer is A. PUT /networks/{networkId}/ssids/{number}, {"enable": true}. To enable an existing Meraki SSID, a PUT request is sent to the specific SSID's API endpoint with a JSON payload containing {"enabled": true}.

Understanding and Using APIs

Question

An engineer must enable an SSID in a Meraki network. Which request accomplishes this task?

Options

  • APUT /networks/{networkId}/ssids/{number}, {"enable": true}
  • BPOST /networks/{networkId}/ssids/{number} {"enable"=true}
  • CPUT /networks/{networkId}/ssids/{number}?enabled=true
  • DPOST /networks/{networkId}/ssids/{number}?enabled=true

How the community answered

(51 responses)
  • A
    92% (47)
  • B
    4% (2)
  • C
    2% (1)
  • D
    2% (1)

Why each option

To enable an existing Meraki SSID, a PUT request is sent to the specific SSID's API endpoint with a JSON payload containing `{"enabled": true}`.

APUT /networks/{networkId}/ssids/{number}, {"enable": true}Correct

The PUT HTTP method is appropriate for updating an existing resource, such as enabling an SSID identified by its network ID and number. The JSON payload `{"enable": true}` correctly specifies the desired state for the `enabled` attribute.

BPOST /networks/{networkId}/ssids/{number} {"enable"=true}

POST is typically used for creating new resources, not for updating existing ones, and the payload syntax `{"enable"=true}` is incorrect JSON.

CPUT /networks/{networkId}/ssids/{number}?enabled=true

While PUT is the correct method, passing the `enabled` parameter as a query string (`?enabled=true`) is not the standard way to send configuration data for a Meraki SSID; configuration changes are sent in the request body as a JSON object.

DPOST /networks/{networkId}/ssids/{number}?enabled=true

POST is incorrect for updating an existing resource, and passing `enabled` as a query parameter is not the standard method for Meraki API configuration updates.

Concept tested: Meraki API for SSID management and HTTP PUT method

Source: https://developer.cisco.com/meraki/api-v1/#!update-network-ssid

Topics

#REST APIs#HTTP Methods#Meraki API#Network Configuration

Community Discussion

No community discussion yet for this question.

Full 350-901 Practice