Question 1
IntermediateJuniper Mist Automation Strategies · Describe the concepts or functionalities of using REST APIs with Juniper Mist
You are developing a Python script to automate the creation of new sites across multiple organizations using the Juniper Mist API. You are using the requests library. Which HTTP method and API endpoint structure is required to create a new site within a specific organization?
Answer and explanation
Correct answer: D
To create a new resource (a site) under a parent resource (an organization), the RESTful standard requires the POST method sent to the collection endpoint of the parent. The correct endpoint is /api/v1/orgs/{org_id}/sites.
