POST api/WorkLocation

Request Information

URI Parameters

None.

Body Parameters

WorkLocationDTO
NameDescriptionTypeAdditional information
isNew

boolean

None.

WorkLocationCode

string

String length: inclusive between 0 and 10

CompanyCode

string

String length: inclusive between 0 and 10

CorporationCode

string

String length: inclusive between 0 and 20

BillAccount

string

String length: inclusive between 0 and 10

PoolId

string

String length: inclusive between 0 and 10

PoolName

string

String length: inclusive between 0 and 50

RegionCode

string

String length: inclusive between 0 and 10

WorkLocationName

string

String length: inclusive between 0 and 100

WorkLocationShortName

string

String length: inclusive between 0 and 60

SameAsCompanyAddress

boolean

None.

Address

string

String length: inclusive between 0 and 60

Suite

string

String length: inclusive between 0 and 10

City

string

String length: inclusive between 0 and 30

State

string

String length: inclusive between 0 and 2

Country

string

String length: inclusive between 0 and 15

Zip

string

String length: inclusive between 0 and 10

Contactor

string

String length: inclusive between 0 and 40

Phone

string

String length: inclusive between 0 and 20

Fax

string

String length: inclusive between 0 and 20

Email

string

String length: inclusive between 0 and 40

RiskLevel

integer

None.

Notes

string

String length: inclusive between 0 and 255

ValidFlag

boolean

None.

DateCreated

date

None.

CompanyName

string

String length: inclusive between 0 and 100

Longitude

decimal number

None.

Latitude

decimal number

None.

DANoOfEmployee

integer

None.

Regulation

string

String length: inclusive between 0 and 8000

BillAccountAddress

string

String length: inclusive between 0 and 60

ClientCode

string

String length: inclusive between 0 and 200

HasEmployee

boolean

None.

ClientCode_2

string

String length: inclusive between 0 and 200

BusinessUnitName

string

String length: inclusive between 0 and 200

DivisionName

string

String length: inclusive between 0 and 200

SubDivisionName

string

String length: inclusive between 0 and 200

Request Formats

application/json, text/json

Sample:
{
  "isNew": true,
  "WorkLocationCode": "sample string 2",
  "CompanyCode": "sample string 3",
  "CorporationCode": "sample string 4",
  "BillAccount": "sample string 5",
  "PoolId": "sample string 6",
  "PoolName": "sample string 7",
  "RegionCode": "sample string 8",
  "WorkLocationName": "sample string 9",
  "WorkLocationShortName": "sample string 10",
  "SameAsCompanyAddress": true,
  "Address": "Sample String 12",
  "Suite": "Sample String 13",
  "City": "sample string 14",
  "State": "sample string 15",
  "Country": "sample string 16",
  "Zip": "sample string 17",
  "Contactor": "sample string 18",
  "Phone": "sample string 19",
  "Fax": "sample string 20",
  "Email": "sample string 21",
  "RiskLevel": 1,
  "Notes": "sample string 22",
  "ValidFlag": true,
  "DateCreated": "2025-04-04T05:00:26.0816795-07:00",
  "CompanyName": "sample string 25",
  "Longitude": 1.1,
  "Latitude": 1.1,
  "DANoOfEmployee": 26,
  "Regulation": "sample string 27",
  "BillAccountAddress": "sample string 28",
  "ClientCode": "sample string 29",
  "HasEmployee": true,
  "ClientCode_2": "sample string 31",
  "BusinessUnitName": "sample string 32",
  "DivisionName": "sample string 33",
  "SubDivisionName": "sample string 34"
}

application/xml, text/xml

Sample:
<WorkLocationDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">
  <Address>Sample String 12</Address>
  <BillAccount>sample string 5</BillAccount>
  <BillAccountAddress>sample string 28</BillAccountAddress>
  <BusinessUnitName>sample string 32</BusinessUnitName>
  <City>sample string 14</City>
  <ClientCode>sample string 29</ClientCode>
  <ClientCode_2>sample string 31</ClientCode_2>
  <CompanyCode>sample string 3</CompanyCode>
  <CompanyName>sample string 25</CompanyName>
  <Contactor>sample string 18</Contactor>
  <CorporationCode>sample string 4</CorporationCode>
  <Country>sample string 16</Country>
  <DANoOfEmployee>26</DANoOfEmployee>
  <DateCreated>2025-04-04T05:00:26.0816795-07:00</DateCreated>
  <DivisionName>sample string 33</DivisionName>
  <Email>sample string 21</Email>
  <Fax>sample string 20</Fax>
  <HasEmployee>true</HasEmployee>
  <Latitude>1.1</Latitude>
  <Longitude>1.1</Longitude>
  <Notes>sample string 22</Notes>
  <Phone>sample string 19</Phone>
  <PoolId>sample string 6</PoolId>
  <PoolName>sample string 7</PoolName>
  <RegionCode>sample string 8</RegionCode>
  <Regulation>sample string 27</Regulation>
  <RiskLevel>1</RiskLevel>
  <SameAsCompanyAddress>true</SameAsCompanyAddress>
  <State>sample string 15</State>
  <SubDivisionName>sample string 34</SubDivisionName>
  <Suite>Sample String 13</Suite>
  <ValidFlag>true</ValidFlag>
  <WorkLocationCode>sample string 2</WorkLocationCode>
  <WorkLocationName>sample string 9</WorkLocationName>
  <WorkLocationShortName>sample string 10</WorkLocationShortName>
  <Zip>sample string 17</Zip>
  <isNew>true</isNew>
</WorkLocationDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AsapResponseOfWorkLocationDTO
NameDescriptionTypeAdditional information
isSuccess

boolean

None.

message

string

None.

jsonObj

WorkLocationDTO

None.

totalCount

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "isSuccess": true,
  "message": "sample string 2",
  "jsonObj": {
    "isNew": true,
    "WorkLocationCode": "sample string 2",
    "CompanyCode": "sample string 3",
    "CorporationCode": "sample string 4",
    "BillAccount": "sample string 5",
    "PoolId": "sample string 6",
    "PoolName": "sample string 7",
    "RegionCode": "sample string 8",
    "WorkLocationName": "sample string 9",
    "WorkLocationShortName": "sample string 10",
    "SameAsCompanyAddress": true,
    "Address": "Sample String 12",
    "Suite": "Sample String 13",
    "City": "sample string 14",
    "State": "sample string 15",
    "Country": "sample string 16",
    "Zip": "sample string 17",
    "Contactor": "sample string 18",
    "Phone": "sample string 19",
    "Fax": "sample string 20",
    "Email": "sample string 21",
    "RiskLevel": 1,
    "Notes": "sample string 22",
    "ValidFlag": true,
    "DateCreated": "2025-04-04T05:00:26.1072345-07:00",
    "CompanyName": "sample string 25",
    "Longitude": 1.1,
    "Latitude": 1.1,
    "DANoOfEmployee": 26,
    "Regulation": "sample string 27",
    "BillAccountAddress": "sample string 28",
    "ClientCode": "sample string 29",
    "HasEmployee": true,
    "ClientCode_2": "sample string 31",
    "BusinessUnitName": "sample string 32",
    "DivisionName": "sample string 33",
    "SubDivisionName": "sample string 34"
  },
  "totalCount": 3
}

application/xml, text/xml

Sample:
<AsapResponseOfWorkLocationDTO3NYuOdgi xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.Common">
  <isSuccess>true</isSuccess>
  <jsonObj xmlns:d2p1="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">
    <d2p1:Address>Sample String 12</d2p1:Address>
    <d2p1:BillAccount>sample string 5</d2p1:BillAccount>
    <d2p1:BillAccountAddress>sample string 28</d2p1:BillAccountAddress>
    <d2p1:BusinessUnitName>sample string 32</d2p1:BusinessUnitName>
    <d2p1:City>sample string 14</d2p1:City>
    <d2p1:ClientCode>sample string 29</d2p1:ClientCode>
    <d2p1:ClientCode_2>sample string 31</d2p1:ClientCode_2>
    <d2p1:CompanyCode>sample string 3</d2p1:CompanyCode>
    <d2p1:CompanyName>sample string 25</d2p1:CompanyName>
    <d2p1:Contactor>sample string 18</d2p1:Contactor>
    <d2p1:CorporationCode>sample string 4</d2p1:CorporationCode>
    <d2p1:Country>sample string 16</d2p1:Country>
    <d2p1:DANoOfEmployee>26</d2p1:DANoOfEmployee>
    <d2p1:DateCreated>2025-04-04T05:00:26.1072345-07:00</d2p1:DateCreated>
    <d2p1:DivisionName>sample string 33</d2p1:DivisionName>
    <d2p1:Email>sample string 21</d2p1:Email>
    <d2p1:Fax>sample string 20</d2p1:Fax>
    <d2p1:HasEmployee>true</d2p1:HasEmployee>
    <d2p1:Latitude>1.1</d2p1:Latitude>
    <d2p1:Longitude>1.1</d2p1:Longitude>
    <d2p1:Notes>sample string 22</d2p1:Notes>
    <d2p1:Phone>sample string 19</d2p1:Phone>
    <d2p1:PoolId>sample string 6</d2p1:PoolId>
    <d2p1:PoolName>sample string 7</d2p1:PoolName>
    <d2p1:RegionCode>sample string 8</d2p1:RegionCode>
    <d2p1:Regulation>sample string 27</d2p1:Regulation>
    <d2p1:RiskLevel>1</d2p1:RiskLevel>
    <d2p1:SameAsCompanyAddress>true</d2p1:SameAsCompanyAddress>
    <d2p1:State>sample string 15</d2p1:State>
    <d2p1:SubDivisionName>sample string 34</d2p1:SubDivisionName>
    <d2p1:Suite>Sample String 13</d2p1:Suite>
    <d2p1:ValidFlag>true</d2p1:ValidFlag>
    <d2p1:WorkLocationCode>sample string 2</d2p1:WorkLocationCode>
    <d2p1:WorkLocationName>sample string 9</d2p1:WorkLocationName>
    <d2p1:WorkLocationShortName>sample string 10</d2p1:WorkLocationShortName>
    <d2p1:Zip>sample string 17</d2p1:Zip>
    <d2p1:isNew>true</d2p1:isNew>
  </jsonObj>
  <message>sample string 2</message>
  <totalCount>3</totalCount>
</AsapResponseOfWorkLocationDTO3NYuOdgi>