Update User

Update an existing user

PATCHhttps://api.jamdesk.com/api/v1/users/:id

Updates specific fields of an existing user.

Path Parameters

idstringrequired

The user ID.

Request Body

displayNamestring

New display name.

emailstring

New email address.

curl -X PATCH "https://api.example.com/v1/users/user_123" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "displayName": "Jane Smith"
  }'
{
  "data": {
    "id": "user_123",
    "email": "jane@example.com",
    "displayName": "Jane Smith",
    "avatarUrl": "https://cdn.example.com/avatars/jane.png",
    "createdAt": "2024-01-15T10:30:00Z",
    "updatedAt": "2024-01-15T11:45:00Z"
  }
}