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

# Update a Context

`PUT /v1/contexts/{id}`

## Path parameters

- `id` string, required

## Response `200`

The request has succeeded.

- object
  - `id` string, required
  - `uploadUrl` string, required — An upload URL to upload a custom user-data-directory.
  - `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.net/browserbase/apis/browserbase-api.md) · [All operations](https://skmtc.net/browserbase/apis/browserbase-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/browserbase/browserbase-api/versions/832b22144edf/schema)
