cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Response for list job runs API request doesn't have next/prev_page_token field

jgrycz
New Contributor III

HI,

When I do GET request to obtain list of job runs using `/api/2.1/jobs/runs/list` there is no `prev_page_token`, `next_page_token` fields in the response despite of having `has_more: True`. 

Screenshot 2023-08-03 at 09.23.13.png

7 REPLIES 7

Kaniz
Community Manager
Community Manager

Hi @jgryczBased on the provided information, the /api/2.1/jobs/runs/list API endpoint returns a list of runs in descending order by start time. It includes a has_more field in the response indicating whether additional runs matching the provided filter are available for listing. However, there is no mention of prev_page_token or next_page_token areas in the response. Therefore, it seems that these fields are not included in the response of this API endpoint.

 Sources: https://docs.databricks.com/workflows/jobs/jobs-2.0-api.html#runs-list

jgrycz
New Contributor III

Thanks for the response @Kaniz !
Oh ok, but I did read this doc: https://docs.databricks.com/api/workspace/jobs/listruns could you confirm that it's correct one?

So are we able to get the rest of the runs?

 

Kaniz
Community Manager
Community Manager

Hi @jgrycz, yes! It is the correct one.

Hubert_Dudek1
Esteemed Contributor III

There is API 2.1 available for jobs and here is better documentation https://docs.databricks.com/api/workspace/jobs/list

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.