POST api/Admin/Tenant/Users/local

Request Information

URI Parameters

None.

Body Parameters

UserLocalPostDTO
NameDescriptionTypeAdditional information
UserName

string

None.

Password

string

None.

DisplayName

string

None.

Email

string

None.

Phone

string

None.

Department

string

None.

IsActive

boolean

None.

TimeZoneId

integer

None.

MustChangePassword

boolean

None.

LockoutEndUtc

date

None.

RolesIds

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "UserName": "sample string 1",
  "Password": "sample string 2",
  "DisplayName": "sample string 3",
  "Email": "sample string 4",
  "Phone": "sample string 5",
  "Department": "sample string 6",
  "IsActive": true,
  "TimeZoneId": 8,
  "MustChangePassword": true,
  "LockoutEndUtc": "2026-07-13T15:20:17.7190983+00:00",
  "RolesIds": [
    1,
    2
  ]
}

application/xml, text/xml

Sample:
<UserLocalPostDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bluedock.Booking.Rest.Models.User">
  <Department>sample string 6</Department>
  <DisplayName>sample string 3</DisplayName>
  <Email>sample string 4</Email>
  <IsActive>true</IsActive>
  <LockoutEndUtc>2026-07-13T15:20:17.7190983+00:00</LockoutEndUtc>
  <MustChangePassword>true</MustChangePassword>
  <Password>sample string 2</Password>
  <Phone>sample string 5</Phone>
  <RolesIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </RolesIds>
  <TimeZoneId>8</TimeZoneId>
  <UserName>sample string 1</UserName>
</UserLocalPostDTO>

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 'UserLocalPostDTO'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.