curl --request PATCH \
--url https://api.sidenet.ai/v1/users/{userId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Ada Lovelace",
"tools_auth": {
"8d3b1a75-6c02-4e59-b84f-27a9d5e10c63": {
"credentials": {
"token": "fresh CRM token"
}
}
},
"group_id": "grp_84f20c19"
}
'import requests
url = "https://api.sidenet.ai/v1/users/{userId}"
payload = {
"name": "Ada Lovelace",
"tools_auth": { "8d3b1a75-6c02-4e59-b84f-27a9d5e10c63": { "credentials": { "token": "fresh CRM token" } } },
"group_id": "grp_84f20c19"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Ada Lovelace',
tools_auth: {
'8d3b1a75-6c02-4e59-b84f-27a9d5e10c63': {credentials: {token: 'fresh CRM token'}}
},
group_id: 'grp_84f20c19'
})
};
fetch('https://api.sidenet.ai/v1/users/{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://api.sidenet.ai/v1/users/{userId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Ada Lovelace',
'tools_auth' => [
'8d3b1a75-6c02-4e59-b84f-27a9d5e10c63' => [
'credentials' => [
'token' => 'fresh CRM token'
]
]
],
'group_id' => 'grp_84f20c19'
]),
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.sidenet.ai/v1/users/{userId}"
payload := strings.NewReader("{\n \"name\": \"Ada Lovelace\",\n \"tools_auth\": {\n \"8d3b1a75-6c02-4e59-b84f-27a9d5e10c63\": {\n \"credentials\": {\n \"token\": \"fresh CRM token\"\n }\n }\n },\n \"group_id\": \"grp_84f20c19\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.sidenet.ai/v1/users/{userId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Ada Lovelace\",\n \"tools_auth\": {\n \"8d3b1a75-6c02-4e59-b84f-27a9d5e10c63\": {\n \"credentials\": {\n \"token\": \"fresh CRM token\"\n }\n }\n },\n \"group_id\": \"grp_84f20c19\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sidenet.ai/v1/users/{userId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Ada Lovelace\",\n \"tools_auth\": {\n \"8d3b1a75-6c02-4e59-b84f-27a9d5e10c63\": {\n \"credentials\": {\n \"token\": \"fresh CRM token\"\n }\n }\n },\n \"group_id\": \"grp_84f20c19\"\n}"
response = http.request(request)
puts response.read_body{
"user": {
"id": "<string>",
"name": "<string>"
},
"providers": [
"<string>"
],
"removed_providers": [
"<string>"
],
"sessions_refreshed": 123,
"schedules_refreshed": 123,
"group_id": "<string>"
}Update user
Updates an end user without minting a new session token: their display name, their per-provider tool credentials, and/or their group.
Credentials persist on the user, and everything the user touches — live sessions, workflow runs, scheduled workflows — reads through the same store, so a push here reaches all of them within a minute while a browser keeps the session token it already holds. A null entry deletes that provider’s stored credentials (e.g. when a user disconnects an integration). A group change re-points live sessions and schedules.
Same tools_auth / group_id shapes as POST /v1/token. Credentials are encrypted at rest and never returned; only the providers you send are touched. Requires your organization API key, from your backend — a session token cannot call this.
curl --request PATCH \
--url https://api.sidenet.ai/v1/users/{userId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Ada Lovelace",
"tools_auth": {
"8d3b1a75-6c02-4e59-b84f-27a9d5e10c63": {
"credentials": {
"token": "fresh CRM token"
}
}
},
"group_id": "grp_84f20c19"
}
'import requests
url = "https://api.sidenet.ai/v1/users/{userId}"
payload = {
"name": "Ada Lovelace",
"tools_auth": { "8d3b1a75-6c02-4e59-b84f-27a9d5e10c63": { "credentials": { "token": "fresh CRM token" } } },
"group_id": "grp_84f20c19"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Ada Lovelace',
tools_auth: {
'8d3b1a75-6c02-4e59-b84f-27a9d5e10c63': {credentials: {token: 'fresh CRM token'}}
},
group_id: 'grp_84f20c19'
})
};
fetch('https://api.sidenet.ai/v1/users/{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://api.sidenet.ai/v1/users/{userId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Ada Lovelace',
'tools_auth' => [
'8d3b1a75-6c02-4e59-b84f-27a9d5e10c63' => [
'credentials' => [
'token' => 'fresh CRM token'
]
]
],
'group_id' => 'grp_84f20c19'
]),
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.sidenet.ai/v1/users/{userId}"
payload := strings.NewReader("{\n \"name\": \"Ada Lovelace\",\n \"tools_auth\": {\n \"8d3b1a75-6c02-4e59-b84f-27a9d5e10c63\": {\n \"credentials\": {\n \"token\": \"fresh CRM token\"\n }\n }\n },\n \"group_id\": \"grp_84f20c19\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.sidenet.ai/v1/users/{userId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Ada Lovelace\",\n \"tools_auth\": {\n \"8d3b1a75-6c02-4e59-b84f-27a9d5e10c63\": {\n \"credentials\": {\n \"token\": \"fresh CRM token\"\n }\n }\n },\n \"group_id\": \"grp_84f20c19\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sidenet.ai/v1/users/{userId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Ada Lovelace\",\n \"tools_auth\": {\n \"8d3b1a75-6c02-4e59-b84f-27a9d5e10c63\": {\n \"credentials\": {\n \"token\": \"fresh CRM token\"\n }\n }\n },\n \"group_id\": \"grp_84f20c19\"\n}"
response = http.request(request)
puts response.read_body{
"user": {
"id": "<string>",
"name": "<string>"
},
"providers": [
"<string>"
],
"removed_providers": [
"<string>"
],
"sessions_refreshed": 123,
"schedules_refreshed": 123,
"group_id": "<string>"
}Authorizations
Organization API key, generated in studio.sidenet.ai. Backend only — never in a browser.
Path Parameters
Your id for the end user (the user_id sent to POST /v1/token).
"user_4821"
Body
New display name. null clears it; omit to leave it untouched.
"Ada Lovelace"
{
"8d3b1a75-6c02-4e59-b84f-27a9d5e10c63": {
"credentials": { "token": "fresh CRM token" }
}
}
Move the user to this group. An unseen id creates the group; rename or cap it via PATCH /v1/groups/{groupId}.
"grp_84f20c19"
Response
What was updated
Show child attributes
Show child attributes
Provider ids whose stored credentials were replaced.
Provider ids whose stored credentials were deleted (null entries).
Live sessions re-pointed at the new group.
Scheduled workflows re-pointed at the new group.
The group the user was moved to, when one was sent.