---
title: "Get the projects of a Gradle build."
method: GET
path: "/api/builds/{id}/gradle-projects"
tags: ["Builds", "GradleEnterprise", "Develocity"]
---

# Get the projects of a Gradle build.

`GET /api/builds/{id}/gradle-projects`

## Request

- Base URL: `https://develocity.example.com`
- URL: `https://develocity.example.com/api/builds/{id}/gradle-projects`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/develocity/apis/develocity-api/docs/api/builds/:id/gradle-projects/get.ts> (a function with typed inputs; its response is checked against the schema)

This model is Gradle specific and cannot be requested for another build tool.

## Response `200`

The projects of a Gradle build.

- GradleProject[]: List of Gradle projects including structural relationships.
  - `name` string, required: The name of the project.
  - `path` string, required: The path of the project.
  - `parent` integer, nullable: The index of the parent of this Gradle project in the GradleProjects array. `null` if this project has no parent (i.e. root project of a build).

## Other responses

- `400`: The request cannot be fulfilled due to a problem.
- `404`: The referenced resource either does not exist or the permissions to know about it are missing.
- `500`: The server encountered an unexpected error.
- `503`: The server is not ready to handle the request.

---

[API](https://skmtc.dev/develocity/apis/develocity-api.md) - [All operations](https://skmtc.dev/develocity/apis/develocity-api/llms.txt) - [OpenAPI document](https://skmtc.dev/develocity/apis/develocity-api/revisions/b49835fbf065?raw)
