Skip to main content
PUT
/
v1
/
users
/
{userId}
Update User
curl --request PUT \
  --url https://api.puppetvendors.com/v1/users/{userId} \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "email": "<string>",
  "password": "<string>"
}
'

Overview

Updates a vendor portal user’s email address and/or password.

Use Cases

  • Reset a vendor’s password when they are locked out
  • Update email addresses after a vendor team change
  • Rotate credentials as part of a security policy

Path Parameters

userId
string
required
The user’s unique ID.

Request Body

email
string
required
Updated email address.
password
string
required
Updated password. Will be bcrypt-hashed before storage.

Response

200
{
  "message": "User updated successfully.",
  "user": { ... }
}

Example

curl -X PUT "https://api.puppetvendors.com/v1/users/61a2b3c4d5e6f7g8h9i0j1k2" \
  -H "Content-Type: application/json" \
  -H "x-access-token: YOUR_JWT_TOKEN" \
  -d '{
    "email": "new-email@acme.com",
    "password": "newSecurePassword456"
  }'