curl --request PATCH \
--url https://{instance}.cyrisma.com/ta/v1/msp/admin/users/{userId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"first_name": "<string>",
"last_name": "<string>",
"email": "<string>",
"password": "<string>",
"role": "<string>",
"enabled": true
}
'import requests
url = "https://{instance}.cyrisma.com/ta/v1/msp/admin/users/{userId}"
payload = {
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"first_name": "<string>",
"last_name": "<string>",
"email": "<string>",
"password": "<string>",
"role": "<string>",
"enabled": True
}
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({
tenant_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
first_name: '<string>',
last_name: '<string>',
email: '<string>',
password: '<string>',
role: '<string>',
enabled: true
})
};
fetch('https://{instance}.cyrisma.com/ta/v1/msp/admin/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://{instance}.cyrisma.com/ta/v1/msp/admin/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([
'tenant_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'first_name' => '<string>',
'last_name' => '<string>',
'email' => '<string>',
'password' => '<string>',
'role' => '<string>',
'enabled' => true
]),
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://{instance}.cyrisma.com/ta/v1/msp/admin/users/{userId}"
payload := strings.NewReader("{\n \"tenant_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"email\": \"<string>\",\n \"password\": \"<string>\",\n \"role\": \"<string>\",\n \"enabled\": true\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://{instance}.cyrisma.com/ta/v1/msp/admin/users/{userId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"tenant_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"email\": \"<string>\",\n \"password\": \"<string>\",\n \"role\": \"<string>\",\n \"enabled\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{instance}.cyrisma.com/ta/v1/msp/admin/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 \"tenant_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"email\": \"<string>\",\n \"password\": \"<string>\",\n \"role\": \"<string>\",\n \"enabled\": true\n}"
response = http.request(request)
puts response.read_body{
"user_id": "0b9c4d2e-6f1a-4c83-9e57-d3a8b1f2c640",
"first_name": "Jane",
"last_name": "Doe",
"display_name": "Jane Doe",
"email": "jane.doe@contoso.example",
"tenant_id": "5c0e7a92-3f4b-4d1e-a8c6-7b2d9e1f0a34",
"tenant_name": "Contoso Ltd",
"roles": [
"tenant-admin"
],
"scopes": [
"pulse.login",
"pulse.read",
"pulse.write"
],
"status": "active",
"last_login_at": "2026-09-20T14:05:12.482301+00:00",
"selected_mfa_method": "totp",
"enrolled_mfa_methods": [
"email",
"totp"
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"errors": {}
}Update a user
Changes a user’s name, email, password, role, tenant or whether they can sign in, and returns
the updated user. Needs a signed-in user’s token. API-key tokens from POST /v1/auth/client-token are rejected. The user needs pulse.write and an admin role.
- 400: a validation problem naming the field, or
password_rejected/email_rejected. - 401
invalid_credentials: missing, invalid or outdated token, or an API-key token. - 403
tenant_context_denied: no admin role orpulse.write, or a tenant involved is outside your hierarchy. - 404: the user does not exist, or
tenant_iddoes not exist (tenant_context_not_found). - 409
email_taken: another user already has this email. - 409
last_admin_required: the change would leave a tenant without an administrator. - 409
mfa_state_changed: the user was changed at the same time; retry.
curl --request PATCH \
--url https://{instance}.cyrisma.com/ta/v1/msp/admin/users/{userId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"first_name": "<string>",
"last_name": "<string>",
"email": "<string>",
"password": "<string>",
"role": "<string>",
"enabled": true
}
'import requests
url = "https://{instance}.cyrisma.com/ta/v1/msp/admin/users/{userId}"
payload = {
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"first_name": "<string>",
"last_name": "<string>",
"email": "<string>",
"password": "<string>",
"role": "<string>",
"enabled": True
}
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({
tenant_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
first_name: '<string>',
last_name: '<string>',
email: '<string>',
password: '<string>',
role: '<string>',
enabled: true
})
};
fetch('https://{instance}.cyrisma.com/ta/v1/msp/admin/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://{instance}.cyrisma.com/ta/v1/msp/admin/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([
'tenant_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'first_name' => '<string>',
'last_name' => '<string>',
'email' => '<string>',
'password' => '<string>',
'role' => '<string>',
'enabled' => true
]),
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://{instance}.cyrisma.com/ta/v1/msp/admin/users/{userId}"
payload := strings.NewReader("{\n \"tenant_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"email\": \"<string>\",\n \"password\": \"<string>\",\n \"role\": \"<string>\",\n \"enabled\": true\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://{instance}.cyrisma.com/ta/v1/msp/admin/users/{userId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"tenant_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"email\": \"<string>\",\n \"password\": \"<string>\",\n \"role\": \"<string>\",\n \"enabled\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{instance}.cyrisma.com/ta/v1/msp/admin/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 \"tenant_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"email\": \"<string>\",\n \"password\": \"<string>\",\n \"role\": \"<string>\",\n \"enabled\": true\n}"
response = http.request(request)
puts response.read_body{
"user_id": "0b9c4d2e-6f1a-4c83-9e57-d3a8b1f2c640",
"first_name": "Jane",
"last_name": "Doe",
"display_name": "Jane Doe",
"email": "jane.doe@contoso.example",
"tenant_id": "5c0e7a92-3f4b-4d1e-a8c6-7b2d9e1f0a34",
"tenant_name": "Contoso Ltd",
"roles": [
"tenant-admin"
],
"scopes": [
"pulse.login",
"pulse.read",
"pulse.write"
],
"status": "active",
"last_login_at": "2026-09-20T14:05:12.482301+00:00",
"selected_mfa_method": "totp",
"enrolled_mfa_methods": [
"email",
"totp"
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"errors": {}
}Authorizations
A machine-client token from POST /v1/auth/client-token. Reads need the pulse.read scope; provisioning and tenant updates need pulse.write, which the token only carries when requested_scopes asks for it. Creating, changing, disabling and resetting MFA for users, and the tenant sign-in policy, need a signed-in user's token instead: they reject API-key tokens.
Path Parameters
Body
Send only the fields you want to change; omitted or null fields keep their current value. The change applies to the user's first access grant (the one Get a user returns).
Response
OK
A user and their access to one tenant.
