All
Guides
API
Search
CTRL+K
Introduction
Search

Update a User

put

https://api.example.com/v1/users/{id}


Update an existing user by ID.


PARH PARAMS

integer

ID of the user to update

BODY PARAMS

namestring

Updated full name of the user

emailstring

Updated email address of the user

rolestring

Updated role of the user


PUT /users/1 HTTP/1.1
Host: api.example.com
Authorization: Bearer <your_access_token>
Content-Type: application/json

{
  "name": "John Doe Updated",
  "role": "admin"
}

LANGUAGE
Shell logoShell
Node logoNode
Ruby logoRuby
PHP logoPHP
C logoC
REQUEST
Kapota

AI based Sentiment analysis

English

Developers

Help us improve

How was your experience using our docs?