POST api/User/AddorUpdateUser

Request Information

URI Parameters

None.

Body Parameters

UserLoginEntities
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

Username

string

None.

Password

string

None.

FirstName

string

None.

MiddleName

string

None.

LastName

string

None.

BirthDate

date

None.

Phone

string

None.

Email

string

None.

Gender

string

None.

Address

string

None.

GSTNumber

string

None.

StoreId

integer

None.

StoreName

string

None.

LastLoginDate

date

None.

MainUserId

integer

None.

Roles

Collection of AccessRoleModel

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "Username": "sample string 3",
  "Password": "sample string 4",
  "FirstName": "sample string 5",
  "MiddleName": "sample string 6",
  "LastName": "sample string 7",
  "BirthDate": "2021-09-26T21:35:28.3443724+05:30",
  "Phone": "sample string 9",
  "Email": "sample string 10",
  "Gender": "sample string 11",
  "Address": "sample string 12",
  "GSTNumber": "sample string 13",
  "StoreId": 14,
  "StoreName": "sample string 15",
  "LastLoginDate": "2021-09-26T21:35:28.3443724+05:30",
  "MainUserId": 17,
  "Roles": [
    {
      "IsSelected": true,
      "Id": 2,
      "Name": "sample string 3"
    },
    {
      "IsSelected": true,
      "Id": 2,
      "Name": "sample string 3"
    }
  ]
}

text/html

Sample:
{"Id":1,"Name":"sample string 2","Username":"sample string 3","Password":"sample string 4","FirstName":"sample string 5","MiddleName":"sample string 6","LastName":"sample string 7","BirthDate":"2021-09-26T21:35:28.3443724+05:30","Phone":"sample string 9","Email":"sample string 10","Gender":"sample string 11","Address":"sample string 12","GSTNumber":"sample string 13","StoreId":14,"StoreName":"sample string 15","LastLoginDate":"2021-09-26T21:35:28.3443724+05:30","MainUserId":17,"Roles":[{"IsSelected":true,"Id":2,"Name":"sample string 3"},{"IsSelected":true,"Id":2,"Name":"sample string 3"}]}

application/xml, text/xml

Sample:
<UserLoginEntities xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Meridukan_API.Entities.User">
  <Address>sample string 12</Address>
  <BirthDate>2021-09-26T21:35:28.3443724+05:30</BirthDate>
  <Email>sample string 10</Email>
  <FirstName>sample string 5</FirstName>
  <GSTNumber>sample string 13</GSTNumber>
  <Gender>sample string 11</Gender>
  <Id>1</Id>
  <LastLoginDate>2021-09-26T21:35:28.3443724+05:30</LastLoginDate>
  <LastName>sample string 7</LastName>
  <MainUserId>17</MainUserId>
  <MiddleName>sample string 6</MiddleName>
  <Name>sample string 2</Name>
  <Password>sample string 4</Password>
  <Phone>sample string 9</Phone>
  <Roles>
    <AccessRoleModel>
      <Id>2</Id>
      <IsSelected>true</IsSelected>
      <Name>sample string 3</Name>
    </AccessRoleModel>
    <AccessRoleModel>
      <Id>2</Id>
      <IsSelected>true</IsSelected>
      <Name>sample string 3</Name>
    </AccessRoleModel>
  </Roles>
  <StoreId>14</StoreId>
  <StoreName>sample string 15</StoreName>
  <Username>sample string 3</Username>
</UserLoginEntities>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.