Replace a user
PUT
/scim/v2/Users/{id}
const url = 'https://forge.example.com/scim/v2/Users/example';const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://forge.example.com/scim/v2/Users/example \ --header 'Authorization: Bearer <token>'Every attribute kept, as the body has it; active only when it is sent. The userName of an administrator, or of someone who signs in with a password, is not changed (400 mutability). An If-Match that is not the user’s version answers 412.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Responses
Section titled “Responses”A SCIM document.
Media typeapplication/scim+json
string
Example generated
exampledefault
Section titled “default”A refusal or an error on the SCIM endpoints, as SCIM’s error document (RFC 7644 section 3.12).
Media typeapplication/scim+json
object
schemas
Array<string>
status
string
scimType
string
detail
string
Example generated
{ "schemas": [ "example" ], "status": "example", "scimType": "example", "detail": "example"}