import requests
url = "https://app.langwatch.ai/api/scim/v2/Users/{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/Users/{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/Users/{id} \
--header 'Authorization: Bearer <token>'{
"schemas": [
"<string>"
],
"id": "<string>",
"userName": "jsmith@example.com",
"name": {
"givenName": "<string>",
"familyName": "<string>"
},
"emails": [
{
"value": "jsmith@example.com",
"primary": true,
"type": "<string>"
}
],
"active": true,
"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 user
Applies RFC 7644 section 3.5.2 patch operations. What is implemented: replace of active (deactivating or reactivating the account), of userName, and of name.givenName / name.familyName, written either as an operation path or as keys inside a value object; and add, replace or remove of the enterprise costCenter, which reassigns the member’s department. Operations outside that set are accepted and change nothing, so a provider sending its full patch set is never rejected.
import requests
url = "https://app.langwatch.ai/api/scim/v2/Users/{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/Users/{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/Users/{id} \
--header 'Authorization: Bearer <token>'{
"schemas": [
"<string>"
],
"id": "<string>",
"userName": "jsmith@example.com",
"name": {
"givenName": "<string>",
"familyName": "<string>"
},
"emails": [
{
"value": "jsmith@example.com",
"primary": true,
"type": "<string>"
}
],
"active": true,
"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 user id.
Response
The updated user.
The SCIM schema URNs this resource conforms to.
The LangWatch user id. Use it as the resource id in later calls, and as a member value on a group.
The member's email address, which is their login.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
False once the account is deactivated.
Show child attributes
Show child attributes
Was this page helpful?