Update Team Member
curl --request PUT \
--url https://production-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>"
]
}
'import requests
url = "https://production-api.puppetvendors.com/settings/team/{userId}"
payload = {
"email": "<string>",
"password": "<string>",
"profile": {},
"profile.firstName": "<string>",
"profile.lastName": "<string>",
"profile.phone": "<string>",
"apiPermissions": ["<string>"]
}
headers = {
"x-access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
email: '<string>',
password: '<string>',
profile: {},
'profile.firstName': '<string>',
'profile.lastName': '<string>',
'profile.phone': '<string>',
apiPermissions: ['<string>']
})
};
fetch('https://production-api.puppetvendors.com/settings/team/{userId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://production-api.puppetvendors.com/settings/team/{userId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'email' => '<string>',
'password' => '<string>',
'profile' => [
],
'profile.firstName' => '<string>',
'profile.lastName' => '<string>',
'profile.phone' => '<string>',
'apiPermissions' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-access-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://production-api.puppetvendors.com/settings/team/{userId}"
payload := strings.NewReader("{\n \"email\": \"<string>\",\n \"password\": \"<string>\",\n \"profile\": {},\n \"profile.firstName\": \"<string>\",\n \"profile.lastName\": \"<string>\",\n \"profile.phone\": \"<string>\",\n \"apiPermissions\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://production-api.puppetvendors.com/settings/team/{userId}")
.header("x-access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"<string>\",\n \"password\": \"<string>\",\n \"profile\": {},\n \"profile.firstName\": \"<string>\",\n \"profile.lastName\": \"<string>\",\n \"profile.phone\": \"<string>\",\n \"apiPermissions\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://production-api.puppetvendors.com/settings/team/{userId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"<string>\",\n \"password\": \"<string>\",\n \"profile\": {},\n \"profile.firstName\": \"<string>\",\n \"profile.lastName\": \"<string>\",\n \"profile.phone\": \"<string>\",\n \"apiPermissions\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_bodyTeam Members
Update Team Member
Update an existing team member’s details or permissions
PUT
/
settings
/
team
/
{userId}
Update Team Member
curl --request PUT \
--url https://production-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>"
]
}
'import requests
url = "https://production-api.puppetvendors.com/settings/team/{userId}"
payload = {
"email": "<string>",
"password": "<string>",
"profile": {},
"profile.firstName": "<string>",
"profile.lastName": "<string>",
"profile.phone": "<string>",
"apiPermissions": ["<string>"]
}
headers = {
"x-access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
email: '<string>',
password: '<string>',
profile: {},
'profile.firstName': '<string>',
'profile.lastName': '<string>',
'profile.phone': '<string>',
apiPermissions: ['<string>']
})
};
fetch('https://production-api.puppetvendors.com/settings/team/{userId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://production-api.puppetvendors.com/settings/team/{userId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'email' => '<string>',
'password' => '<string>',
'profile' => [
],
'profile.firstName' => '<string>',
'profile.lastName' => '<string>',
'profile.phone' => '<string>',
'apiPermissions' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-access-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://production-api.puppetvendors.com/settings/team/{userId}"
payload := strings.NewReader("{\n \"email\": \"<string>\",\n \"password\": \"<string>\",\n \"profile\": {},\n \"profile.firstName\": \"<string>\",\n \"profile.lastName\": \"<string>\",\n \"profile.phone\": \"<string>\",\n \"apiPermissions\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://production-api.puppetvendors.com/settings/team/{userId}")
.header("x-access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"<string>\",\n \"password\": \"<string>\",\n \"profile\": {},\n \"profile.firstName\": \"<string>\",\n \"profile.lastName\": \"<string>\",\n \"profile.phone\": \"<string>\",\n \"apiPermissions\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://production-api.puppetvendors.com/settings/team/{userId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"<string>\",\n \"password\": \"<string>\",\n \"profile\": {},\n \"profile.firstName\": \"<string>\",\n \"profile.lastName\": \"<string>\",\n \"profile.phone\": \"<string>\",\n \"apiPermissions\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_bodyV2 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
string
required
The team member’s user ID.
Request Body
string
Updated email address. Must be a valid email format.
string
New password. Minimum 6 characters, maximum 100 characters.
object
Profile information.
string
First name. Maximum 100 characters.
string
Last name. Maximum 100 characters.
string
Phone number. Maximum 50 characters.
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://production-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"]
}'
Was this page helpful?
⌘I