createOrgSite
POST https://{{host}}/api/v1/orgs/:org_id/sites
Body Parameters
Name | Type | Description |
---|---|---|
name | string | Required. The name of the site |
notes | string | optional, any notes about the site |
timezone | string | Timezone the site is at |
country_code | string | country code for the site (for AP config generation), in two-character |
latlng | latlng | site location |
address | string | full address of the site |
lat | float | latitude |
lng | float | longitude |
sitegroup_ids | list | sitegroups this site belongs to |
rftemplate_id | string | RF Template ID, this takes precedence over Site Settings |
apporttemplate_id | string | APPort Template ID |
secpolicy_id | string | SecPolicy ID |
alarmtemplate_id | string | Alarm Template ID, this takes precedence over the Org-level alarmtemplate_id |
networktemplate_id | string | Network Template ID where site can use as its base Site Setting |
gatewaytemplate_id | string | Gateway Template ID, used by gateways |
aptemplate_id | string | AP Template ID, used by APs |
sitetemplate_id | string | Site Template ID |
Request Body
{"name"=>"Mist Office", "timezone"=>"America/Los_Angeles", "country_code"=>"US", "rftemplate_id"=>"bb8a9017-1e36-5d6c-6f2b-551abe8a76a2", "secpolicy_id"=>"3bcd0beb-5d0a-4cbd-92c1-14aea91e98ef", "alarmtemplate_id"=>"684dfc5c-fe77-2290-eb1d-ef3d677fe168", "gatewaytemplate_id"=>"6f9b2e75-9b2f-b5ae-81e3-e14c76f1a90f", "aptemplate_id"=>"16bdf952-ade2-4491-80b0-85ce506c760b", "sitetemplate_id"=>"155fb365-05c6-4d54-925f-1ac14244a95e", "latlng"=>{"lat"=>37.295833, "lng"=>-122.032946}, "sitegroup_ids"=>["581328b6-e382-f54e-c9dc-999983183a34", "f57096b9-0c2f-4df6-c77b-ae6ae87a3d43"], "address"=>"1601 S. Deanza Blvd., Cupertino, CA, 95014"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string | ||
X-CSRFToken | string | ||
Content-Type | string |
RESPONSES
status: OK
{"id":"4ac1dcf4-9d8b-7211-65c4-057819f0862b","name":"Mist Office","timezone":"America/Los_Angeles","country_code":"US","latlng":{"lat":37.295833,"lng":-122.032946},"sitegroup_ids":["581328b6-e382-f54e-c9dc-999983183a34","f57096b9-0c2f-4df6-c77b-ae6ae87a3d43"],"address":"1601 S. Deanza Blvd., Cupertino, CA, 95014"}