<?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 Syntax help for ADO API request in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Syntax-help-for-ADO-API-request/m-p/3634024#M48711</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use the following GET command with a creation date range parameter but I am not too sure what the syntax is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The naked GET request is:&lt;/P&gt;&lt;P&gt;GET &lt;A href="https://dev.azure.com/{organization}/{project}/_apis/git/repositories/{repositoryId}/pullrequests?api-version=7.1-preview.1" target="_blank" rel="noopener"&gt;https://dev.azure.com/{organization}/{project}/_apis/git/repositories/{repositoryId}/pullrequests?api-version=7.1-preview.1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The parameter that I am trying to use is:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class=""&gt;searchCriteria.queryTimeRangeType&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the following syntax and it didnt work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;GET &lt;A href="https://dev.azure.com/{organization}/{project}/_apis/git/repositories/{repositoryId}/pullrequests" target="_blank" rel="noopener"&gt;https://dev.azure.com/{organization}/{project}/_apis/git/repositories/{repositoryId}/pullrequests&lt;/A&gt;?&lt;STRONG&gt;searchCriteria.queryTimeRangeType=1/08/2024&amp;amp;1/10/2024&lt;/STRONG&gt;?api-version=7.1-preview.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Here is a link to the API documentation -&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/rest/api/azure/devops/git/pull-requests/get-pull-requests?view=azure-devops-rest-7.1&amp;amp;tabs=HTTP" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/rest/api/azure/devops/git/pull-requests/get-pull-requests?view=azure-devops-rest-7.1&amp;amp;tabs=HTTP&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This was what is listed as the description to that parameter:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class=""&gt;searchCriteria.queryTimeRangeType&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;query&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/azure/devops/git/pull-requests/get-pull-requests?view=azure-devops-rest-7.1&amp;amp;tabs=HTTP#pullrequesttimerangetype" target="_blank" rel="noopener"&gt;PullRequestTimeRangeType&lt;/A&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;The type of time range which should be used for minTime and maxTime. Defaults to Created if unset.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone know what the syntax should be here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jan 2024 18:35:49 GMT</pubDate>
    <dc:creator>shun888</dc:creator>
    <dc:date>2024-01-11T18:35:49Z</dc:date>
    <item>
      <title>Syntax help for ADO API request</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Syntax-help-for-ADO-API-request/m-p/3634024#M48711</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use the following GET command with a creation date range parameter but I am not too sure what the syntax is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The naked GET request is:&lt;/P&gt;&lt;P&gt;GET &lt;A href="https://dev.azure.com/{organization}/{project}/_apis/git/repositories/{repositoryId}/pullrequests?api-version=7.1-preview.1" target="_blank" rel="noopener"&gt;https://dev.azure.com/{organization}/{project}/_apis/git/repositories/{repositoryId}/pullrequests?api-version=7.1-preview.1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The parameter that I am trying to use is:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class=""&gt;searchCriteria.queryTimeRangeType&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the following syntax and it didnt work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;GET &lt;A href="https://dev.azure.com/{organization}/{project}/_apis/git/repositories/{repositoryId}/pullrequests" target="_blank" rel="noopener"&gt;https://dev.azure.com/{organization}/{project}/_apis/git/repositories/{repositoryId}/pullrequests&lt;/A&gt;?&lt;STRONG&gt;searchCriteria.queryTimeRangeType=1/08/2024&amp;amp;1/10/2024&lt;/STRONG&gt;?api-version=7.1-preview.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Here is a link to the API documentation -&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/rest/api/azure/devops/git/pull-requests/get-pull-requests?view=azure-devops-rest-7.1&amp;amp;tabs=HTTP" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/rest/api/azure/devops/git/pull-requests/get-pull-requests?view=azure-devops-rest-7.1&amp;amp;tabs=HTTP&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This was what is listed as the description to that parameter:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class=""&gt;searchCriteria.queryTimeRangeType&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;query&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/azure/devops/git/pull-requests/get-pull-requests?view=azure-devops-rest-7.1&amp;amp;tabs=HTTP#pullrequesttimerangetype" target="_blank" rel="noopener"&gt;PullRequestTimeRangeType&lt;/A&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;The type of time range which should be used for minTime and maxTime. Defaults to Created if unset.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone know what the syntax should be here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 18:35:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Syntax-help-for-ADO-API-request/m-p/3634024#M48711</guid>
      <dc:creator>shun888</dc:creator>
      <dc:date>2024-01-11T18:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax help for ADO API request</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Syntax-help-for-ADO-API-request/m-p/3634845#M48718</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/371773"&gt;@shun888&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please update the codes as below and check if it can return the expected result...&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;GET https://dev.azure.com/{organization}/{project}/_apis/git/repositories/{repositoryId}/pullrequests?minTime=2024-08-01T00:00:00Z&amp;amp;maxTime=2024-10-01T00:00:00Z&amp;amp;api-version=7.1-preview.1&lt;/LI-CODE&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 03:36:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Syntax-help-for-ADO-API-request/m-p/3634845#M48718</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-12T03:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax help for ADO API request</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Syntax-help-for-ADO-API-request/m-p/3644112#M48816</link>
      <description>&lt;P&gt;That worked thanks for the help!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 18:12:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Syntax-help-for-ADO-API-request/m-p/3644112#M48816</guid>
      <dc:creator>shun888</dc:creator>
      <dc:date>2024-01-17T18:12:26Z</dc:date>
    </item>
  </channel>
</rss>

