createOrgTemplate
POST https://{{host}}/api/v1/orgs/:org_id/templates
Body Parameters
Parameter | Type | Description |
---|
name | string | name of the template |
applies | object | where this template should be applied to, can be orgid, siteids, sitegroup_ids |
exceptions | object | where this template should not be applied to (takes precedence) |
org_id | string | org id, should be the same as the org, this shadows sitegroupids and siteids |
sitegroup_ids | list | list of sitegroup ids |
site_ids | list | list of site ids |
filterbydeviceprofile | boolean | whether to further filter by Device Profile |
deviceprofile_ids | list | list 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"]}
Key | Datatype | Required | Description |
---|
Accept | string | | |
X-CSRFToken | string | | |
Content-Type | string | | |