curl --request PATCH \
--url 'https://sandbox.circularo.com/api/v1/scim/Users/{id}?token=' \
--header 'Content-Type: application/json' \
--data '
{
"Operations": [
{
"path": "active",
"value": "<unknown>"
}
],
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
]
}
'import requests
url = "https://sandbox.circularo.com/api/v1/scim/Users/{id}?token="
payload = {
"Operations": [
{
"path": "active",
"value": "<unknown>"
}
],
"schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"]
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
Operations: [{path: 'active', value: '<unknown>'}],
schemas: ['urn:ietf:params:scim:api:messages:2.0:PatchOp']
})
};
fetch('https://sandbox.circularo.com/api/v1/scim/Users/{id}?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/scim/Users/{id}?token=",
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([
'Operations' => [
[
'path' => 'active',
'value' => '<unknown>'
]
],
'schemas' => [
'urn:ietf:params:scim:api:messages:2.0:PatchOp'
]
]),
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/scim/Users/{id}?token="
payload := strings.NewReader("{\n \"Operations\": [\n {\n \"path\": \"active\",\n \"value\": \"<unknown>\"\n }\n ],\n \"schemas\": [\n \"urn:ietf:params:scim:api:messages:2.0:PatchOp\"\n ]\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://sandbox.circularo.com/api/v1/scim/Users/{id}?token=")
.header("Content-Type", "application/json")
.body("{\n \"Operations\": [\n {\n \"path\": \"active\",\n \"value\": \"<unknown>\"\n }\n ],\n \"schemas\": [\n \"urn:ietf:params:scim:api:messages:2.0:PatchOp\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/scim/Users/{id}?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"Operations\": [\n {\n \"path\": \"active\",\n \"value\": \"<unknown>\"\n }\n ],\n \"schemas\": [\n \"urn:ietf:params:scim:api:messages:2.0:PatchOp\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "john.doe@example.com",
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"userName": "john.doe@example.com",
"active": true,
"displayName": "John Doe",
"emails": [
{
"display": "<string>",
"primary": true,
"type": "work",
"value": "user@example.com"
}
],
"externalId": "ext-001",
"meta": {
"created": "2026-01-15T10:00:00.000Z",
"lastModified": "2026-02-20T14:30:00.000Z",
"location": "/Users/john.doe@example.com",
"resourceType": "User"
},
"phoneNumbers": [
{
"display": "<string>",
"primary": true,
"type": "work",
"value": "user@example.com"
}
],
"title": "Software Engineer"
}{
"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"
}{
"status": 404,
"type": "RESOURCE:NOT_FOUND",
"message": "Resource not found",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Patch a SCIM account
PATCH /scim/Users/{id}
Changes single attributes of an account without resending the whole person, following the patch message of RFC 7644 Section 3.5.2, and answers with the account as it then stands. It is how a provisioning client normally suspends somebody, by replacing active with false.
An operation that names an attribute this service does not keep is dropped rather than failing the whole request, which is what lets a directory sending its own schema extensions - Azure Entra ID among them - patch the parts that do exist. A request left with nothing to do after that changes nothing and simply returns the account.
What can be changed is the name to show the person by, their job title, their telephone number and whether they are active. The account’s own name and the address it is reached at are settled when it is opened, and here - unlike in PUT /scim/Users/{id}, which passes over what it cannot use - an operation carrying a different one is refused outright. Whichever way it arrives, the account is marked as provisioned through SCIM from then on, and the platform’s own administration will no longer change the attributes this service owns.
Token authorization: Authorize using a token — either a session token obtained from login or an API key — to call this endpoint.
Required user role: admin or organization_admin
curl --request PATCH \
--url 'https://sandbox.circularo.com/api/v1/scim/Users/{id}?token=' \
--header 'Content-Type: application/json' \
--data '
{
"Operations": [
{
"path": "active",
"value": "<unknown>"
}
],
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
]
}
'import requests
url = "https://sandbox.circularo.com/api/v1/scim/Users/{id}?token="
payload = {
"Operations": [
{
"path": "active",
"value": "<unknown>"
}
],
"schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"]
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
Operations: [{path: 'active', value: '<unknown>'}],
schemas: ['urn:ietf:params:scim:api:messages:2.0:PatchOp']
})
};
fetch('https://sandbox.circularo.com/api/v1/scim/Users/{id}?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/scim/Users/{id}?token=",
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([
'Operations' => [
[
'path' => 'active',
'value' => '<unknown>'
]
],
'schemas' => [
'urn:ietf:params:scim:api:messages:2.0:PatchOp'
]
]),
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/scim/Users/{id}?token="
payload := strings.NewReader("{\n \"Operations\": [\n {\n \"path\": \"active\",\n \"value\": \"<unknown>\"\n }\n ],\n \"schemas\": [\n \"urn:ietf:params:scim:api:messages:2.0:PatchOp\"\n ]\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://sandbox.circularo.com/api/v1/scim/Users/{id}?token=")
.header("Content-Type", "application/json")
.body("{\n \"Operations\": [\n {\n \"path\": \"active\",\n \"value\": \"<unknown>\"\n }\n ],\n \"schemas\": [\n \"urn:ietf:params:scim:api:messages:2.0:PatchOp\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/scim/Users/{id}?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"Operations\": [\n {\n \"path\": \"active\",\n \"value\": \"<unknown>\"\n }\n ],\n \"schemas\": [\n \"urn:ietf:params:scim:api:messages:2.0:PatchOp\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "john.doe@example.com",
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"userName": "john.doe@example.com",
"active": true,
"displayName": "John Doe",
"emails": [
{
"display": "<string>",
"primary": true,
"type": "work",
"value": "user@example.com"
}
],
"externalId": "ext-001",
"meta": {
"created": "2026-01-15T10:00:00.000Z",
"lastModified": "2026-02-20T14:30:00.000Z",
"location": "/Users/john.doe@example.com",
"resourceType": "User"
},
"phoneNumbers": [
{
"display": "<string>",
"primary": true,
"type": "work",
"value": "user@example.com"
}
],
"title": "Software Engineer"
}{
"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"
}{
"status": 404,
"type": "RESOURCE:NOT_FOUND",
"message": "Resource not found",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Authorizations
Path Parameters
Body
Response
Returns the account as it now stands.