PUT api/users/{id}

Update a user

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

globally unique identifier

Required

Body Parameters

UserDto
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Name

string

Required

Max length: 50

Email

string

Required

IsActive

boolean

None.

Customer

NamedItem

None.

Roles

Collection of UserRoleDto

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "0cd4153e-ac53-4539-b94a-b877fb1aa2f3",
  "Name": "sample string 2",
  "Email": "sample string 3",
  "IsActive": true,
  "Customer": {
    "Id": "334ad8ca-7dc3-4966-b908-e2c441a96d00",
    "Name": "sample string 2"
  },
  "Roles": [
    {
      "Role": "Viewer",
      "CustomerGroup": {
        "Id": "334ad8ca-7dc3-4966-b908-e2c441a96d00",
        "Name": "sample string 2"
      },
      "IsActive": true
    },
    {
      "Role": "Viewer",
      "CustomerGroup": {
        "Id": "334ad8ca-7dc3-4966-b908-e2c441a96d00",
        "Name": "sample string 2"
      },
      "IsActive": true
    }
  ]
}

Response Information

Resource Description

UserDto
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Name

string

Required

Max length: 50

Email

string

Required

IsActive

boolean

None.

Customer

NamedItem

None.

Roles

Collection of UserRoleDto

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": "17b5944d-26e3-4a1f-9c64-944135d0dd86",
  "Name": "sample string 2",
  "Email": "sample string 3",
  "IsActive": true,
  "Customer": {
    "Id": "1cb69cac-ca30-4cb2-94cf-95a0fd6a4bda",
    "Name": "sample string 2"
  },
  "Roles": [
    {
      "Role": "Viewer",
      "CustomerGroup": {
        "Id": "1cb69cac-ca30-4cb2-94cf-95a0fd6a4bda",
        "Name": "sample string 2"
      },
      "IsActive": true
    },
    {
      "Role": "Viewer",
      "CustomerGroup": {
        "Id": "1cb69cac-ca30-4cb2-94cf-95a0fd6a4bda",
        "Name": "sample string 2"
      },
      "IsActive": true
    }
  ]
}