---
title: "Update connection delegation"
method: PATCH
path: "/v1/platform/connected-apps/{connectionId}"
tags: ["Platform"]
---

# Update connection delegation

`PATCH /v1/platform/connected-apps/{connectionId}`

## Request

- Base URL: `https://api.1claw.co`
- URL: `https://api.1claw.co/v1/platform/connected-apps/{connectionId}`
- Auth: HTTP bearer

Toggle delegation and update delegation scopes for a connected platform app. User-only.

## Path parameters

- `connectionId` string, uuid, required

## Request body

- object
  - `delegation_enabled` boolean
  - `delegation_scopes` string[]: Scopes: vaults:read, vaults:write, agents:read, agents:write, secrets:read, secrets:write, automations:*, runtimes:*

## Response `200`

Delegation settings updated

- object
  - `connection_id` string, uuid
  - `delegation_enabled` boolean
  - `delegation_scopes` string[]

## Other responses

- `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/ae109b496830?raw)
