---
title: "Upload a cache artifact"
method: PUT
path: "/v8/artifacts/{hash}"
tags: ["artifacts"]
---

# Upload a cache artifact

`PUT /v8/artifacts/{hash}`

Uploads a cache artifact identified by the `hash` specified on the path. The cache artifact can then be downloaded with the provided `hash`.

## Path parameters

- `hash` string, required — The artifact hash

## Query parameters

- `teamId` string
- `slug` string

## Headers

- `'content-Length'` number — The artifact size in bytes
- `'x-Artifact-Duration'` number — The time taken to generate the uploaded artifact in milliseconds.
- `'x-Artifact-Client-Ci'` string — The continuous integration or delivery environment where this artifact was generated.
- `'x-Artifact-Client-Interactive'` integer — 1 if the client is an interactive shell. Otherwise 0
- `'x-Artifact-Tag'` string — The base64 encoded tag for this artifact. The value is sent back to clients when the artifact is downloaded as the header `x-artifact-tag`
- `'x-Artifact-Sha'` string — The SHA of the source control revision that generated this artifact.
- `'x-Artifact-Dirty-Hash'` string — A hash representing uncommitted changes in the working directory when this artifact was generated.

## Response `202`

File successfully uploaded

- object
  - `urls` string[], required — Array of URLs where the artifact was updated

## Other responses

- `400` — One of the provided values in the request query is invalid. One of the provided values in the headers is invalid File size is not valid
- `401` — The request is not authorized.
- `402` — The account is missing a payment so payment method must be updated
- `403` — The customer has reached their spend cap limit and has been paused. An owner can disable the cap or raise the limit in settings. The Remote Caching usage limit has been reached for this account for this billing cycle. Remote Caching has been disabled for this team or user. An owner can enable it in the billing settings. You do not have permission to access this resource.
- `410`

---

[API](https://skmtc.net/vercel/apis/api.md) · [All operations](https://skmtc.net/vercel/apis/api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vercel/api/versions/61d1ba3f6dac/schema)
