---
title: "Update Context"
method: PUT
path: "/api/v1/contexts/{context_id}"
tags: ["contexts"]
---

# Update Context

`PUT /api/v1/contexts/{context_id}`

## Path parameters

- `context_id` string, uuid, required

## Request body

- ContextUpdateRequest — Request schema for context update.
  - `metadata` object, nullable — Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.

## Response `200`

Successful Response

- AdkServerApiSchemaCommonEntityModelClassGetitemLocalsModelOutput14
  - `id` string, uuid, required
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `last_active_at` string, date-time
  - `created_by` string, uuid, required
  - `provider_id` string, uuid, nullable
  - `metadata` object, nullable — Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/kagenti/apis/adk-server.md) · [All operations](https://skmtc.net/kagenti/apis/adk-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kagenti/adk-server/revisions/9c0d1a763cc6/schema)
