---
title: "Edit a client"
method: PUT
path: "/api/v1beta1/clients/{client_id}"
tags: ["clients"]
---

# Edit a client

`PUT /api/v1beta1/clients/{client_id}`

## Request body

- ClientEdit
  - `client_secret` string
  - `allowed_scopes` string
  - `allowed_redirect_uris` string[]

## Response `200`

Updated client details

- Client
  - `client_id` string, required
  - `client_secret` string — Required for clients with kind 'confidential'
  - `kind` 'public' | 'confidential', required
  - `allowed_scopes` string, required
  - `allowed_redirect_uris` string[], required

## Other responses

- `401` — Authentication failed
- `404` — A client with the given client ID doesn't exist

---

[API](https://skmtc.net/enseadaio/apis/enseada.md) · [All operations](https://skmtc.net/enseadaio/apis/enseada/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/enseadaio/enseada/revisions/e8c51f6a5e52/schema)
