import requests
url = "https://app.langwatch.ai/api/scim/v2/Users/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', 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 PUT \
--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>"
}Replace a provisioned user
Replaces the member’s attributes with the body. It is a whole-resource write, so an attribute the identity provider leaves out is reset rather than kept: omitting active reactivates the member. Send PATCH instead to change one attribute.
import requests
url = "https://app.langwatch.ai/api/scim/v2/Users/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', 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 PUT \
--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?