---
title: "Get composer build updates for an environment"
method: GET
path: "/v0/sites/{site_id}/environments/{env_id}/build/updates"
tags: ["sites"]
---

# Get composer build updates for an environment

`GET /v0/sites/{site_id}/environments/{env_id}/build/updates`

## Request

- Base URL: `https://api.pantheon.io`
- URL: `https://api.pantheon.io/v0/sites/{site_id}/environments/{env_id}/build/updates`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/pantheon/apis/pantheon-public-api-service/docs/v0/sites/:site_id/environments/:env_id/build/updates/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the list of composer dependencies that have been added, updated, or removed.

## Path parameters

- `site_id` string, required
- `env_id` string, required

## Response `200`

- BuildUpdates: BuildUpdates represents composer dependency updates for an environment
  - `added_dependencies` string[], required: Dependencies that have been added
  - `removed_dependencies` string[], required: Dependencies that have been removed
  - `updated_dependencies` string[], required: Dependencies that have been updated

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `500`: Internal Server Error
- `503`: Service Unavailable

---

[API](https://skmtc.dev/pantheon/apis/pantheon-public-api-service.md) - [All operations](https://skmtc.dev/pantheon/apis/pantheon-public-api-service/llms.txt) - [OpenAPI document](https://skmtc.dev/pantheon/apis/pantheon-public-api-service/revisions/5d158d59f4c3?raw)
