---
title: "Update a build cache file"
method: PATCH
path: "/projects/{project_id}/build_cache_files/{id}"
tags: ["Build Cache Files"]
---

# Update a build cache file

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

## Request

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

Updates the path of an existing build cache file entry.

## Path parameters

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

## Request body

- BuildCacheFileObject
  - `build_cache_file` object, required
    - `path` string, required

## Response `200`

Success

- BuildCacheFile
  - `id` integer
  - `project_id` integer, nullable
  - `identifier` string
  - `path` string
  - `created_at` string
  - `updated_at` string
  - `parent_type` string
  - `parent_id` integer

## 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`: The server could not process the request due to semantic errors. Please check your input and try again.
- `500`: Internal Server Error

---

[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)
