Skip to content
PATCH /scim/v2/Users/{id}

add and replace operations on active, userName, externalId and name.formatted, or with no path and those keys in value. active set to false removes the user from the team.

Path Parameters

idstring
required

Request Body

Operationsobject[]
opstring

add, replace or remove (case-insensitive).

Example: replace
pathstring
Example: active
value
schemasstring[]
Example: ["urn:ietf:params:scim:api:messages:2.0:PatchOp"]

Response Body

activeboolean

Whether the user is an active member of the team.

externalIdstring

The identity provider's ID for the user.

idstring

The Truto user ID.

metaobject
createdstring · date-time
lastModifiedstring · date-time
locationstring
resourceTypestring
Possible values:
UserGroup
nameobject
formattedstring

The user's name, or their email address when no name is set.

schemasstring[]
Example: ["urn:ietf:params:scim:schemas:core:2.0:User"]
userNamestring

The user's email address, lowercased.

Example: jane@example.com
curl -X PATCH 'https://api.truto.one/scim/v2/Users/{id}' \
  -H 'Authorization: Bearer <your_api_token>' \
  -H 'Content-Type: application/json' \
  -d '{
  "schemas": [
    "urn:ietf:params:scim:api:messages:2.0:PatchOp"
  ],
  "Operations": []
}'
const body = {
  "schemas": [
    "urn:ietf:params:scim:api:messages:2.0:PatchOp"
  ],
  "Operations": []
};

const response = await fetch('https://api.truto.one/scim/v2/Users/{id}', {
  method: 'PATCH',
  headers: {
    'Authorization': 'Bearer <your_api_token>',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});

const data = await response.json();
console.log(data);
import requests

url = "https://api.truto.one/scim/v2/Users/{id}"
headers = {
    "Authorization": "Bearer <your_api_token>",
    "Content-Type": "application/json",
}
params = {
}
payload = {
    "schemas": [
        "urn:ietf:params:scim:api:messages:2.0:PatchOp"
    ],
    "Operations": []
}

response = requests.patch(url, headers=headers, params=params, json=payload)
print(response.json())