---
title: "Update client app"
method: PATCH
path: "/workspaces/{workspace_id}/clientapps/{client_key}"
tags: ["Client Apps"]
---

# Update client app

`PATCH /workspaces/{workspace_id}/clientapps/{client_key}`

## Request

- Base URL: `https://app.mammoth.io/api/v2`
- URL: `https://app.mammoth.io/api/v2/workspaces/{workspace_id}/clientapps/{client_key}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-KEY` and API key in header `X-API-SECRET` and API key in header `X-WORKSPACE-ID`

Update client app details like name, description, secret etc

## Path parameters

- `workspace_id` integer, required: Workspace refers to a collection of projects. Workspace ID is unique identifier for workspace.
- `client_key` string, required: Id of the client key to work with

## Request body

- PatchRequest: Details of the app to be created
  - `patch` PatchOperation[], required
    - `op` 'replace', required: Operation
    - `path` 'app_name' | 'description' | 'project_id', required: Path
    - `value` union, required: Value to replace the attribute with
      - string
      - string[]

## Response `200`

Successful patch

- ClientAppSchema
  - `description` string, nullable: Description of client app or api tokens
  - `workspace_id` integer, nullable: Workspace ID of client app or api tokens
  - `user_id` integer, nullable: User ID of client app or api tokens
  - `last_usage` string, date-time, nullable: Last usage of client app or api tokens
  - `created_at` string, date-time, nullable: Creation time of client app or api tokens. Null for apps created before this was recorded.
  - `id` integer, required: ID of client app or api tokens
  - `app_name` string, required: Name of client app or api tokens
  - `app_key` string, required: App key of client app or api tokens

## Other responses

- `400`: Bad Request
- `401`: Authorization error
- `403`: Request forbidden -- authorization will not help

---

[API](https://skmtc.dev/mammoth/apis/mammoth-analytics.md) · [All operations](https://skmtc.dev/mammoth/apis/mammoth-analytics/llms.txt) · [OpenAPI document](https://skmtc.dev/mammoth/apis/mammoth-analytics/revisions/5dfd1c296ded?raw)
