<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: DNA Spaces API Examples in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/dna-spaces-api-examples/m-p/4853362#M9017</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The limit query param is available to use on the export API. The value of limit is expected to be between 1 and 50000.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Example:&lt;BR /&gt;https://dnaspaces.io/api/location/v1/history?startTime=&lt;SPAN&gt;1686366023000&lt;/SPAN&gt;&amp;amp;endTime=&lt;SPAN&gt;1686452423000&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;limit=100&lt;BR /&gt;OR&lt;BR /&gt;https://dnaspaces.io/api/location/v1/history?limit=100&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jun 2023 03:02:38 GMT</pubDate>
    <dc:creator>apydakul</dc:creator>
    <dc:date>2023-06-13T03:02:38Z</dc:date>
    <item>
      <title>DNA Spaces API Examples</title>
      <link>https://community.cisco.com/t5/network-platform-api/dna-spaces-api-examples/m-p/4471579#M9013</link>
      <description>&lt;P&gt;I am trying out the DNA Spaces api.&amp;nbsp; The Swagger documentation is good (&lt;A href="https://developer.cisco.com/docs/dna-spaces/#!dna-spaces-location-cloud-api)," target="_blank" rel="noopener nofollow noreferrer"&gt;https://developer.cisco.com/docs/dna-spaces/#!dna-spaces-location-cloud-api),&lt;/A&gt; but I have not figured out how to add parameters, for example:&lt;/P&gt;
&lt;PRE&gt;&lt;A href="https://dnaspaces.io/api/location/v1/history?limit=100" target="_blank" rel="noopener nofollow noreferrer"&gt;https://dnaspaces.io/api/location/v1/history?limit=100&lt;/A&gt;&lt;BR /&gt;or&lt;BR /&gt;https://dnaspaces.io/api/location/v1/history?startTime=2021-09-21T00:00:00Z&amp;amp;endTime=2021-09-22T23:59:59&lt;/PRE&gt;
&lt;P&gt;I would think that this limits the results, but I am getting this every time:&lt;/P&gt;
&lt;PRE&gt;{"code":5000,"message":"There are 764657 records in request time range, more than the limit 50000. Please reduce the time range."}&lt;/PRE&gt;
&lt;P&gt;Can someone provide an example?&amp;nbsp; I also tried putting the parameters in the body but that does not work either.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 21:40:52 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/dna-spaces-api-examples/m-p/4471579#M9013</guid>
      <dc:creator>smoore4moma</dc:creator>
      <dc:date>2024-01-17T21:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: DNA Spaces API Examples</title>
      <link>https://community.cisco.com/t5/network-platform-api/dna-spaces-api-examples/m-p/4471622#M9014</link>
      <description>&lt;P&gt;The time parameters should be by Unix binary time in UTC. For example&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;https://dnaspaces.io/api/location/v1/history?startTime=&lt;SPAN&gt;1632182400000&lt;/SPAN&gt;&amp;amp;endTime=&lt;SPAN&gt;1632229199000&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 20:11:29 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/dna-spaces-api-examples/m-p/4471622#M9014</guid>
      <dc:creator>miczhao</dc:creator>
      <dc:date>2021-09-22T20:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: DNA Spaces API Examples</title>
      <link>https://community.cisco.com/t5/network-platform-api/dna-spaces-api-examples/m-p/4471624#M9015</link>
      <description>&lt;P&gt;Very helpful. Thank you for the response.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 20:13:56 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/dna-spaces-api-examples/m-p/4471624#M9015</guid>
      <dc:creator>smoore4moma</dc:creator>
      <dc:date>2021-09-22T20:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: DNA Spaces API Examples</title>
      <link>https://community.cisco.com/t5/network-platform-api/dna-spaces-api-examples/m-p/4843826#M9016</link>
      <description>&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;
&lt;P&gt;Sorry about the limit param. The usage is right, but this functionality will be available after 2weeks. &lt;BR /&gt;Also I would like to share few info on the API:&lt;BR /&gt;1. The startTime and endTime has to be in Unix epoch-milliseconds as mentioned in miczhao's reply below.&lt;BR /&gt;2. If start and end time are not given, then system will use a default time range of last 24hrs. &lt;BR /&gt;3. If you encounter {"code":5000,"message":"There are 764657 records in request time range, more than the limit 50000. Please reduce the time range."} error, pls give startTime and endTime in the request with lesser time range &lt;BR /&gt;ex: &lt;A href="https://dnaspaces.io/api/location/v1/history?startTime=1685048502000&amp;amp;endTime=1685134903000" target="_blank" rel="noopener"&gt;https://dnaspaces.io/api/location/v1/history?startTime=1685048502000&amp;amp;endTime=1685134903000&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Andal&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 21:12:37 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/dna-spaces-api-examples/m-p/4843826#M9016</guid>
      <dc:creator>apydakul</dc:creator>
      <dc:date>2023-05-26T21:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: DNA Spaces API Examples</title>
      <link>https://community.cisco.com/t5/network-platform-api/dna-spaces-api-examples/m-p/4853362#M9017</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The limit query param is available to use on the export API. The value of limit is expected to be between 1 and 50000.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Example:&lt;BR /&gt;https://dnaspaces.io/api/location/v1/history?startTime=&lt;SPAN&gt;1686366023000&lt;/SPAN&gt;&amp;amp;endTime=&lt;SPAN&gt;1686452423000&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;limit=100&lt;BR /&gt;OR&lt;BR /&gt;https://dnaspaces.io/api/location/v1/history?limit=100&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 03:02:38 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/dna-spaces-api-examples/m-p/4853362#M9017</guid>
      <dc:creator>apydakul</dc:creator>
      <dc:date>2023-06-13T03:02:38Z</dc:date>
    </item>
  </channel>
</rss>

