POST api/Chat/AddUser

Request Information

URI Parameters

None.

Body Parameters

UserModel
NameDescriptionTypeAdditional information
EmployeeId

decimal number

None.

UserMasterId

decimal number

None.

UserId

string

None.

SocketId

string

None.

IsDisplay

boolean

None.

IsActive

boolean

None.

IsAddedOn

date

None.

IsAddedBy

decimal number

None.

IsUpdatedOn

date

None.

IsUpdatedBy

decimal number

None.

IsDeletedOn

date

None.

IsDeletedBy

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "EmployeeId": 1.0,
  "UserMasterId": 2.0,
  "UserId": "sample string 3",
  "SocketId": "sample string 4",
  "IsDisplay": true,
  "IsActive": true,
  "IsAddedOn": "2025-12-06T08:50:57.8602704+05:30",
  "IsAddedBy": 1.0,
  "IsUpdatedOn": "2025-12-06T08:50:57.8602704+05:30",
  "IsUpdatedBy": 1.0,
  "IsDeletedOn": "2025-12-06T08:50:57.8602704+05:30",
  "IsDeletedBy": 1.0
}

application/xml, text/xml

Sample:
<UserModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DataAccess.Model">
  <EmployeeId>1</EmployeeId>
  <IsActive>true</IsActive>
  <IsAddedBy>1</IsAddedBy>
  <IsAddedOn>2025-12-06T08:50:57.8602704+05:30</IsAddedOn>
  <IsDeletedBy>1</IsDeletedBy>
  <IsDeletedOn>2025-12-06T08:50:57.8602704+05:30</IsDeletedOn>
  <IsDisplay>true</IsDisplay>
  <IsUpdatedBy>1</IsUpdatedBy>
  <IsUpdatedOn>2025-12-06T08:50:57.8602704+05:30</IsUpdatedOn>
  <SocketId>sample string 4</SocketId>
  <UserId>sample string 3</UserId>
  <UserMasterId>2</UserMasterId>
</UserModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.