---
title: "Update existing client token"
method: PUT
path: "/agent/update-client-token"
tags: ["AGENT PRIVATE ROUTES"]
---

# Update existing client token

`PUT /agent/update-client-token`

This API updates an existing client token’s configuration such as origin, app name, or instrumentation options.

## Request body

- BifrostappInternalEndpointsAgentUpdateRequest
  - `advanceNetworkCapture` boolean
  - `app_name` string
  - `console` boolean
  - `disableNetworkInstrumentation` boolean
  - `disableTracePropagation` boolean
  - `errors` boolean
  - `language` string
  - `longtask` boolean
  - `origin` string[]
  - `recording` boolean
  - `recordingOptions` AgentRecordingOptions
    - `maskAllInputs` boolean
    - `maskInputSelectors` string[]
    - `maskSensitiveInputs` boolean
    - `maskTextClass` string[]
  - `token` string, required
  - `tracePropagationTargets` string[]
  - `vcsCommitSHA` string
  - `vcsRepositoryURL` string
  - `webVitals` boolean
  - `websocket` boolean

## Response `200`

Updated client token details

- AgentUpdateResponse
  - `Success` boolean
  - `data` AgentAgentConfigModels
    - `account_id` integer
    - `created_at` string
    - `created_by` integer
    - `deleted` boolean
    - `id` integer
    - `is_default` boolean
    - `key` string
    - `meta_data` object
    - `project_id` integer
    - `token` string
    - `type` string
    - `updated_at` string
  - `error` string
  - `message` string

## Other responses

- `401` — Unauthorized or invalid token
- `500` — Internal server error

---

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