curl --request PUT \
--url 'https://sandbox.circularo.com/api/v1/users?token=' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"allowBiometricSignature": true,
"autoTimezone": true,
"company": "Example Ltd.",
"dateformat": "dd/MM/yyyy",
"defaultStamp": "<string>",
"firstDayOfWeek": 1,
"marketing": true,
"role": "Account Manager",
"timeformat": "h:mm a",
"timezone": "Europe/Prague"
},
"disableActiveTokens": false,
"users": [
"john.doe+member@example.com"
]
}
'import requests
url = "https://sandbox.circularo.com/api/v1/users?token="
payload = {
"data": {
"allowBiometricSignature": True,
"autoTimezone": True,
"company": "Example Ltd.",
"dateformat": "dd/MM/yyyy",
"defaultStamp": "<string>",
"firstDayOfWeek": 1,
"marketing": True,
"role": "Account Manager",
"timeformat": "h:mm a",
"timezone": "Europe/Prague"
},
"disableActiveTokens": False,
"users": ["john.doe+member@example.com"]
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
data: {
allowBiometricSignature: true,
autoTimezone: true,
company: 'Example Ltd.',
dateformat: 'dd/MM/yyyy',
defaultStamp: '<string>',
firstDayOfWeek: 1,
marketing: true,
role: 'Account Manager',
timeformat: 'h:mm a',
timezone: 'Europe/Prague'
},
disableActiveTokens: false,
users: ['john.doe+member@example.com']
})
};
fetch('https://sandbox.circularo.com/api/v1/users?token=', 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://sandbox.circularo.com/api/v1/users?token=",
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([
'data' => [
'allowBiometricSignature' => true,
'autoTimezone' => true,
'company' => 'Example Ltd.',
'dateformat' => 'dd/MM/yyyy',
'defaultStamp' => '<string>',
'firstDayOfWeek' => 1,
'marketing' => true,
'role' => 'Account Manager',
'timeformat' => 'h:mm a',
'timezone' => 'Europe/Prague'
],
'disableActiveTokens' => false,
'users' => [
'john.doe+member@example.com'
]
]),
CURLOPT_HTTPHEADER => [
"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://sandbox.circularo.com/api/v1/users?token="
payload := strings.NewReader("{\n \"data\": {\n \"allowBiometricSignature\": true,\n \"autoTimezone\": true,\n \"company\": \"Example Ltd.\",\n \"dateformat\": \"dd/MM/yyyy\",\n \"defaultStamp\": \"<string>\",\n \"firstDayOfWeek\": 1,\n \"marketing\": true,\n \"role\": \"Account Manager\",\n \"timeformat\": \"h:mm a\",\n \"timezone\": \"Europe/Prague\"\n },\n \"disableActiveTokens\": false,\n \"users\": [\n \"john.doe+member@example.com\"\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
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://sandbox.circularo.com/api/v1/users?token=")
.header("Content-Type", "application/json")
.body("{\n \"data\": {\n \"allowBiometricSignature\": true,\n \"autoTimezone\": true,\n \"company\": \"Example Ltd.\",\n \"dateformat\": \"dd/MM/yyyy\",\n \"defaultStamp\": \"<string>\",\n \"firstDayOfWeek\": 1,\n \"marketing\": true,\n \"role\": \"Account Manager\",\n \"timeformat\": \"h:mm a\",\n \"timezone\": \"Europe/Prague\"\n },\n \"disableActiveTokens\": false,\n \"users\": [\n \"john.doe+member@example.com\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/users?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"data\": {\n \"allowBiometricSignature\": true,\n \"autoTimezone\": true,\n \"company\": \"Example Ltd.\",\n \"dateformat\": \"dd/MM/yyyy\",\n \"defaultStamp\": \"<string>\",\n \"firstDayOfWeek\": 1,\n \"marketing\": true,\n \"role\": \"Account Manager\",\n \"timeformat\": \"h:mm a\",\n \"timezone\": \"Europe/Prague\"\n },\n \"disableActiveTokens\": false,\n \"users\": [\n \"john.doe+member@example.com\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"count": 22,
"errors": false,
"items": [
{
"id": "a0d01c9d-f72f-4c57-af11-e26bda19cc59",
"index": "default_documents",
"status": 409,
"message": "Incorrect version",
"payload": {},
"type": "DOCUMENT:VERSION_CONFLICT"
}
]
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Update users in bulk
PUT /users
Writes the same values onto many accounts at once - suspending a set of people, moving them to another date format, putting them all through a password change - and reports the outcome for each. What can be set this way is deliberately narrow: only what makes sense for a whole group of people at once.
Every account is handled on its own. One that does not exist, that the caller cannot see, or that is kept in step with an outside directory is reported as a failed item while the rest go through, and so is one the organization’s allowance no longer has room for. An account changed by somebody else in the meantime is simply read again and rewritten, so a collision does not cost the item.
Token authorization: Authorize using a token — either a session token obtained from login or an API key — to call this endpoint.
Required user rights: update_users
Required user role: admin or organization_admin
curl --request PUT \
--url 'https://sandbox.circularo.com/api/v1/users?token=' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"allowBiometricSignature": true,
"autoTimezone": true,
"company": "Example Ltd.",
"dateformat": "dd/MM/yyyy",
"defaultStamp": "<string>",
"firstDayOfWeek": 1,
"marketing": true,
"role": "Account Manager",
"timeformat": "h:mm a",
"timezone": "Europe/Prague"
},
"disableActiveTokens": false,
"users": [
"john.doe+member@example.com"
]
}
'import requests
url = "https://sandbox.circularo.com/api/v1/users?token="
payload = {
"data": {
"allowBiometricSignature": True,
"autoTimezone": True,
"company": "Example Ltd.",
"dateformat": "dd/MM/yyyy",
"defaultStamp": "<string>",
"firstDayOfWeek": 1,
"marketing": True,
"role": "Account Manager",
"timeformat": "h:mm a",
"timezone": "Europe/Prague"
},
"disableActiveTokens": False,
"users": ["john.doe+member@example.com"]
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
data: {
allowBiometricSignature: true,
autoTimezone: true,
company: 'Example Ltd.',
dateformat: 'dd/MM/yyyy',
defaultStamp: '<string>',
firstDayOfWeek: 1,
marketing: true,
role: 'Account Manager',
timeformat: 'h:mm a',
timezone: 'Europe/Prague'
},
disableActiveTokens: false,
users: ['john.doe+member@example.com']
})
};
fetch('https://sandbox.circularo.com/api/v1/users?token=', 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://sandbox.circularo.com/api/v1/users?token=",
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([
'data' => [
'allowBiometricSignature' => true,
'autoTimezone' => true,
'company' => 'Example Ltd.',
'dateformat' => 'dd/MM/yyyy',
'defaultStamp' => '<string>',
'firstDayOfWeek' => 1,
'marketing' => true,
'role' => 'Account Manager',
'timeformat' => 'h:mm a',
'timezone' => 'Europe/Prague'
],
'disableActiveTokens' => false,
'users' => [
'john.doe+member@example.com'
]
]),
CURLOPT_HTTPHEADER => [
"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://sandbox.circularo.com/api/v1/users?token="
payload := strings.NewReader("{\n \"data\": {\n \"allowBiometricSignature\": true,\n \"autoTimezone\": true,\n \"company\": \"Example Ltd.\",\n \"dateformat\": \"dd/MM/yyyy\",\n \"defaultStamp\": \"<string>\",\n \"firstDayOfWeek\": 1,\n \"marketing\": true,\n \"role\": \"Account Manager\",\n \"timeformat\": \"h:mm a\",\n \"timezone\": \"Europe/Prague\"\n },\n \"disableActiveTokens\": false,\n \"users\": [\n \"john.doe+member@example.com\"\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
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://sandbox.circularo.com/api/v1/users?token=")
.header("Content-Type", "application/json")
.body("{\n \"data\": {\n \"allowBiometricSignature\": true,\n \"autoTimezone\": true,\n \"company\": \"Example Ltd.\",\n \"dateformat\": \"dd/MM/yyyy\",\n \"defaultStamp\": \"<string>\",\n \"firstDayOfWeek\": 1,\n \"marketing\": true,\n \"role\": \"Account Manager\",\n \"timeformat\": \"h:mm a\",\n \"timezone\": \"Europe/Prague\"\n },\n \"disableActiveTokens\": false,\n \"users\": [\n \"john.doe+member@example.com\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/users?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"data\": {\n \"allowBiometricSignature\": true,\n \"autoTimezone\": true,\n \"company\": \"Example Ltd.\",\n \"dateformat\": \"dd/MM/yyyy\",\n \"defaultStamp\": \"<string>\",\n \"firstDayOfWeek\": 1,\n \"marketing\": true,\n \"role\": \"Account Manager\",\n \"timeformat\": \"h:mm a\",\n \"timezone\": \"Europe/Prague\"\n },\n \"disableActiveTokens\": false,\n \"users\": [\n \"john.doe+member@example.com\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"count": 22,
"errors": false,
"items": [
{
"id": "a0d01c9d-f72f-4c57-af11-e26bda19cc59",
"index": "default_documents",
"status": 409,
"message": "Incorrect version",
"payload": {},
"type": "DOCUMENT:VERSION_CONFLICT"
}
]
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Authorizations
Body
Response
Reports the outcome per account; individual accounts may still have failed, so read the per-item results.