> ## Documentation Index
> Fetch the complete documentation index at: https://dev.puppetvendors.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Team Member

> Update an existing team member's details or permissions

<Note>
  **V2 Preview** — This endpoint is part of the V2 API preview. Breaking changes may occur.
</Note>

## Overview

Update an existing team member's profile, password, or permissions. All fields are optional -- only provided fields are updated.

### Use Cases

* Update a team member's permissions as their role changes
* Reset a team member's password
* Correct profile information

## Path Parameters

<ParamField path="userId" type="string" required>
  The team member's user ID.
</ParamField>

## Request Body

<ParamField body="email" type="string">
  Updated email address. Must be a valid email format.
</ParamField>

<ParamField body="password" type="string">
  New password. Minimum 6 characters, maximum 100 characters.
</ParamField>

<ParamField body="profile" type="object">
  Profile information.
</ParamField>

<ParamField body="profile.firstName" type="string">
  First name. Maximum 100 characters.
</ParamField>

<ParamField body="profile.lastName" type="string">
  Last name. Maximum 100 characters.
</ParamField>

<ParamField body="profile.phone" type="string">
  Phone number. Maximum 50 characters.
</ParamField>

<ParamField body="apiPermissions" type="string[]">
  Updated array of permission strings. Replaces the existing permissions entirely.
</ParamField>

## Response

```json 200 theme={null}
{
  "success": true,
  "data": {
    "_id": "665a1b2e3d98f0001a2b3c81",
    "email": "bob@example.com",
    "profile": {
      "firstName": "Bob",
      "lastName": "Smith",
      "phone": "+15125559876"
    },
    "apiPermissions": [
      "orders:read",
      "orders:write",
      "fulfillments:write"
    ],
    "updatedAt": "2026-05-19T14:00:00.000Z"
  }
}
```

## Example

```bash theme={null}
curl -X PUT "https://staging-api.puppetvendors.com/settings/team/665a1b2e3d98f0001a2b3c81" \
  -H "x-access-token: YOUR_VENDOR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "apiPermissions": ["orders:read", "orders:write", "fulfillments:write"]
  }'
```
