---
title: "Patch Context Metadata"
method: PATCH
path: "/api/v1/contexts/{context_id}/metadata"
tags: ["contexts"]
---

# Patch Context Metadata

`PATCH /api/v1/contexts/{context_id}/metadata`

## Path parameters

- `context_id` string, uuid, required

## Request body

- ContextPatchMetadataRequest — Request schema for patching context metadata.
  - `metadata` object, required — Metadata update, will add or overwrite existing keys, None will delete the key from metadata.

## Response `200`

Successful Response

- AdkServerApiSchemaCommonEntityModelClassGetitemLocalsModelOutput15
  - `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)
