UsersUpdate User
Users

PUT /users/{userId}

Update an existing user's information

curl -X PUT "https://api.example.com/v2/users/123" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "name": "John Updated",
  "email": "john.updated@example.com",
  "role": "admin"
}'
{
  "id": 123,
  "name": "John Doe",
  "email": "john@example.com",
  "role": "user",
  "created_at": "2024-01-15T10:00:00Z",
  "last_active": "2024-12-25T15:30:00Z"
}
PUT
/users/{userId}
PUT
Security Scheme
X-API-Keystring
Required

API key for authentication. Get your API key from the dashboard.

API key for authentication. Get your API key from the dashboard.
path
userIdinteger
Required

Unique identifier for the user

Content-Typestring
Required

The media type of the request body

Options: application/json
emailstring
Format: email
rolestring
Options: admin, user, viewer
Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-API-Keystring
Required

API Key for authentication. API key for authentication. Get your API key from the dashboard.

Path Parameters

userIdinteger
Required

Unique identifier for the user

Responses

idinteger
Required
namestring
Required
emailstring
Required
rolestring
Required
created_atstring
Required
last_activestring