import requests
url = "https://app.langwatch.ai/api/scim/v2/Groups/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.patch(url, headers=headers)
print(response.text)const options = {method: 'PATCH', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.langwatch.ai/api/scim/v2/Groups/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PATCH \
--url https://app.langwatch.ai/api/scim/v2/Groups/{id} \
--header 'Authorization: Bearer <token>'{
"schemas": [
"<string>"
],
"id": "<string>",
"displayName": "<string>",
"members": [
{
"value": "<string>",
"display": "<string>"
}
],
"meta": {
"resourceType": "<string>",
"created": "2023-11-07T05:31:56Z",
"lastModified": "2023-11-07T05:31:56Z"
}
}{
"schemas": [
"<string>"
],
"status": "<string>",
"detail": "<string>"
}{
"schemas": [
"<string>"
],
"status": "<string>",
"detail": "<string>"
}{
"schemas": [
"<string>"
],
"status": "<string>",
"detail": "<string>"
}{
"schemas": [
"<string>"
],
"status": "<string>",
"detail": "<string>"
}Update a provisioned group
Applies RFC 7644 section 3.5.2 patch operations. What is implemented: add of members, remove of members (named by a value filter on the path, as Entra ID writes it, or in the operation value), replace of displayName, and replace of the whole member list. replace, add and remove are the only operation names understood, read without regard to case, so the capitalized Add / Remove that Entra ID writes are accepted; any other name, or a missing or non-string one, is rejected with a 400. An add or a remove aimed at anything other than members is accepted and changes nothing. A replace that is not a displayName rename is treated as a replacement of the whole member list, so one that carries no members empties the group.
import requests
url = "https://app.langwatch.ai/api/scim/v2/Groups/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.patch(url, headers=headers)
print(response.text)const options = {method: 'PATCH', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.langwatch.ai/api/scim/v2/Groups/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PATCH \
--url https://app.langwatch.ai/api/scim/v2/Groups/{id} \
--header 'Authorization: Bearer <token>'{
"schemas": [
"<string>"
],
"id": "<string>",
"displayName": "<string>",
"members": [
{
"value": "<string>",
"display": "<string>"
}
],
"meta": {
"resourceType": "<string>",
"created": "2023-11-07T05:31:56Z",
"lastModified": "2023-11-07T05:31:56Z"
}
}{
"schemas": [
"<string>"
],
"status": "<string>",
"detail": "<string>"
}{
"schemas": [
"<string>"
],
"status": "<string>",
"detail": "<string>"
}{
"schemas": [
"<string>"
],
"status": "<string>",
"detail": "<string>"
}{
"schemas": [
"<string>"
],
"status": "<string>",
"detail": "<string>"
}Authorizations
SCIM token for one organization's directory connection, created with POST /api/scim-tokens or in Settings > SCIM. It authenticates provisioning calls only, and stops working if the organization's Enterprise plan lapses.
Path Parameters
The LangWatch group id.
Was this page helpful?