User
Update a user
Updates a user’s name, email, password and settings. Only the fields sent are changed. Changing your own password needs old_password, and only platform admins can set system_meta. Not available to OAuth (MCP) sign-ins. You can always update your own record.
PUT
/
v1
/
user
/
{id}
Update a user
curl --request PUT \
--url https://api.tagdeliver.com/v1/user/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"display_name": "Jo Example",
"first_name": "Sam",
"last_name": "Example",
"theme": "light"
}
'import requests
url = "https://api.tagdeliver.com/v1/user/{id}"
payload = {
"display_name": "Jo Example",
"first_name": "Sam",
"last_name": "Example",
"theme": "light"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
display_name: 'Jo Example',
first_name: 'Sam',
last_name: 'Example',
theme: 'light'
})
};
fetch('https://api.tagdeliver.com/v1/user/{id}', 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://api.tagdeliver.com/v1/user/{id}",
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([
'display_name' => 'Jo Example',
'first_name' => 'Sam',
'last_name' => 'Example',
'theme' => 'light'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://api.tagdeliver.com/v1/user/{id}"
payload := strings.NewReader("{\n \"display_name\": \"Jo Example\",\n \"first_name\": \"Sam\",\n \"last_name\": \"Example\",\n \"theme\": \"light\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.tagdeliver.com/v1/user/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"display_name\": \"Jo Example\",\n \"first_name\": \"Sam\",\n \"last_name\": \"Example\",\n \"theme\": \"light\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tagdeliver.com/v1/user/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"display_name\": \"Jo Example\",\n \"first_name\": \"Sam\",\n \"last_name\": \"Example\",\n \"theme\": \"light\"\n}"
response = http.request(request)
puts response.read_body{
"results": {
"display_name": "Jo Example",
"email": "jo@example.com",
"status": 0,
"date_added": "2026-02-11 09:30:00",
"meta": {
"first_name": "Sam",
"last_name": "Example",
"theme": "light",
"active_organisation": 42
},
"system_meta_schema": {
"type": "object",
"properties": {}
},
"system_meta": {}
},
"success": true
}{}{
"success": false,
"message": "Token not found."
}{}{}{
"status": 500,
"message": "An error occurred [4f2k], please try again shortly or contact your account manager for further assistance."
}Authorizations
Body
application/json
Was this page helpful?
⌘I
Update a user
curl --request PUT \
--url https://api.tagdeliver.com/v1/user/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"display_name": "Jo Example",
"first_name": "Sam",
"last_name": "Example",
"theme": "light"
}
'import requests
url = "https://api.tagdeliver.com/v1/user/{id}"
payload = {
"display_name": "Jo Example",
"first_name": "Sam",
"last_name": "Example",
"theme": "light"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
display_name: 'Jo Example',
first_name: 'Sam',
last_name: 'Example',
theme: 'light'
})
};
fetch('https://api.tagdeliver.com/v1/user/{id}', 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://api.tagdeliver.com/v1/user/{id}",
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([
'display_name' => 'Jo Example',
'first_name' => 'Sam',
'last_name' => 'Example',
'theme' => 'light'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://api.tagdeliver.com/v1/user/{id}"
payload := strings.NewReader("{\n \"display_name\": \"Jo Example\",\n \"first_name\": \"Sam\",\n \"last_name\": \"Example\",\n \"theme\": \"light\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.tagdeliver.com/v1/user/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"display_name\": \"Jo Example\",\n \"first_name\": \"Sam\",\n \"last_name\": \"Example\",\n \"theme\": \"light\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tagdeliver.com/v1/user/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"display_name\": \"Jo Example\",\n \"first_name\": \"Sam\",\n \"last_name\": \"Example\",\n \"theme\": \"light\"\n}"
response = http.request(request)
puts response.read_body{
"results": {
"display_name": "Jo Example",
"email": "jo@example.com",
"status": 0,
"date_added": "2026-02-11 09:30:00",
"meta": {
"first_name": "Sam",
"last_name": "Example",
"theme": "light",
"active_organisation": 42
},
"system_meta_schema": {
"type": "object",
"properties": {}
},
"system_meta": {}
},
"success": true
}{}{
"success": false,
"message": "Token not found."
}{}{}{
"status": 500,
"message": "An error occurred [4f2k], please try again shortly or contact your account manager for further assistance."
}