---
title: "Update a delegation"
method: PATCH
path: "/v1/agents/{agent_id}/delegations/{delegation_id}"
tags: ["Delegations"]
---

# Update a delegation

`PATCH /v1/agents/{agent_id}/delegations/{delegation_id}`

## Request

- Base URL: `https://api.1claw.co`
- URL: `https://api.1claw.co/v1/agents/{agent_id}/delegations/{delegation_id}`
- Auth: HTTP bearer

Update delegation tools, limits, mode, or active status. Human-only.

## Path parameters

- `agent_id` string, uuid, required
- `delegation_id` string, uuid, required

## Request body

- UpdateDelegationRequest
  - `allowed_tools` string[]
  - `blocked_tools` string[]
  - `max_daily_delegations` integer
  - `max_depth` integer
  - `guardrails` object
  - `delegation_mode` 'caller' | 'target' | 'both'
  - `is_active` boolean
  - `expires_at` string, date-time, nullable

## Response `200`

Delegation updated

- DelegationResponse
  - `id` string, uuid
  - `org_id` string, uuid
  - `delegator_id` string, uuid
  - `delegate_id` string, uuid
  - `delegator_name` string
  - `delegate_name` string
  - `allowed_tools` string[]
  - `blocked_tools` string[]
  - `max_daily_delegations` integer, nullable
  - `max_depth` integer
  - `guardrails` object
  - `delegation_mode` 'caller' | 'target' | 'both'
  - `is_active` boolean
  - `created_by` string, uuid
  - `expires_at` string, date-time, nullable
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `delegations_today` integer: Number of delegations used today (present in effective endpoint).

## Other responses

- `400`: Invalid request
- `403`: Insufficient permissions
- `404`: Resource not found

---

[API](https://skmtc.dev/1claw/apis/1claw-api.md) · [All operations](https://skmtc.dev/1claw/apis/1claw-api/llms.txt) · [OpenAPI document](https://skmtc.dev/1claw/apis/1claw-api/revisions/5fa0918f3b41?raw)
