POST api/User/AddLocation

Request Information

URI Parameters

None.

Body Parameters

UserLocationModel
NameDescriptionTypeAdditional information
UserLocationId

integer

None.

Location

string

None.

StartDate

date

None.

EndDate

date

None.

DeactivationDate

date

None.

StartDate_STRING

string

None.

EndDate_STRING

string

None.

DeactivationDate_STRING

string

None.

DeactivationReason

string

None.

AuthorizedBy

string

None.

IsDeactivate

integer

None.

UserId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "UserLocationId": 1,
  "Location": "sample string 2",
  "StartDate": "2026-04-17T13:01:28.2330095+00:00",
  "EndDate": "2026-04-17T13:01:28.2330095+00:00",
  "DeactivationDate": "2026-04-17T13:01:28.2330095+00:00",
  "StartDate_STRING": "sample string 4",
  "EndDate_STRING": "sample string 5",
  "DeactivationDate_STRING": "sample string 6",
  "DeactivationReason": "sample string 7",
  "AuthorizedBy": "sample string 8",
  "IsDeactivate": 9,
  "UserId": 10
}

application/xml, text/xml

Sample:
<UserLocationModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CSI.Cx360.WebAPI.Models">
  <AuthorizedBy>sample string 8</AuthorizedBy>
  <DeactivationDate>2026-04-17T13:01:28.2330095+00:00</DeactivationDate>
  <DeactivationDate_STRING>sample string 6</DeactivationDate_STRING>
  <DeactivationReason>sample string 7</DeactivationReason>
  <EndDate>2026-04-17T13:01:28.2330095+00:00</EndDate>
  <EndDate_STRING>sample string 5</EndDate_STRING>
  <IsDeactivate>9</IsDeactivate>
  <Location>sample string 2</Location>
  <StartDate>2026-04-17T13:01:28.2330095+00:00</StartDate>
  <StartDate_STRING>sample string 4</StartDate_STRING>
  <UserId>10</UserId>
  <UserLocationId>1</UserLocationId>
</UserLocationModel>

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

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />