POST api/user/UserUpsert

Request Information

URI Parameters

None.

Body Parameters

Users
NameDescriptionTypeAdditional information
Id

integer

None.

IsSuperAdmin

boolean

None.

SchoolName

string

None.

Email

string

None.

OldPassword

string

None.

Password

string

None.

ConfirmPassword

string

None.

Salt

string

None.

ContactNumber

string

None.

DeviceToken

string

None.

DeviceType

string

None.

FullName

string

None.

FirstName

string

None.

LastName

string

None.

DOB

string

None.

Gender

string

None.

UserName

string

None.

OTP

string

None.

ProfilePhoto

string

None.

StateId

integer

None.

DistrictId

integer

None.

StateName

string

None.

DistrictName

string

None.

RollNo

integer

None.

AvatarFolder

string

None.

Path

string

None.

DocumentPath

string

None.

UserTypeId

integer

None.

UserTypeName

string

None.

IsActive

boolean

None.

NewClassRoomId

integer

None.

ReferalCode

string

None.

CreatedDate

string

None.

ModifiedDate

string

None.

IndexNumber

integer

None.

CreditPoint

decimal number

None.

Token

string

None.

Auth_Token

string

None.

CreateDate

date

Data type: Date

ModifiedDate

date

None.

CreatedBy

integer

None.

ModifiedBy

integer

None.

FieldsToNull

Collection of string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "IsSuperAdmin": true,
  "SchoolName": "sample string 3",
  "Email": "sample string 4",
  "OldPassword": "sample string 5",
  "Password": "sample string 6",
  "ConfirmPassword": "sample string 7",
  "Salt": "sample string 8",
  "ContactNumber": "sample string 9",
  "DeviceToken": "sample string 10",
  "DeviceType": "sample string 11",
  "FullName": "sample string 12",
  "FirstName": "sample string 13",
  "LastName": "sample string 14",
  "DOB": "sample string 15",
  "Gender": "sample string 16",
  "UserName": "sample string 17",
  "OTP": "sample string 18",
  "ProfilePhoto": "sample string 19",
  "StateId": 20,
  "DistrictId": 21,
  "StateName": "sample string 22",
  "DistrictName": "sample string 23",
  "RollNo": 24,
  "AvatarFolder": "sample string 25",
  "Path": "sample string 26",
  "DocumentPath": "sample string 27",
  "UserTypeId": 28,
  "UserTypeName": "sample string 29",
  "IsActive": true,
  "NewClassRoomId": 31,
  "ReferalCode": "sample string 32",
  "CreatedDate": "sample string 33",
  "ModifiedDate": "sample string 34",
  "IndexNumber": 35,
  "CreditPoint": 36.0,
  "Token": "sample string 37",
  "Auth_Token": "sample string 38",
  "CreateDate": "2026-01-09T22:57:50.7531439+00:00",
  "CreatedBy": 1,
  "ModifiedBy": 1
}

text/xml

Sample:
<Users xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/School.Entities.V1">
  <CreateDate xmlns="http://schemas.datacontract.org/2004/07/School.Common">2026-01-09T22:57:50.7531439+00:00</CreateDate>
  <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/School.Common">1</CreatedBy>
  <ModifiedBy xmlns="http://schemas.datacontract.org/2004/07/School.Common">1</ModifiedBy>
  <ModifiedDate xmlns="http://schemas.datacontract.org/2004/07/School.Common">2026-01-09T22:57:50.7531439+00:00</ModifiedDate>
  <Auth_Token xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">sample string 38</Auth_Token>
  <AvatarFolder xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">sample string 25</AvatarFolder>
  <ConfirmPassword xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">sample string 7</ConfirmPassword>
  <ContactNumber xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">sample string 9</ContactNumber>
  <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">sample string 33</CreatedDate>
  <CreditPoint xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">36</CreditPoint>
  <DOB xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">sample string 15</DOB>
  <DeviceToken xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">sample string 10</DeviceToken>
  <DeviceType xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">sample string 11</DeviceType>
  <DistrictId xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">21</DistrictId>
  <DistrictName xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">sample string 23</DistrictName>
  <DocumentPath xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">sample string 27</DocumentPath>
  <Email xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">sample string 4</Email>
  <FirstName xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">sample string 13</FirstName>
  <FullName xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">sample string 12</FullName>
  <Gender xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">sample string 16</Gender>
  <Id xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">1</Id>
  <IndexNumber xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">35</IndexNumber>
  <IsActive xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">true</IsActive>
  <IsSuperAdmin xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">true</IsSuperAdmin>
  <LastName xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">sample string 14</LastName>
  <ModifiedDate xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">sample string 34</ModifiedDate>
  <NewClassRoomId xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">31</NewClassRoomId>
  <OTP xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">sample string 18</OTP>
  <OldPassword xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">sample string 5</OldPassword>
  <Password xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">sample string 6</Password>
  <Path xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">sample string 26</Path>
  <ProfilePhoto xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">sample string 19</ProfilePhoto>
  <ReferalCode xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">sample string 32</ReferalCode>
  <RollNo xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">24</RollNo>
  <Salt xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">sample string 8</Salt>
  <SchoolName xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">sample string 3</SchoolName>
  <StateId xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">20</StateId>
  <StateName xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">sample string 22</StateName>
  <Token xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">sample string 37</Token>
  <UserName xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">sample string 17</UserName>
  <UserTypeId xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">28</UserTypeId>
  <UserTypeName xmlns="http://schemas.datacontract.org/2004/07/School.Entities.Contract">sample string 29</UserTypeName>
</Users>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/xml

Sample:

Sample not available.