createOrgTemplate

POST https://{{host}}/api/v1/orgs/:org_id/templates

Body Parameters

ParameterTypeDescription
namestringname of the template
appliesobjectwhere this template should be applied to, can be orgid, siteids, sitegroup_ids
exceptionsobjectwhere this template should not be applied to (takes precedence)
org_idstringorg id, should be the same as the org, this shadows sitegroupids and siteids
sitegroup_idslistlist of sitegroup ids
site_idslistlist of site ids
filterbydeviceprofilebooleanwhether to further filter by Device Profile
deviceprofile_idslistlist of Device Profile ids

Request Body

{"name"=>"west", "applies"=>{"org_id"=>"2818e386-8dec-2562-9ede-5b8a0fbbdc71", "sitegroup_ids"=>["581328b6-e382-f54e-c9dc-999983183a34", "f57096b9-0c2f-4df6-c77b-ae6ae87a3d43"], "site_ids"=>["4ac1dcf4-9d8b-7211-65c4-057819f0862b"]}, "exceptions"=>{"sitegroup_ids"=>["90badd2e-c028-5e8e-dd8f-b3c718882b9d"], "site_ids"=>["52f4347e-3e4b-186c-21ca-ad5b70eb23d6"]}, "filter_by_deviceprofile"=>true, "deviceprofile_ids"=>["6f4bf402-45f9-2a56-6c8b-7f83d3bc98e9"]}

HEADERS

KeyDatatypeRequiredDescription
Acceptstring
X-CSRFTokenstring
Content-Typestring