POST api/user/Create

Request Information

URI Parameters

None.

Body Parameters

CreateUserDto
NameDescriptionTypeAdditional information
Password

string

None.

City

string

None.

MobileNumber

string

None.

Address

string

None.

Phone

string

None.

UserName

string

None.

Email

string

None.

Name

string

None.

Code

string

None.

Country

string

None.

IsActive

boolean

None.

UserTypeId

integer

None.

UserType

UserTypeDto

None.

RoleId

integer

None.

Role

RoleDto

None.

CreatedOn

date

None.

Id

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Password": "sample string 1",
  "City": "sample string 2",
  "MobileNumber": "sample string 3",
  "Address": "sample string 4",
  "Phone": "sample string 5",
  "UserName": "sample string 6",
  "Email": "sample string 7",
  "Name": "sample string 8",
  "Code": "sample string 9",
  "Country": "sample string 10",
  "IsActive": true,
  "UserTypeId": 12,
  "UserType": {
    "Name": "sample string 1",
    "Id": 2
  },
  "RoleId": 13,
  "Role": {
    "Name": "sample string 1",
    "Title": "sample string 2",
    "Permissions": [
      1,
      2
    ],
    "Id": 3
  },
  "CreatedOn": "2026-02-03T07:37:54.4995764-08:00",
  "Id": 15
}

application/xml, text/xml

Sample:
<CreateUserDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MayaserSolutions.Application">
  <Id xmlns="http://schemas.datacontract.org/2004/07/MayaserSolutions.Domain">15</Id>
  <Code xmlns="http://schemas.datacontract.org/2004/07/MayaserSolutions.Domain">sample string 9</Code>
  <Country xmlns="http://schemas.datacontract.org/2004/07/MayaserSolutions.Domain">sample string 10</Country>
  <CreatedOn xmlns="http://schemas.datacontract.org/2004/07/MayaserSolutions.Domain">2026-02-03T07:37:54.4995764-08:00</CreatedOn>
  <Email xmlns="http://schemas.datacontract.org/2004/07/MayaserSolutions.Domain">sample string 7</Email>
  <IsActive xmlns="http://schemas.datacontract.org/2004/07/MayaserSolutions.Domain">true</IsActive>
  <Name xmlns="http://schemas.datacontract.org/2004/07/MayaserSolutions.Domain">sample string 8</Name>
  <Role xmlns="http://schemas.datacontract.org/2004/07/MayaserSolutions.Domain">
    <Id>3</Id>
    <Name>sample string 1</Name>
    <Permissions xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:long>1</d3p1:long>
      <d3p1:long>2</d3p1:long>
    </Permissions>
    <Title>sample string 2</Title>
  </Role>
  <RoleId xmlns="http://schemas.datacontract.org/2004/07/MayaserSolutions.Domain">13</RoleId>
  <UserName xmlns="http://schemas.datacontract.org/2004/07/MayaserSolutions.Domain">sample string 6</UserName>
  <UserType xmlns="http://schemas.datacontract.org/2004/07/MayaserSolutions.Domain">
    <Id>2</Id>
    <Name>sample string 1</Name>
  </UserType>
  <UserTypeId xmlns="http://schemas.datacontract.org/2004/07/MayaserSolutions.Domain">12</UserTypeId>
  <Address xmlns="http://schemas.datacontract.org/2004/07/MayaserSolutions.Domain">sample string 4</Address>
  <City xmlns="http://schemas.datacontract.org/2004/07/MayaserSolutions.Domain">sample string 2</City>
  <MobileNumber xmlns="http://schemas.datacontract.org/2004/07/MayaserSolutions.Domain">sample string 3</MobileNumber>
  <Phone xmlns="http://schemas.datacontract.org/2004/07/MayaserSolutions.Domain">sample string 5</Phone>
  <Password>sample string 1</Password>
</CreateUserDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.