---
title: "Update a Context"
method: PUT
path: "/v1/contexts/{id}"
deprecated: true
---

# Update a Context

`PUT /v1/contexts/{id}`

> **Deprecated.**

## Path parameters

- `id` string, required

## Response `200`

The request has succeeded.

- object
  - `id` string, required
  - `uploadUrl` string, required — Deprecated. Browserbase no longer supports context uploads via the API; this field always contains a non-functional sentinel URL and remains only for backwards compatibility.
  - `publicKey` string, required — The public key to encrypt the user-data-directory.
  - `cipherAlgorithm` string, required — The cipher algorithm used to encrypt the user-data-directory. AES-256-CBC is currently the only supported algorithm.
  - `initializationVectorSize` integer, required — The initialization vector size used to encrypt the user-data-directory. [Read more about how to use it](/features/contexts).

---

[API](https://skmtc.dev/browserbase/apis/browserbase-api.md) · [All operations](https://skmtc.dev/browserbase/apis/browserbase-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/browserbase/browserbase-api/revisions/550634919db9/schema)
