createOrUpdateInstallerSites

PUT https://{{host}}/api/v1/installer/orgs/:org_id/sites/:site_name

Often the Installers are asked to assign Devices to Sites. The Sites can either be pre-created or created/modified by the Installer. If this is an update, the same grace period also applies.

Request Body

{"timezone"=>"America/Los_Angeles", "country_code"=>"US", "latlng"=>{"lat"=>37.295833, "lng"=>-122.032946}, "address"=>"1601 S. Deanza Blvd., Cupertino, CA, 95014", "rftemplate_name"=>"rftemplate1", "sitegroup_names"=>["sg1", "sg2"]}

HEADERS

KeyDatatypeRequiredDescription
Acceptstring
X-CSRFTokenstring
Content-Typestring

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},"address":"1601 S. Deanza Blvd., Cupertino, CA, 95014"}]