<?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 Error in Auditlog API with start date parameter in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-Auditlog-API-with-start-date-parameter/m-p/362597#M20615</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am facing issue while verifying Curl Dropbox API in json for audit logs by specifying start time and end time, Kindly help me to solve this issue&lt;/P&gt;
&lt;P&gt;curl -X POST &lt;A href="https://api.dropboxapi.com/2/team_log/get_events" target="_blank" rel="noopener"&gt;https://api.dropboxapi.com/2/team_log/get_events&lt;/A&gt; --header "Authorization: Bearer ABC" --header "Content-Type: application/json" --data "{\"limit\": 50,\"start_date\": 2019-08-25T15:51:30Z,\"end_date\": \"2019-08-30T15:51:30Z\"}"&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ERROR&lt;/STRONG&gt;:&amp;nbsp;Error in call to API function "team_log/get_events": request body: could not decode input as JSON&lt;/P&gt;</description>
    <pubDate>Tue, 10 Sep 2019 10:28:56 GMT</pubDate>
    <dc:creator>umor</dc:creator>
    <dc:date>2019-09-10T10:28:56Z</dc:date>
    <item>
      <title>Error in Auditlog API with start date parameter</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-Auditlog-API-with-start-date-parameter/m-p/362597#M20615</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am facing issue while verifying Curl Dropbox API in json for audit logs by specifying start time and end time, Kindly help me to solve this issue&lt;/P&gt;
&lt;P&gt;curl -X POST &lt;A href="https://api.dropboxapi.com/2/team_log/get_events" target="_blank" rel="noopener"&gt;https://api.dropboxapi.com/2/team_log/get_events&lt;/A&gt; --header "Authorization: Bearer ABC" --header "Content-Type: application/json" --data "{\"limit\": 50,\"start_date\": 2019-08-25T15:51:30Z,\"end_date\": \"2019-08-30T15:51:30Z\"}"&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ERROR&lt;/STRONG&gt;:&amp;nbsp;Error in call to API function "team_log/get_events": request body: could not decode input as JSON&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 10:28:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-Auditlog-API-with-start-date-parameter/m-p/362597#M20615</guid>
      <dc:creator>umor</dc:creator>
      <dc:date>2019-09-10T10:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Auditlog API with start date parameter</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-Auditlog-API-with-start-date-parameter/m-p/362603#M20616</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1202524"&gt;@umor&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;The "start_date"'s value isn't quoted! &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@F55D1311E4D274BF094217A54A6087D3/images/emoticons/1f609.png" alt=":wink:" title=":wink:" /&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;PS: To avoid such errors in future (and easy find out the reason) use some local tool for check (like json_pp for example). &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@F55D1311E4D274BF094217A54A6087D3/images/emoticons/1f609.png" alt=":wink:" title=":wink:" /&gt; Usually much more error details are available in such a way.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 13:25:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-Auditlog-API-with-start-date-parameter/m-p/362603#M20616</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2019-08-30T13:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Auditlog API with start date parameter</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-Auditlog-API-with-start-date-parameter/m-p/362943#M20629</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thanks for your response,&lt;/P&gt;&lt;P&gt;I try this CURL command with the correct syntax but still giving an error "Error in call to API function "team_log/get_events": request body: unknown field 'start_date'"&lt;/P&gt;&lt;P&gt;curl -X POST &lt;A href="https://api.dropboxapi.com/2/team_log/get_events" target="_blank"&gt;https://api.dropboxapi.com/2/team_log/get_events&lt;/A&gt; --header "Authorization: Bearer ABC" --header "Content-Type: application/json" --data "{\"limit\": 50,\"start_date\": 1564617600,\"end_date\": 1567295999}"&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2019 11:08:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-Auditlog-API-with-start-date-parameter/m-p/362943#M20629</guid>
      <dc:creator>umor</dc:creator>
      <dc:date>2019-09-02T11:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Auditlog API with start date parameter</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-Auditlog-API-with-start-date-parameter/m-p/362948#M20630</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1202524"&gt;@umor&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Can you clarify, why you expect that parameters "start_date" and "end_date" are available? As far as I can see in &lt;A href="https://www.dropbox.com/developers/documentation/http/teams#team_log-get_events" target="_self"&gt;documentation&lt;/A&gt; only available are "limit", "account_id", "time" and "category". &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@86FF27E33EE6AE58E01795BD66324A7F/images/emoticons/1f914.png" alt=":thinking:" title=":thinking:" /&gt;&lt;/P&gt;&lt;P&gt;If you want to use "start_date" and "end_date", have to 'catch' them in "time" parameter.&amp;nbsp;(format="%Y-%m-%dT%H:%M:%SZ") &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@F55D1311E4D274BF094217A54A6087D3/images/emoticons/1f609.png" alt=":wink:" title=":wink:" /&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2019 13:45:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-Auditlog-API-with-start-date-parameter/m-p/362948#M20630</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2019-09-02T13:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Auditlog API with start date parameter</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-Auditlog-API-with-start-date-parameter/m-p/363125#M20635</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1202524"&gt;@umor&lt;/a&gt;&amp;nbsp;Здравко is correct, your datetime strings need to be quoted, and nested inside the "time" parameter, per &lt;A href="https://www.dropbox.com/developers/documentation/http/teams#team_log-get_events" target="_self"&gt;the documentation&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I&amp;nbsp;recommend using &lt;A href="https://dropbox.github.io/dropbox-api-v2-explorer/team/#team_log_get_events" target="_self"&gt;the API v2 Explorer&lt;/A&gt; to help prototype these calls. It can build the code for you. (Click "Show Code".)&lt;/P&gt;
&lt;P&gt;In your actual app's code, we&amp;nbsp;recommend using a JSON library to build the JSON for you, as that will be much less error-prone than attempting to write it by hand.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 15:22:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-Auditlog-API-with-start-date-parameter/m-p/363125#M20635</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-09-03T15:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Auditlog API with start date parameter</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-Auditlog-API-with-start-date-parameter/m-p/363352#M20650</link>
      <description>&lt;P&gt;Thanks for your kind response, My problem has been solved. According to document start_date and end_date was nested in time parameters and my format was also wrong in epouch format. Really appreacite your support Sir&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 16:43:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Error-in-Auditlog-API-with-start-date-parameter/m-p/363352#M20650</guid>
      <dc:creator>umor</dc:creator>
      <dc:date>2019-09-04T16:43:04Z</dc:date>
    </item>
  </channel>
</rss>

