---
title: "Patch a User"
method: PATCH
path: "/v1/user/{id}"
---

# Patch a User

`PATCH /v1/user/{id}`

## Request

- Base URL: `https://api.servetel.in`
- URL: `https://api.servetel.in/v1/user/{id}`
- Auth: none required

This API allows you to update/Block/Unblock an existing User.

## Path parameters

- `id` string, required

## Headers

- `authorization` string, required

## Request body

- object
  - `name` string
  - `number` string
  - `email` string
  - `caller_id` string[]
  - `agent_group` string[]
  - `block_agent` boolean
  - `international_outbound` boolean
  - `designation` string
  - `login_id` string
  - `user_role` string
  - `password` string
  - `block_web_login` boolean
  - `user_for_cdr` object
    - `type` string: Values - "all" for all agents, "none" for no selection, "agent" for agent selection, "agent_group" for agent group
    - `value` string[]: Pass agent or agent group IDs
  - `login_based_calling` boolean

## Response `200`

200

- object

## Other responses

- `400`: 400

---

[API](https://skmtc.dev/servetel/apis/servetel-base-api-config.md) - [All operations](https://skmtc.dev/servetel/apis/servetel-base-api-config/llms.txt) - [OpenAPI document](https://skmtc.dev/servetel/apis/servetel-base-api-config/revisions/d1cb31356d25?raw)
