---
title: "Update language version"
method: PATCH
path: "/projects/{project_id}/build_languages/{id}"
tags: ["Language Versions"]
---

# Update language version

`PATCH /projects/{project_id}/build_languages/{id}`

## Request

- Base URL: `https://sg.deployhq.com`
- URL: `https://sg.deployhq.com/projects/{project_id}/build_languages/{id}`
- Auth: HTTP basic

Sets the version of a specific language or runtime package for the project's build environment. Optionally targets a specific build configuration override.

## Path parameters

- `project_id` string, required
- `id` string, required

## Query parameters

- `override_build_configuration_id` string

## Request body

- BuildEnvironmentObject2
  - `build_environment` object, required
    - `version` string, required

## Response `200`

Success

- BuildEnvironment
  - `identifier` string
  - `packages` object
    - `ruby` string
    - `php` string
    - `composer` string
    - `java` string
    - `dotnet` string
    - `go` string
    - `python2` string
    - `python3` string
    - `node` string
    - `phantomjs` string
  - `default` boolean
  - `servers` unknown[]
    - unknown

## Other responses

- `401`: You are not authorized to access this resource. You need to authenticate yourself first.
- `403`: You are not allowed to access this resource. You do not have the necessary permissions.
- `404`: The requested resource could not be found.
- `422`: Unprocessable Entity
- `500`: An unexpected error occurred on the server. The server was unable to process the request.

---

[API](https://skmtc.dev/deployhq/apis/deployhq-api-interactive-documentation.md) · [All operations](https://skmtc.dev/deployhq/apis/deployhq-api-interactive-documentation/llms.txt) · [OpenAPI document](https://skmtc.dev/deployhq/apis/deployhq-api-interactive-documentation/revisions/830264ae58be?raw)
