PUT api/cfgWarehouse/{id}

Update an existing record from the Warehouses table.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

byte

Required

Body Parameters

cfgWarehouseDb
NameDescriptionTypeAdditional information
WarehouseID

integer

None.

WarehouseCode

string

Required

Max length: 255

WarehouseName

string

Required

Max length: 255

ExternalReferenceID

globally unique identifier

None.

PlaceID

integer

None.

IsActive

boolean

None.

Address1

string

Max length: 50

Address2

string

Max length: 50

City

string

Max length: 30

StateProvinceCode

string

Required

Max length: 10

PostalCode

string

Max length: 10

CountryCode

string

Max length: 3

Phone

string

Max length: 30

Fax

string

Max length: 30

TimeZone

string

Max length: 3

UTCOffset

integer

None.

ServerTimeOffset

integer

None.

DefaultLocationID

integer

None.

TotalRackedPalletPositions

integer

None.

TaskHandlerPersonID

integer

None.

CoupaID

integer

None.

CreatedBy

integer

None.

CreatedDate

date

None.

UpdatedBy

integer

None.

UpdatedDate

date

None.

results

Collection of ValidationResult

None.

Request Formats

application/json, text/json

Sample:
{
  "results": null,
  "WarehouseID": 1,
  "WarehouseCode": "sample string 2",
  "WarehouseName": "sample string 3",
  "ExternalReferenceID": "2d22afce-342d-42c4-ae23-ad81783368d5",
  "PlaceID": 1,
  "IsActive": true,
  "Address1": "sample string 6",
  "Address2": "sample string 7",
  "City": "sample string 8",
  "StateProvinceCode": "sample string 9",
  "PostalCode": "sample string 10",
  "CountryCode": "sample string 11",
  "Phone": "sample string 12",
  "Fax": "sample string 13",
  "TimeZone": "sample string 14",
  "UTCOffset": 1,
  "ServerTimeOffset": 1,
  "DefaultLocationID": 1,
  "TotalRackedPalletPositions": 15,
  "TaskHandlerPersonID": 1,
  "CoupaID": 1,
  "CreatedBy": 16,
  "CreatedDate": "2025-12-06T23:42:06.1397316+00:00",
  "UpdatedBy": 18,
  "UpdatedDate": "2025-12-06T23:42:06.1397316+00:00"
}

application/xml, text/xml

Sample:
<cfgWarehouseDb xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Tables">
  <results xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Utility" />
  <Address1>sample string 6</Address1>
  <Address2>sample string 7</Address2>
  <City>sample string 8</City>
  <CountryCode>sample string 11</CountryCode>
  <CoupaID>1</CoupaID>
  <CreatedBy>16</CreatedBy>
  <CreatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:42:06.1397316Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </CreatedDate>
  <DefaultLocationID>1</DefaultLocationID>
  <ExternalReferenceID>2d22afce-342d-42c4-ae23-ad81783368d5</ExternalReferenceID>
  <Fax>sample string 13</Fax>
  <IsActive>true</IsActive>
  <Phone>sample string 12</Phone>
  <PlaceID>1</PlaceID>
  <PostalCode>sample string 10</PostalCode>
  <ServerTimeOffset>1</ServerTimeOffset>
  <StateProvinceCode>sample string 9</StateProvinceCode>
  <TaskHandlerPersonID>1</TaskHandlerPersonID>
  <TimeZone>sample string 14</TimeZone>
  <TotalRackedPalletPositions>15</TotalRackedPalletPositions>
  <UTCOffset>1</UTCOffset>
  <UpdatedBy>18</UpdatedBy>
  <UpdatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:42:06.1397316Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </UpdatedDate>
  <WarehouseCode>sample string 2</WarehouseCode>
  <WarehouseID>1</WarehouseID>
  <WarehouseName>sample string 3</WarehouseName>
</cfgWarehouseDb>

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

Response Information

Resource Description

UpsertRetOfcfgWarehouseDb
NameDescriptionTypeAdditional information
returnID

