Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi,
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.
The naked GET request is:
The parameter that I am trying to use is:
searchCriteria.queryTimeRangeType |
I tried the following syntax and it didnt work.
GET https://dev.azure.com/{organization}/{project}/_apis/git/repositories/{repositoryId}/pullrequests?searchCriteria.queryTimeRangeType=1/08/2024&1/10/2024?api-version=7.1-preview.1
Here is a link to the API documentation - https://learn.microsoft.com/en-us/rest/api/azure/devops/git/pull-requests/get-pull-requests?view=azu...
This was what is listed as the description to that parameter:
searchCriteria.queryTimeRangeType | query | The type of time range which should be used for minTime and maxTime. Defaults to Created if unset. |
Anyone know what the syntax should be here?
Any help is appreciated thanks!
Solved! Go to Solution.
Hi @shun888 ,
Please update the codes as below and check if it can return the expected result...
GET https://dev.azure.com/{organization}/{project}/_apis/git/repositories/{repositoryId}/pullrequests?minTime=2024-08-01T00:00:00Z&maxTime=2024-10-01T00:00:00Z&api-version=7.1-preview.1
Best Regards
Hi @shun888 ,
Please update the codes as below and check if it can return the expected result...
GET https://dev.azure.com/{organization}/{project}/_apis/git/repositories/{repositoryId}/pullrequests?minTime=2024-08-01T00:00:00Z&maxTime=2024-10-01T00:00:00Z&api-version=7.1-preview.1
Best Regards
That worked thanks for the help!
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 8 | |
| 8 | |
| 4 | |
| 3 | |
| 2 |