PUT api/users/{id}

Updates basic profile information for a specified user.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The ID of the user to update.

integer

Required

Body Parameters

The updated user profile information including name, email, and optionally username.

UpdateUserDTO
NameDescriptionTypeAdditional information
userId

Unique id of the user

integer

None.

userName

UID (login name / SSO UID)

string

None.

firstName

First Name

string

None.

lastName

Last Name

string

None.

email

Users email address

string

None.

Request Formats

application/json, text/json, application/scim+json

Sample:
{
  "userId": 1,
  "userName": "sample string 2",
  "firstName": "sample string 3",
  "lastName": "sample string 4",
  "email": "sample string 5"
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'UpdateUserDTO'.

Response Information

Resource Description

On success: HTTP 200 OK. On failure: HTTP 400 Bad Request if the caller is unauthorized or an error occurs.

IHttpActionResult

None.

Response Formats

application/json, text/json, application/scim+json

Sample:

Sample not available.