POST api/Outlet/Update

Request Information

URI Parameters

None.

Body Parameters

OutletModel
NameDescriptionTypeAdditional information
ID

integer

None.

Name

string

Required

String length: inclusive between 0 and 50

EmailAddress

string

Data type: EmailAddress

PhoneNo

string

None.

CityID

integer

Required

StateID

integer

None.

CountryID

integer

None.

Address

string

None.

City

string

None.

IsActive

boolean

None.

CreatedByUserID

integer

None.

CreatedAt

date

None.

UpdatedAt

date

None.

State

string

None.

Country

string

None.

UpdatePermission

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "Name": "sample string 2",
  "EmailAddress": "sample string 3",
  "PhoneNo": "sample string 4",
  "CityID": 1,
  "StateID": 1,
  "CountryID": 1,
  "Address": "sample string 5",
  "City": "sample string 6",
  "IsActive": true,
  "CreatedByUserID": 1,
  "CreatedAt": "2025-01-22T20:51:09.7003292-06:00",
  "UpdatedAt": "2025-01-22T20:51:09.7003292-06:00",
  "State": "sample string 7",
  "Country": "sample string 8",
  "UpdatePermission": "sample string 9"
}

application/xml, text/xml

Sample:
<OutletModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel">
  <Address>sample string 5</Address>
  <City>sample string 6</City>
  <CityID>1</CityID>
  <Country>sample string 8</Country>
  <CountryID>1</CountryID>
  <CreatedAt>2025-01-22T20:51:09.7003292-06:00</CreatedAt>
  <CreatedByUserID>1</CreatedByUserID>
  <EmailAddress>sample string 3</EmailAddress>
  <ID>1</ID>
  <IsActive>true</IsActive>
  <Name>sample string 2</Name>
  <PhoneNo>sample string 4</PhoneNo>
  <State>sample string 7</State>
  <StateID>1</StateID>
  <UpdatePermission>sample string 9</UpdatePermission>
  <UpdatedAt>2025-01-22T20:51:09.7003292-06:00</UpdatedAt>
</OutletModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

OutletResponse
NameDescriptionTypeAdditional information
OutletModel

OutletModel

None.

ResponseCode

integer

None.

ResponseText

string

None.

Response Formats

application/json, text/json

Sample:
{
  "OutletModel": {
    "ID": 1,
    "Name": "sample string 2",
    "EmailAddress": "sample string 3",
    "PhoneNo": "sample string 4",
    "CityID": 1,
    "StateID": 1,
    "CountryID": 1,
    "Address": "sample string 5",
    "City": "sample string 6",
    "IsActive": true,
    "CreatedByUserID": 1,
    "CreatedAt": "2025-01-22T20:51:09.7003292-06:00",
    "UpdatedAt": "2025-01-22T20:51:09.7003292-06:00",
    "State": "sample string 7",
    "Country": "sample string 8",
    "UpdatePermission": "sample string 9"
  },
  "ResponseCode": 1,
  "ResponseText": "sample string 2"
}

application/xml, text/xml

Sample:
<OutletResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.Response">
  <ResponseCode xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel">1</ResponseCode>
  <ResponseText xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel">sample string 2</ResponseText>
  <OutletModel xmlns:d2p1="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel">
    <d2p1:Address>sample string 5</d2p1:Address>
    <d2p1:City>sample string 6</d2p1:City>
    <d2p1:CityID>1</d2p1:CityID>
    <d2p1:Country>sample string 8</d2p1:Country>
    <d2p1:CountryID>1</d2p1:CountryID>
    <d2p1:CreatedAt>2025-01-22T20:51:09.7003292-06:00</d2p1:CreatedAt>
    <d2p1:CreatedByUserID>1</d2p1:CreatedByUserID>
    <d2p1:EmailAddress>sample string 3</d2p1:EmailAddress>
    <d2p1:ID>1</d2p1:ID>
    <d2p1:IsActive>true</d2p1:IsActive>
    <d2p1:Name>sample string 2</d2p1:Name>
    <d2p1:PhoneNo>sample string 4</d2p1:PhoneNo>
    <d2p1:State>sample string 7</d2p1:State>
    <d2p1:StateID>1</d2p1:StateID>
    <d2p1:UpdatePermission>sample string 9</d2p1:UpdatePermission>
    <d2p1:UpdatedAt>2025-01-22T20:51:09.7003292-06:00</d2p1:UpdatedAt>
  </OutletModel>
</OutletResponse>