Skip to content

Latest commit

 

History

History
75 lines (62 loc) · 2.16 KB

update-a-user.md

File metadata and controls

75 lines (62 loc) · 2.16 KB
description
Updating a user can be done by PUT'ing an updated version of the user profile resource.

Update a user

Updating a user can be done by PUT'ing an updated version of the user profile resource.

PUT /api/management/security/users/{userIdentifier}

Parameters

Name Parameter type Type Description
userIdentifier path UserIdentifier One of the user identifiers

Remarks

Only the current user and a member of the System Administrators group can update a user resource

Example request

PUT: /api/management/security/users/4b262379-5bbe-421e-a429-f6e2ab5a849b
{
    "username": "tdurden",
    "email": "[email protected]",
    "firstname": "Tyler",
    "lastname": "Durden",
    "timezone": "America/New_York",
    "language": "en-US",
    "custom": {
        "department": "Soap sales"
    }
}
PUT: /api/management/security/users/tdurden
{
    "username": "tdurden",
    "email": "[email protected]",
    "firstname": "Tyler",
    "lastname": "Durden",
    "timezone": "America/New_York",
    "language": "en-US",
    "custom": {
        "department": "Soap sales"
    }
}
PUT: /api/management/security/users/[email protected]
{
    "username": "tdurden",
    "email": "[email protected]",
    "firstname": "Tyler",
    "lastname": "Durden",
    "timezone": "America/New_York",
    "language": "en-US",
    "custom": {
        "department": "Soap sales"
    }
}

Response message

HTTP status code Reason Response model
200 Success User
403 Forbidden Error
404 NotFound Error
500 InternalServerError Error