PUT api/Account/Update

Request Information

URI Parameters

None.

Body Parameters

UpdateUserDtoIn
NameDescriptionTypeAdditional information
Id

string

Required

FirstName

string

Required

Data type: Text

String length: inclusive between 0 and 50

LastName

string

Required

Data type: Text

String length: inclusive between 0 and 50

PhoneNumber

string

Data type: PhoneNumber

String length: inclusive between 0 and 50

Roles

Collection of RoleDtoIn

Required

LinkUserDivisions

Collection of LinkUserToDivisionDtoIn

Required

LinkUserBusinessUnit

Collection of LinkUserToBusinessUnitDtoIn

Required

Active

boolean

Required

UserReports

Collection of UserReport

None.

Request Formats

application/json, text/json

Sample:
{
  "id": "sample string 1",
  "firstName": "sample string 2",
  "lastName": "sample string 3",
  "phoneNumber": "sample string 4",
  "roles": [
    {
      "id": "sample string 1",
      "name": "sample string 2"
    },
    {
      "id": "sample string 1",
      "name": "sample string 2"
    }
  ],
  "linkUserDivisions": [
    {
      "userId": "sample string 1",
      "divisionId": 2
    },
    {
      "userId": "sample string 1",
      "divisionId": 2
    }
  ],
  "linkUserBusinessUnit": [
    {
      "userId": "sample string 1",
      "businessUnitId": 2
    },
    {
      "userId": "sample string 1",
      "businessUnitId": 2
    }
  ],
  "active": true,
  "userReports": [
    {
      "id": "98f9bed0-4574-42d4-be48-ebda7d811a4f",
      "isActive": true,
      "reportId": "253fc38f-e064-4eb3-8fd8-61939ce9cfa0",
      "userName": "sample string 4",
      "isDeleted": true
    },
    {
      "id": "98f9bed0-4574-42d4-be48-ebda7d811a4f",
      "isActive": true,
      "reportId": "253fc38f-e064-4eb3-8fd8-61939ce9cfa0",
      "userName": "sample string 4",
      "isDeleted": true
    }
  ]
}

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.