Skip to main content
PUT
/
settings
/
team
/
{userId}
Update Team Member
curl --request PUT \
  --url https://staging-api.puppetvendors.com/settings/team/{userId} \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "email": "<string>",
  "password": "<string>",
  "profile": {},
  "profile.firstName": "<string>",
  "profile.lastName": "<string>",
  "profile.phone": "<string>",
  "apiPermissions": [
    "<string>"
  ]
}
'

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.

V2 Preview — This endpoint is part of the V2 API preview. Breaking changes may occur.

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

userId
string
required
The team member’s user ID.

Request Body

email
string
Updated email address. Must be a valid email format.
password
string
New password. Minimum 6 characters, maximum 100 characters.
profile
object
Profile information.
profile.firstName
string
First name. Maximum 100 characters.
profile.lastName
string
Last name. Maximum 100 characters.
profile.phone
string
Phone number. Maximum 50 characters.
apiPermissions
string[]
Updated array of permission strings. Replaces the existing permissions entirely.

Response

200
{
  "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

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"]
  }'