integer

None.

results

Collection of ValidationResult

None.

returnItem

cfgWarehouseDb

None.

displayMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "returnID": 1,
  "results": null,
  "returnItem": {
    "results": null,
    "WarehouseID": 1,
    "WarehouseCode": "sample string 2",
    "WarehouseName": "sample string 3",
    "ExternalReferenceID": "2ffddd2b-65b2-4ecf-a250-283886185ed6",
    "PlaceID": 1,
    "IsActive": true,
    "Address1": "sample string 6",
    "Address2": "sample string 7",
    "City": "sample string 8",
    "StateProvinceCode": "sample string 9",
    "PostalCode": "sample string 10",
    "CountryCode": "sample string 11",
    "Phone": "sample string 12",
    "Fax": "sample string 13",
    "TimeZone": "sample string 14",
    "UTCOffset": 1,
    "ServerTimeOffset": 1,
    "DefaultLocationID": 1,
    "TotalRackedPalletPositions": 15,
    "TaskHandlerPersonID": 1,
    "CoupaID": 1,
    "CreatedBy": 16,
    "CreatedDate": "2025-12-06T23:42:06.1397316+00:00",
    "UpdatedBy": 18,
    "UpdatedDate": "2025-12-06T23:42:06.1397316+00:00"
  },
  "displayMessage": "sample string 1"
}

application/xml, text/xml

Sample:
<UpsertRetOfcfgWarehouseDb66KPc_SrH xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Utility">
  <displayMessage>sample string 1</displayMessage>
  <results xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" />
  <returnID>1</returnID>
  <returnItem xmlns:d2p1="http://schemas.datacontract.org/2004/07/WebAPI.Data.Tables">
    <results xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" />
    <d2p1:Address1>sample string 6</d2p1:Address1>
    <d2p1:Address2>sample string 7</d2p1:Address2>
    <d2p1:City>sample string 8</d2p1:City>
    <d2p1:CountryCode>sample string 11</d2p1:CountryCode>
    <d2p1:CoupaID>1</d2p1:CoupaID>
    <d2p1:CreatedBy>16</d2p1:CreatedBy>
    <d2p1:CreatedDate xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2025-12-06T23:42:06.1397316Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
    </d2p1:CreatedDate>
    <d2p1:DefaultLocationID>1</d2p1:DefaultLocationID>
    <d2p1:ExternalReferenceID>2ffddd2b-65b2-4ecf-a250-283886185ed6</d2p1:ExternalReferenceID>
    <d2p1:Fax>sample string 13</d2p1:Fax>
    <d2p1:IsActive>true</d2p1:IsActive>
    <d2p1:Phone>sample string 12</d2p1:Phone>
    <d2p1:PlaceID>1</d2p1:PlaceID>
    <d2p1:PostalCode>sample string 10</d2p1:PostalCode>
    <d2p1:ServerTimeOffset>1</d2p1:ServerTimeOffset>
    <d2p1:StateProvinceCode>sample string 9</d2p1:StateProvinceCode>
    <d2p1:TaskHandlerPersonID>1</d2p1:TaskHandlerPersonID>
    <d2p1:TimeZone>sample string 14</d2p1:TimeZone>
    <d2p1:TotalRackedPalletPositions>15</d2p1:TotalRackedPalletPositions>
    <d2p1:UTCOffset>1</d2p1:UTCOffset>
    <d2p1:UpdatedBy>18</d2p1:UpdatedBy>
    <d2p1:UpdatedDate xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2025-12-06T23:42:06.1397316Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
    </d2p1:UpdatedDate>
    <d2p1:WarehouseCode>sample string 2</d2p1:WarehouseCode>
    <d2p1:WarehouseID>1</d2p1:WarehouseID>
    <d2p1:WarehouseName>sample string 3</d2p1:WarehouseName>
  </returnItem>
</UpsertRetOfcfgWarehouseDb66KPc_SrH>