POST api/Users/EditUser

Request Information

URI Parameters

None.

Body Parameters

CreateEditUserDTO
NameDescriptionTypeAdditional information
User

User

None.

Roles

Collection of UserRole

None.

Request Formats

application/json, text/json

Sample:
{
  "User": {
    "Created": "2019-10-15T06:50:58.4827077+02:00",
    "CreatedBy": "sample string 1",
    "Modified": "2019-10-15T06:50:58.4827077+02:00",
    "ModifiedBy": "sample string 2",
    "LatestActivity": "2019-10-15T06:50:58.4827077+02:00",
    "FirstName": "sample string 3",
    "LastName": "sample string 4",
    "Address": "sample string 5",
    "City": "sample string 6",
    "PostalCode": "sample string 7",
    "BirthYear": 8,
    "Birthday": "2019-10-15T06:50:58.4827077+02:00",
    "PreferredAfdeling": 0,
    "AcceptedConditions": true,
    "AcceptedConditionsTimestamp": "2019-10-15T06:50:58.4827077+02:00",
    "Status": 0,
    "Email": "sample string 10",
    "EmailConfirmed": true,
    "PasswordHash": "sample string 12",
    "SecurityStamp": "sample string 13",
    "PhoneNumber": "sample string 14",
    "PhoneNumberConfirmed": true,
    "TwoFactorEnabled": true,
    "LockoutEndDateUtc": "2019-10-15T06:50:58.4827077+02:00",
    "LockoutEnabled": true,
    "AccessFailedCount": 18,
    "Roles": [],
    "Claims": [],
    "Logins": [],
    "Id": 19,
    "UserName": "sample string 20"
  },
  "Roles": [
    0,
    0
  ]
}

application/xml, text/xml

Sample:
<CreateEditUserDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Model.DTOClasses">
  <Roles xmlns:d2p1="http://schemas.datacontract.org/2004/07/Model.Enums">
    <d2p1:UserRole>Webansvarlig</d2p1:UserRole>
    <d2p1:UserRole>Webansvarlig</d2p1:UserRole>
  </Roles>
  <User xmlns:d2p1="http://schemas.datacontract.org/2004/07/Model">
    <AccessFailedCount xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">18</AccessFailedCount>
    <Email xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 10</Email>
    <EmailConfirmed xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">true</EmailConfirmed>
    <Id xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">19</Id>
    <LockoutEnabled xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">true</LockoutEnabled>
    <LockoutEndDateUtc xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">2019-10-15T06:50:58.4827077+02:00</LockoutEndDateUtc>
    <PasswordHash xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 12</PasswordHash>
    <PhoneNumber xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 14</PhoneNumber>
    <PhoneNumberConfirmed xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">true</PhoneNumberConfirmed>
    <SecurityStamp xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 13</SecurityStamp>
    <TwoFactorEnabled xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">true</TwoFactorEnabled>
    <UserName xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 20</UserName>
    <d2p1:AcceptedConditions>true</d2p1:AcceptedConditions>
    <d2p1:AcceptedConditionsTimestamp>2019-10-15T06:50:58.4827077+02:00</d2p1:AcceptedConditionsTimestamp>
    <d2p1:Address>sample string 5</d2p1:Address>
    <d2p1:BirthYear>8</d2p1:BirthYear>
    <d2p1:Birthday>2019-10-15T06:50:58.4827077+02:00</d2p1:Birthday>
    <d2p1:City>sample string 6</d2p1:City>
    <d2p1:Created>2019-10-15T06:50:58.4827077+02:00</d2p1:Created>
    <d2p1:CreatedBy>sample string 1</d2p1:CreatedBy>
    <d2p1:FirstName>sample string 3</d2p1:FirstName>
    <d2p1:LastName>sample string 4</d2p1:LastName>
    <d2p1:LatestActivity>2019-10-15T06:50:58.4827077+02:00</d2p1:LatestActivity>
    <d2p1:Modified>2019-10-15T06:50:58.4827077+02:00</d2p1:Modified>
    <d2p1:ModifiedBy>sample string 2</d2p1:ModifiedBy>
    <d2p1:PostalCode>sample string 7</d2p1:PostalCode>
    <d2p1:PreferredAfdeling>Håndbold</d2p1:PreferredAfdeling>
    <d2p1:Status>Aktiv</d2p1:Status>
  </User>
</CreateEditUserDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ServiceResultOfBoolean
NameDescriptionTypeAdditional information
Success

boolean

None.

ErrorMessage

string

None.

SuccessMessage

string

None.

Result

boolean

None.

StatusCode

HttpStatusCode

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "ErrorMessage": "sample string 2",
  "SuccessMessage": "sample string 3",
  "Result": true,
  "StatusCode": 100
}

application/xml, text/xml

Sample:
<ServiceResultOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Model">
  <ErrorMessage>sample string 2</ErrorMessage>
  <Result>true</Result>
  <StatusCode>Continue</StatusCode>
  <Success>true</Success>
  <SuccessMessage>sample string 3</SuccessMessage>
</ServiceResultOfboolean>