---
title: "Update Agent Binding"
method: PATCH
path: "/api/v1/agents/{agent_id}/bindings/{binding_id}"
tags: ["agents"]
---

# Update Agent Binding

`PATCH /api/v1/agents/{agent_id}/bindings/{binding_id}`

## Request

- Base URL: `https://memory.kagura-ai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://memory.kagura-ai.com/api/v1/agents/{agent_id}/bindings/{binding_id}`
- Auth: none declared

Partially update a binding (owner/admin only).

## Path parameters

- `agent_id` string, uuid, required
- `binding_id` string, uuid, required

## Headers

- `authorization` string, nullable

## Request body

- BindingUpdate: Partial binding update (``context_id`` is immutable — recreate to re-target).
  - `can_read` boolean, nullable
  - `write_policy` 'deny' | 'direct', nullable
  - `is_default` boolean, nullable
  - `allowed_memory_types` string[], nullable: Per-memory type filter (#1299): null = all types, [] = deny-all
  - `allowed_source_types` string[], nullable: Per-memory source filter (#1299): null = all sources, [] = deny-all

## Response `200`

Successful Response

- BindingResponse: Response model for one binding row.
  - `id` unknown, required
  - `agent_id` unknown, required
  - `context_id` unknown, required
  - `can_read` unknown, required
  - `write_policy` unknown, required
  - `is_default` unknown, required
  - `allowed_memory_types` unknown
  - `allowed_source_types` unknown
  - `created_by` unknown, required
  - `created_at` unknown, required
  - `updated_at` unknown, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud.md) · [All operations](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud/llms.txt) · [OpenAPI document](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud/revisions/aa9df1a21db9?raw)
