<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.sensaphone.net/index.php?action=history&amp;feed=atom&amp;title=Sensaphone.net_API%2Ftimerange</id>
		<title>Sensaphone.net API/timerange - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.sensaphone.net/index.php?action=history&amp;feed=atom&amp;title=Sensaphone.net_API%2Ftimerange"/>
		<link rel="alternate" type="text/html" href="https://wiki.sensaphone.net/index.php?title=Sensaphone.net_API/timerange&amp;action=history"/>
		<updated>2026-05-06T10:47:24Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://wiki.sensaphone.net/index.php?title=Sensaphone.net_API/timerange&amp;diff=307&amp;oldid=prev</id>
		<title>Mwood: /* Sensaphone.net API */ Update Session data type.</title>
		<link rel="alternate" type="text/html" href="https://wiki.sensaphone.net/index.php?title=Sensaphone.net_API/timerange&amp;diff=307&amp;oldid=prev"/>
				<updated>2025-07-10T15:42:43Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Sensaphone.net API: &lt;/span&gt; Update Session data type.&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 15:42, 10 July 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 43:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 43:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| '''Parent Property'''|'''Child Property''' |'''Type'''&amp;#160; &amp;#160; &amp;#160; &amp;#160; | '''Description'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| '''Parent Property'''|'''Child Property''' |'''Type'''&amp;#160; &amp;#160; &amp;#160; &amp;#160; | '''Description'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| &amp;amp;nbsp;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | acctid&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  | Integer&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | Account ID&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| &amp;amp;nbsp;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | acctid&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  | Integer&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | Account ID&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| &amp;amp;nbsp;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | session&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Integer&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;/del&gt;| Session &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;ID&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| &amp;amp;nbsp;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | session&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;String&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  &lt;/ins&gt;| Session &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Token&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| &amp;amp;nbsp;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | request_type&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  | String&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  | &amp;quot;read&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| &amp;amp;nbsp;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | request_type&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  | String&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  | &amp;quot;read&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| &amp;amp;nbsp;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | ''&amp;lt;parent object(s)&amp;gt;''&amp;#160;  | Array of Objects | The parent(s) of the &amp;quot;timerange&amp;quot; resource, if any. See the [[Sensaphone.net_API#List|'''list''']].&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| &amp;amp;nbsp;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | ''&amp;lt;parent object(s)&amp;gt;''&amp;#160;  | Array of Objects | The parent(s) of the &amp;quot;timerange&amp;quot; resource, if any. See the [[Sensaphone.net_API#List|'''list''']].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 131:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 131:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| '''Parent Property'''|'''Child Property''' |'''Type'''&amp;#160; &amp;#160; &amp;#160; &amp;#160; | '''Description'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| '''Parent Property'''|'''Child Property''' |'''Type'''&amp;#160; &amp;#160; &amp;#160; &amp;#160; | '''Description'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| &amp;amp;nbsp;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | acctid&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  | Integer&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | Account ID&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| &amp;amp;nbsp;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | acctid&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  | Integer&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | Account ID&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| &amp;amp;nbsp;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | session&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Integer&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;/del&gt;| Session &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;ID&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| &amp;amp;nbsp;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | session&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;String&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  &lt;/ins&gt;| Session &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Token&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| &amp;amp;nbsp;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | request_type&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  | String&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  | &amp;quot;update&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| &amp;amp;nbsp;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | request_type&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  | String&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  | &amp;quot;update&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| &amp;amp;nbsp;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | ''&amp;lt;parent object(s)&amp;gt;''&amp;#160;  | Array of Objects | The parent(s) of the &amp;quot;timerange&amp;quot; resource, if any. See the [[Sensaphone.net_API#List|'''list''']].&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| &amp;amp;nbsp;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | ''&amp;lt;parent object(s)&amp;gt;''&amp;#160;  | Array of Objects | The parent(s) of the &amp;quot;timerange&amp;quot; resource, if any. See the [[Sensaphone.net_API#List|'''list''']].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 163:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 163:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| '''Parent Property'''|'''Child Property''' |'''Type'''&amp;#160; &amp;#160; &amp;#160; &amp;#160; | '''Description'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| '''Parent Property'''|'''Child Property''' |'''Type'''&amp;#160; &amp;#160; &amp;#160; &amp;#160; | '''Description'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| &amp;amp;nbsp;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | acctid&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  | Integer&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | Account ID&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| &amp;amp;nbsp;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | acctid&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  | Integer&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | Account ID&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| &amp;amp;nbsp;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | session&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Integer&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;/del&gt;| Session &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;ID&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| &amp;amp;nbsp;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | session&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;String&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  &lt;/ins&gt;| Session &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Token&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| &amp;amp;nbsp;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | request_type&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  | String&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  | &amp;quot;create&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| &amp;amp;nbsp;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | request_type&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  | String&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  | &amp;quot;create&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| &amp;amp;nbsp;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | ''&amp;lt;parent object(s)&amp;gt;''&amp;#160;  | Array of Objects | The parent(s) of the &amp;quot;timerange&amp;quot; resource, if any. See the [[Sensaphone.net_API#List|'''list''']].&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| &amp;amp;nbsp;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | ''&amp;lt;parent object(s)&amp;gt;''&amp;#160;  | Array of Objects | The parent(s) of the &amp;quot;timerange&amp;quot; resource, if any. See the [[Sensaphone.net_API#List|'''list''']].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 195:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 195:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| '''Parent Property'''|'''Child Property''' |'''Type'''&amp;#160; &amp;#160; &amp;#160; &amp;#160; | '''Description'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| '''Parent Property'''|'''Child Property''' |'''Type'''&amp;#160; &amp;#160; &amp;#160; &amp;#160; | '''Description'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| &amp;amp;nbsp;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | acctid&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  | Integer&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | Account ID&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| &amp;amp;nbsp;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | acctid&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  | Integer&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | Account ID&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| &amp;amp;nbsp;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | session&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Integer&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;/del&gt;| Session &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;ID&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| &amp;amp;nbsp;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | session&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;String&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  &lt;/ins&gt;| Session &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Token&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| &amp;amp;nbsp;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | request_type&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  | String&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  | &amp;quot;delete&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| &amp;amp;nbsp;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | request_type&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  | String&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  | &amp;quot;delete&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| &amp;amp;nbsp;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | ''&amp;lt;parent object(s)&amp;gt;''&amp;#160;  | Array of Objects | The parent(s) of the &amp;quot;timerange&amp;quot; resource, if any. See the [[Sensaphone.net_API#List|'''list''']].&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}{{TableRowN| &amp;amp;nbsp;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; | ''&amp;lt;parent object(s)&amp;gt;''&amp;#160;  | Array of Objects | The parent(s) of the &amp;quot;timerange&amp;quot; resource, if any. See the [[Sensaphone.net_API#List|'''list''']].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Mwood</name></author>	</entry>

	<entry>
		<id>https://wiki.sensaphone.net/index.php?title=Sensaphone.net_API/timerange&amp;diff=25&amp;oldid=prev</id>
		<title>Tim: Created page with &quot;=Sensaphone.net API= ==Specifications== The schedule resource has the following properties: {{TableStart|border_size=1 }}{{TableRowN| '''Parent Property'''|'''Property'''...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.sensaphone.net/index.php?title=Sensaphone.net_API/timerange&amp;diff=25&amp;oldid=prev"/>
				<updated>2015-04-29T19:22:58Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;=&lt;a href=&quot;/index.php/Sensaphone.net_API&quot; title=&quot;Sensaphone.net API&quot;&gt;Sensaphone.net API&lt;/a&gt;= ==Specifications== The schedule resource has the following properties: {{TableStart|border_size=1 }}{{TableRowN| &amp;#039;&amp;#039;&amp;#039;Parent Property&amp;#039;&amp;#039;&amp;#039;|&amp;#039;&amp;#039;&amp;#039;Property&amp;#039;&amp;#039;&amp;#039;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=[[Sensaphone.net API]]=&lt;br /&gt;
==Specifications==&lt;br /&gt;
The schedule resource has the following properties:&lt;br /&gt;
{{TableStart|border_size=1&lt;br /&gt;
}}{{TableRowN| '''Parent Property'''|'''Property'''  | '''Type'''       | '''Description'''                 | '''Create''' | '''Delete''' | '''Read''' | '''Update'''&lt;br /&gt;
}}{{TableRowN| ''&amp;lt;parent&amp;gt;''         | timerange      | Array of Objects | The schedule's time ranges        | '''&amp;amp;#x2713;''' | '''&amp;amp;#x2713;''' | '''&amp;amp;#x2713;''' | '''n/a'''&lt;br /&gt;
}}{{TableRowN| timerange            | range_id       | Integer          | ID of the time range.             | ''' ''' | ''' ''' | '''&amp;amp;#x2713;''' | ''' '''&lt;br /&gt;
}}{{TableRowN| timerange            | start          | String           | The start time                    | ''' ''' | ''' ''' | '''&amp;amp;#x2713;''' | '''&amp;amp;#x2713;'''&lt;br /&gt;
}}{{TableRowN| timerange            | end            | String           | The end time                      | ''' ''' | ''' ''' | '''&amp;amp;#x2713;''' | '''&amp;amp;#x2713;'''&lt;br /&gt;
}}{{TableRowN| timerange            | interval       | Integer (Bitmap) | Time interval options (see table) | ''' ''' | ''' ''' | '''&amp;amp;#x2713;''' | '''&amp;amp;#x2713;'''&lt;br /&gt;
}}{{TableEnd}}&lt;br /&gt;
&lt;br /&gt;
The interval is a bitmap containing the following options. &amp;quot;Bit 1&amp;quot; is the low-order bit in the '''interval''' unsigned integer. The default value &amp;quot;Sunday + Monday + Tuesday + Wednesday + Thursday + Friday + Saturday&amp;quot;, matches every day that matches the &amp;quot;start&amp;quot; and &amp;quot;end&amp;quot;.&lt;br /&gt;
{{TableStart|border_size=1&lt;br /&gt;
}}{{TableRowN| '''Bit Position''' | '''Description'''&lt;br /&gt;
}}{{TableRowN| 1                  | Timestamp: Sunday&lt;br /&gt;
}}{{TableRowN| 2                  | Timestamp: Monday&lt;br /&gt;
}}{{TableRowN| 3                  | Timestamp: Tuesday&lt;br /&gt;
}}{{TableRowN| 4                  | Timestamp: Wednesday&lt;br /&gt;
}}{{TableRowN| 5                  | Timestamp: Thursday&lt;br /&gt;
}}{{TableRowN| 6                  | Timestamp: Friday&lt;br /&gt;
}}{{TableRowN| 7                  | Timestamp: Saturday&lt;br /&gt;
}}{{TableRowN| 8                  | Datetime: Is a holiday&lt;br /&gt;
}}{{TableRowN| 9                  | Datetime: Interpret &amp;quot;start&amp;quot; and &amp;quot;end&amp;quot; as a datetime not a timestamp.&lt;br /&gt;
}}{{TableRowN| 10                 | Datetime: Repeat: Daily&lt;br /&gt;
}}{{TableRowN| 11                 | Datetime: Repeat: Weekly&lt;br /&gt;
}}{{TableRowN| 12                 | Datetime: Repeat: Yearly (Day Number)&lt;br /&gt;
}}{{TableRowN| 13                 | Datetime: Repeat: Yearly (Day of Week)&lt;br /&gt;
}}{{TableRowN| 14                 | Invert selection. The timerange represents a time NOT selected.&lt;br /&gt;
}}{{TableRowN| 15                 | Reserved&lt;br /&gt;
}}{{TableEnd}}&lt;br /&gt;
&lt;br /&gt;
===GET===&lt;br /&gt;
'''URI Mode Request URI's:'''&lt;br /&gt;
*Retrieve all information for all of a schedule's timeranges.&lt;br /&gt;
   '''GET''' &amp;lt;nowiki&amp;gt;https://&amp;lt;/nowiki&amp;gt;rest.sensaphone.net/api/v1/{ACCTID}/{SESSIONID}/user/{USER_ID}/contact/{CONTACT_ID}/schedule/{SCHEDULE_ID}/timerange&lt;br /&gt;
&lt;br /&gt;
'''JSON Mode Request URI:'''&lt;br /&gt;
   '''POST''' &amp;lt;nowiki&amp;gt;https://&amp;lt;/nowiki&amp;gt;rest.sensaphone.net/api/v1/user/contact/schedule/timerange&lt;br /&gt;
&lt;br /&gt;
'''JSON Mode Request Properties'''&lt;br /&gt;
{{TableStart|border_size=1&lt;br /&gt;
}}{{TableRowN| '''Parent Property'''|'''Child Property''' |'''Type'''        | '''Description'''&lt;br /&gt;
}}{{TableRowN| &amp;amp;nbsp;          | acctid                   | Integer          | Account ID&lt;br /&gt;
}}{{TableRowN| &amp;amp;nbsp;          | session                  | Integer          | Session ID&lt;br /&gt;
}}{{TableRowN| &amp;amp;nbsp;          | request_type             | String           | &amp;quot;read&amp;quot;&lt;br /&gt;
}}{{TableRowN| &amp;amp;nbsp;          | ''&amp;lt;parent object(s)&amp;gt;''   | Array of Objects | The parent(s) of the &amp;quot;timerange&amp;quot; resource, if any. See the [[Sensaphone.net_API#List|'''list''']].&lt;br /&gt;
}}{{TableRowN| ''&amp;lt;parent&amp;gt;''    | timerange                | Array of Objects | The timerange object&lt;br /&gt;
}}{{TableEnd}}&lt;br /&gt;
&lt;br /&gt;
'''JSON Mode Response Properties'''&lt;br /&gt;
{{TableStart|border_size=1&lt;br /&gt;
}}{{TableRowN| '''Parent Property'''|'''Child Property'''|'''Status'''      | '''Type'''       | '''Description'''&lt;br /&gt;
}}{{TableRowN| &amp;amp;nbsp;          | ''&amp;lt;parent object(s)&amp;gt;''  | Optional         | Array of Objects | The parent(s) specified in the request.&lt;br /&gt;
}}{{TableRowN| ''&amp;lt;parent&amp;gt;''    | timerange               | Required         | Array of Objects | The timerange object&lt;br /&gt;
}}{{TableRowN| timerange       | range_id                | Optional         | Integer          | ID for timerange&lt;br /&gt;
}}{{TableRowN| timerange       | start                   | Optional         | String           | The start time&lt;br /&gt;
}}{{TableRowN| timerange       | end                     | Optional         | String           | The end time&lt;br /&gt;
}}{{TableRowN| timerange       | interval                | Optional         | Integer (Bitmap) | Time interval options (see table)&lt;br /&gt;
}}{{TableEnd}}&lt;br /&gt;
&lt;br /&gt;
====Example JSON====&lt;br /&gt;
Retrieve time range information.&lt;br /&gt;
&lt;br /&gt;
*'''Request JSON'''&lt;br /&gt;
&lt;br /&gt;
   {&lt;br /&gt;
     &amp;quot;acctid&amp;quot;: 987654,&lt;br /&gt;
     &amp;quot;uuid&amp;quot;: &amp;quot;0123-4567-8901&amp;quot;,&lt;br /&gt;
     &amp;quot;request_type&amp;quot;: &amp;quot;read&amp;quot;,&lt;br /&gt;
     &amp;quot;device&amp;quot;:[&lt;br /&gt;
      {&lt;br /&gt;
        &amp;quot;device_id&amp;quot;: 1234,&lt;br /&gt;
        &amp;quot;default_schedule&amp;quot;:[&lt;br /&gt;
         {&lt;br /&gt;
           &amp;quot;schedule_id&amp;quot;:28487,&lt;br /&gt;
           &amp;quot;timerange&amp;quot;: null&lt;br /&gt;
         }&lt;br /&gt;
        ]&lt;br /&gt;
      }&lt;br /&gt;
     ]&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
*'''Response JSON'''&lt;br /&gt;
 {&lt;br /&gt;
   &amp;quot;result&amp;quot;:&lt;br /&gt;
   {&lt;br /&gt;
     &amp;quot;success&amp;quot;: true,&lt;br /&gt;
     &amp;quot;code&amp;quot;: 0,&lt;br /&gt;
     &amp;quot;message&amp;quot;: &amp;quot;OK&amp;quot;&lt;br /&gt;
   },&lt;br /&gt;
   &amp;quot;response&amp;quot;:&lt;br /&gt;
   {&lt;br /&gt;
     &amp;quot;device&amp;quot;:[&lt;br /&gt;
      {&lt;br /&gt;
        &amp;quot;device_id&amp;quot;: 1234,&lt;br /&gt;
        &amp;quot;default_schedule&amp;quot;:[&lt;br /&gt;
         {&lt;br /&gt;
           &amp;quot;schedule_id&amp;quot;:28487,&lt;br /&gt;
           &amp;quot;timerange&amp;quot;:[&lt;br /&gt;
             {&lt;br /&gt;
               &amp;quot;range_id&amp;quot;: 58381&lt;br /&gt;
               &amp;quot;start&amp;quot;: &amp;quot;..TBD..&amp;quot;,&lt;br /&gt;
               &amp;quot;end&amp;quot;: &amp;quot;..TBD..&amp;quot;,&lt;br /&gt;
               &amp;quot;interval&amp;quot;: 127&lt;br /&gt;
             },&lt;br /&gt;
             {&lt;br /&gt;
               &amp;quot;range_id&amp;quot;: 51587&lt;br /&gt;
               &amp;quot;start&amp;quot;: &amp;quot;..TBD..&amp;quot;,&lt;br /&gt;
               &amp;quot;end&amp;quot;: &amp;quot;..TBD..&amp;quot;,&lt;br /&gt;
               &amp;quot;interval&amp;quot;: 7&lt;br /&gt;
             }&lt;br /&gt;
           ]&lt;br /&gt;
         }&lt;br /&gt;
        ]&lt;br /&gt;
      }&lt;br /&gt;
     ]&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
===PUT===&lt;br /&gt;
'''URI Mode Request URI's'''&lt;br /&gt;
*Edit the '''interval''' of a time range&lt;br /&gt;
   '''PUT''' &amp;lt;nowiki&amp;gt;https://&amp;lt;/nowiki&amp;gt;rest.sensaphone.net/api/v1/{ACCTID}/{SESSIONID}/device/{DEVICE_ID}/default_schedule/{SCHEDULE_ID}/timerange/{RANGE_ID}/interval/{INTERVAL}&lt;br /&gt;
&lt;br /&gt;
'''JSON Mode Request URI:'''&lt;br /&gt;
   '''POST''' &amp;lt;nowiki&amp;gt;https://&amp;lt;/nowiki&amp;gt;rest.sensaphone.net/api/v1/device/default_schedule/timerange&lt;br /&gt;
&lt;br /&gt;
'''JSON Mode Request Properties'''&lt;br /&gt;
{{TableStart|border_size=1&lt;br /&gt;
}}{{TableRowN| '''Parent Property'''|'''Child Property''' |'''Type'''        | '''Description'''&lt;br /&gt;
}}{{TableRowN| &amp;amp;nbsp;          | acctid                   | Integer          | Account ID&lt;br /&gt;
}}{{TableRowN| &amp;amp;nbsp;          | session                  | Integer          | Session ID&lt;br /&gt;
}}{{TableRowN| &amp;amp;nbsp;          | request_type             | String           | &amp;quot;update&amp;quot;&lt;br /&gt;
}}{{TableRowN| &amp;amp;nbsp;          | ''&amp;lt;parent object(s)&amp;gt;''   | Array of Objects | The parent(s) of the &amp;quot;timerange&amp;quot; resource, if any. See the [[Sensaphone.net_API#List|'''list''']].&lt;br /&gt;
}}{{TableRowN| ''&amp;lt;parent&amp;gt;''    | timerange                | Array of Objects | The timerange object&lt;br /&gt;
}}{{TableRowN| timerange       | range_id                 | Integer          | ID for time range&lt;br /&gt;
}}{{TableRowN| timerange       | '''''CHILD PROPERTY''''' | &amp;amp;nbsp;           | Child properties to be edited *&lt;br /&gt;
}}{{TableEnd}}&lt;br /&gt;
&amp;lt;nowiki&amp;gt;*&amp;lt;/nowiki&amp;gt; One or more '''timerange''' child properties listed below are required in addition to &amp;quot;range_id&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
'''JSON Mode Response Properties'''&lt;br /&gt;
{{TableStart|border_size=1&lt;br /&gt;
}}{{TableRowN| '''Parent Property'''|'''Child Property'''|'''Status'''      | '''Type'''       | '''Description'''&lt;br /&gt;
}}{{TableRowN| &amp;amp;nbsp;          | ''&amp;lt;parent object(s)&amp;gt;''  | Optional         | Array of Objects | The parent(s) specified in the request.&lt;br /&gt;
}}{{TableRowN| ''&amp;lt;parent&amp;gt;''    | timerange               | Required         | Array of Objects | The timerange object&lt;br /&gt;
}}{{TableRowN| timerange       | range_id                | Optional         | Integer          | ID for timerange&lt;br /&gt;
}}{{TableRowN| timerange       | start                   | Optional         | String           | The start time&lt;br /&gt;
}}{{TableRowN| timerange       | end                     | Optional         | String           | The end time&lt;br /&gt;
}}{{TableRowN| timerange       | interval                | Optional         | Integer (Bitmap) | Time interval options (see table)&lt;br /&gt;
}}{{TableEnd}}&lt;br /&gt;
&lt;br /&gt;
===POST===&lt;br /&gt;
'''URI Mode Request URI's'''&lt;br /&gt;
*Create a new time range with default values.&lt;br /&gt;
   '''POST''' &amp;lt;nowiki&amp;gt;https://&amp;lt;/nowiki&amp;gt;rest.sensaphone.net/api/v1/{ACCTID}/{SESSIONID}/device/{DEVICE_ID}/default_schedule/{SCHEDULE_ID}/timerange&lt;br /&gt;
&lt;br /&gt;
'''JSON Mode Request URI:'''&lt;br /&gt;
   '''POST''' &amp;lt;nowiki&amp;gt;https://&amp;lt;/nowiki&amp;gt;rest.sensaphone.net/api/v1/device/default_schedule/timerange&lt;br /&gt;
&lt;br /&gt;
'''JSON Mode Request Properties'''&lt;br /&gt;
{{TableStart|border_size=1&lt;br /&gt;
}}{{TableRowN| '''Parent Property'''|'''Child Property''' |'''Type'''        | '''Description'''&lt;br /&gt;
}}{{TableRowN| &amp;amp;nbsp;          | acctid                   | Integer          | Account ID&lt;br /&gt;
}}{{TableRowN| &amp;amp;nbsp;          | session                  | Integer          | Session ID&lt;br /&gt;
}}{{TableRowN| &amp;amp;nbsp;          | request_type             | String           | &amp;quot;create&amp;quot;&lt;br /&gt;
}}{{TableRowN| &amp;amp;nbsp;          | ''&amp;lt;parent object(s)&amp;gt;''   | Array of Objects | The parent(s) of the &amp;quot;timerange&amp;quot; resource, if any. See the [[Sensaphone.net_API#List|'''list''']].&lt;br /&gt;
}}{{TableRowN| ''&amp;lt;parent&amp;gt;''    | timerange                | Array of Objects | The timerange object&lt;br /&gt;
}}{{TableRowN| timerange       | '''''CHILD PROPERTY''''' | &amp;amp;nbsp;           | Child properties to be set *&lt;br /&gt;
}}{{TableEnd}}&lt;br /&gt;
&amp;lt;nowiki&amp;gt;*&amp;lt;/nowiki&amp;gt; One or more '''timerange''' child properties below ''may'' be specified in addition to &amp;quot;range_id&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
'''JSON Mode Response Properties'''&lt;br /&gt;
{{TableStart|border_size=1&lt;br /&gt;
}}{{TableRowN| '''Parent Property'''|'''Child Property'''|'''Status'''      | '''Type'''       | '''Description'''&lt;br /&gt;
}}{{TableRowN| &amp;amp;nbsp;          | ''&amp;lt;parent object(s)&amp;gt;''  | Optional         | Array of Objects | The parent(s) specified in the request.&lt;br /&gt;
}}{{TableRowN| ''&amp;lt;parent&amp;gt;''    | timerange               | Required         | Array of Objects | The timerange object&lt;br /&gt;
}}{{TableRowN| timerange       | range_id                | Optional         | Integer          | ID for timerange&lt;br /&gt;
}}{{TableRowN| timerange       | start                   | Optional         | String           | The start time&lt;br /&gt;
}}{{TableRowN| timerange       | end                     | Optional         | String           | The end time&lt;br /&gt;
}}{{TableRowN| timerange       | interval                | Optional         | Integer (Bitmap) | Time interval options (see table)&lt;br /&gt;
}}{{TableEnd}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===DELETE===&lt;br /&gt;
'''URI Mode Request URI's'''&lt;br /&gt;
*Create a new time range with default values.&lt;br /&gt;
   '''DELETE''' &amp;lt;nowiki&amp;gt;https://&amp;lt;/nowiki&amp;gt;rest.sensaphone.net/api/v1/{ACCTID}/{SESSIONID}/device/{DEVICE_ID}/default_schedule/{SCHEDULE_ID}/timerange/{RANGE_ID}&lt;br /&gt;
&lt;br /&gt;
'''JSON Mode Request URI:'''&lt;br /&gt;
   '''POST''' &amp;lt;nowiki&amp;gt;https://&amp;lt;/nowiki&amp;gt;rest.sensaphone.net/api/v1/device/default_schedule/timerange&lt;br /&gt;
&lt;br /&gt;
'''JSON Mode Request Properties'''&lt;br /&gt;
{{TableStart|border_size=1&lt;br /&gt;
}}{{TableRowN| '''Parent Property'''|'''Child Property''' |'''Type'''        | '''Description'''&lt;br /&gt;
}}{{TableRowN| &amp;amp;nbsp;          | acctid                   | Integer          | Account ID&lt;br /&gt;
}}{{TableRowN| &amp;amp;nbsp;          | session                  | Integer          | Session ID&lt;br /&gt;
}}{{TableRowN| &amp;amp;nbsp;          | request_type             | String           | &amp;quot;delete&amp;quot;&lt;br /&gt;
}}{{TableRowN| &amp;amp;nbsp;          | ''&amp;lt;parent object(s)&amp;gt;''   | Array of Objects | The parent(s) of the &amp;quot;timerange&amp;quot; resource, if any. See the [[Sensaphone.net_API#List|'''list''']].&lt;br /&gt;
}}{{TableRowN| ''&amp;lt;parent&amp;gt;''    | timerange                | Array of Objects | The timerange object&lt;br /&gt;
}}{{TableRowN| timerange       | range_id                 | Integer          | ID for time range&lt;br /&gt;
}}{{TableEnd}}&lt;/div&gt;</summary>
		<author><name>Tim</name></author>	</entry>

	</feed>