300-435 Question 310
Single answerYou are automating the creation of a new network in a Cisco Meraki organization using the Meraki Dashboard API. The network should be configured for wireless use only. Which API request and parameters should you use to achieve this?
- A
POST /networks with 'type' set to 'wireless' and 'organizationId' specified
- B
POST /organizations/{organizationId}/networks with 'type' set to 'wireless'
- C
PUT /networks/{networkId} with 'type' set to 'wireless' and 'organizationId' specified
- D
POST /organizations/{organizationId}/networks with 'type' set to 'combined'
Show answer and explanation
Correct answer: B
Explanation
To create a new network using Cisco Meraki API, you must use the endpoint POST /organizations/{organizationId}/networks and include the required parameters in the request body, such as 'type', 'name', and other relevant details. In this scenario, the 'type' must be set to 'wireless' to configure the network for wireless use only. The other options are either incorrect in their endpoint, method, or type parameter.
- A. Incorrect.
This option incorrectly specifies the endpoint as /networks and includes 'organizationId' in the body, which is not valid. The correct endpoint for creating a network is under an organization, and 'organizationId' is part of the URL path, not the body.
- B. Correct.
This is the correct option. To create a network in a specific organization using the Meraki API, you use the endpoint POST /organizations/{organizationId}/networks and specify the 'type' as 'wireless' in the request body.
- C. Incorrect.
This option uses the wrong HTTP method (PUT) and assumes modification of an existing network rather than creating a new one. The 'organizationId' is also incorrectly included.
- D. Incorrect.
This option uses the correct endpoint but specifies 'type' as 'combined', which is not suitable for creating a wireless-only network.