POST Api/Roles?text={text}&password={password}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
text

string

Required

password

string

Required

Body Parameters

User
NameDescriptionTypeAdditional information
FirstName

string

Required

String length: inclusive between 0 and 100

LastName

string

Required

String length: inclusive between 0 and 100

DateCreated

date

Required

LastLoginTime

date

None.

Active

boolean

None.

AccountId

integer

None.

UserDelayedPayment

boolean

None.

UserDiscountCategoryId

integer

None.

IsSubjectToTva

boolean

None.

TVANumber

string

None.

CurrentCompanyId

integer

None.

DisplayName

string

None.

Initials

string

None.

Email

string

None.

EmailConfirmed

boolean

None.

PasswordHash

string

None.

SecurityStamp

string

None.

PhoneNumber

string

None.

PhoneNumberConfirmed

boolean

None.

TwoFactorEnabled

boolean

None.

LockoutEndDateUtc

date

None.

LockoutEnabled

boolean

None.

AccessFailedCount

integer

None.

Roles

Collection of IdentityUserRole

None.

Claims

Collection of IdentityUserClaim

None.

Logins

Collection of IdentityUserLogin

None.

Id

string

None.

UserName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "firstName": "sample string 1",
  "lastName": "sample string 2",
  "dateCreated": "2025-12-11T08:07:14.1798888+01:00",
  "lastLoginTime": "2025-12-11T08:07:14.1798888+01:00",
  "active": true,
  "accountId": 5,
  "userDelayedPayment": true,
  "userDiscountCategoryId": 1,
  "isSubjectToTva": true,
  "tvaNumber": "sample string 8",
  "currentCompanyId": 9,
  "displayName": "sample string 1 sample string 2",
  "initials": "ss",
  "email": "sample string 10",
  "emailConfirmed": true,
  "passwordHash": "sample string 12",
  "securityStamp": "sample string 13",
  "phoneNumber": "sample string 14",
  "phoneNumberConfirmed": true,
  "twoFactorEnabled": true,
  "lockoutEndDateUtc": "2025-12-11T08:07:14.1798888+01:00",
  "lockoutEnabled": true,
  "accessFailedCount": 18,
  "roles": [],
  "claims": [],
  "logins": [],
  "id": "sample string 19",
  "userName": "sample string 20"
}

application/xml, text/xml

Sample:
<User xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gruo.Core.Models">
  <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">sample string 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">2025-12-11T08:07:14.1798888+01: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>
  <AccountId>5</AccountId>
  <Active>true</Active>
  <CurrentCompanyId>9</CurrentCompanyId>
  <DateCreated>2025-12-11T08:07:14.1798888+01:00</DateCreated>
  <FirstName>sample string 1</FirstName>
  <IsSubjectToTva>true</IsSubjectToTva>
  <LastLoginTime>2025-12-11T08:07:14.1798888+01:00</LastLoginTime>
  <LastName>sample string 2</LastName>
  <TVANumber>sample string 8</TVANumber>
  <UserDelayedPayment>true</UserDelayedPayment>
  <UserDiscountCategoryId>1</UserDiscountCategoryId>
</User>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>