300-435 · Question #7
Which HTTP request is valid to create a new wireless network called "Demo Wireless Network" in the organization "QASD-EROA-MKAW"?
The correct answer is A. POST /organizations/QASD-EROA-MKAW/networks Host: https://api.meraki.com/api/v0 { "name": "Demo Wireless Network", "organizationId": "QASD-EROA-MKAW", "type": "wireless" }. To create a new wireless network in Meraki, a POST request must target the correct organization's networks endpoint and include the network's name and type in the request body.
Question
Options
- APOST /organizations/QASD-EROA-MKAW/networks Host: https://api.meraki.com/api/v0 { "name": "Demo Wireless Network", "organizationId": "QASD-EROA-MKAW", "type": "wireless" }
- BPOST /organizations/networks Host: https://api.meraki.com/api/v0 { "name": "Demo Wireless Network", "organizationId": "QASD-EROA-MKAW", "type": "combined" }
- CPOST /organizations/networks Host: https://api.meraki.com/api/v0 { "name": "Demo Wireless Network", "organizationId": "QASD-EROA-MKAW", "type": "wireless" }
- DPOST /organizations/QASD-EROA-MKAW/networks Host: https://api.meraki.com/api/v0 { "name": "Demo Wireless Network", "type": "combined" }
How the community answered
(29 responses)- A79% (23)
- B10% (3)
- C3% (1)
- D7% (2)
Why each option
To create a new wireless network in Meraki, a POST request must target the correct organization's networks endpoint and include the network's name and type in the request body.
This option correctly uses the POST method to create a resource, specifies the organization ID in the URI `/organizations/QASD-EROA-MKAW/networks`, and provides the mandatory `name` and `type` (specifically "wireless" as requested) in the request body.
The URI `/organizations/networks` is missing the specific `organizationId`, making it an invalid endpoint for creating a network within a particular organization. Also, the `type` is "combined" instead of "wireless" as requested.
Similar to B, the URI `/organizations/networks` is missing the specific `organizationId`, which is necessary to target the correct organization.
While the URI correctly includes the organization ID, the `type` is specified as "combined" instead of the requested "wireless", which would create an incorrect network type.
Concept tested: Cisco Meraki API network creation request format
Source: https://developer.cisco.com/meraki/api-v1/#!create-organization-network
Topics
Community Discussion
No community discussion yet for this question.