Search code examples
youtrackyoutrack-api

YouTrack API in request to get list of all projects one project is missing


I use YouTrack API, my employer has 44 projects, when I make a request to the API:

/api/admin/projects?fields=name,shortName 

I get 43 projects, tell me what to check to show 44 projects, Do you have any idea?


Solution

  • For most resources, the server returns a maximum of 42 elements by default. You can use the $top parameter to get an extended set of elements. Adding $top=-1 or $top=44 to your REST API request should help. See: Pagination.