POST api/NTCosCompany/PostCOSServiceWorkLocation
Request Information
URI Parameters
None.
Body Parameters
Collection of COSServiceWorkLocationDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| CorporationCode | string |
String length: inclusive between 0 and 20 |
|
| WorkLocationCode | string |
String length: inclusive between 0 and 20 |
|
| WorkLocationName | string |
String length: inclusive between 0 and 200 |
|
| WorkLocationShortName | string |
String length: inclusive between 0 and 200 |
|
| COSServiceId | integer |
None. |
|
| IsSelected | boolean |
None. |
|
| Address1 | string |
String length: inclusive between 0 and 200 |
|
| Suite | string |
String length: inclusive between 0 and 10 |
|
| City | string |
String length: inclusive between 0 and 100 |
|
| State | string |
String length: inclusive between 0 and 2 |
|
| Country | string |
String length: inclusive between 0 and 50 |
|
| Zip | string |
String length: inclusive between 0 and 10 |
|
| ValidFlag | boolean |
None. |
|
| DateCreated | date |
None. |
|
| DateUpdated | date |
None. |
|
| UserIDCreated | integer |
None. |
|
| UserIDUpdated | integer |
None. |
|
| CompanyCode | string |
String length: inclusive between 0 and 20 |
|
| IsExcludeDiscount | boolean |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"CorporationCode": "sample string 2",
"WorkLocationCode": "sample string 3",
"WorkLocationName": "sample string 4",
"WorkLocationShortName": "sample string 5",
"COSServiceId": 6,
"IsSelected": true,
"Address1": "sample string 8",
"Suite": "sample string 9",
"City": "sample string 10",
"State": "sample string 11",
"Country": "sample string 12",
"Zip": "sample string 13",
"ValidFlag": true,
"DateCreated": "2025-10-30T10:06:42.5295868-07:00",
"DateUpdated": "2025-10-30T10:06:42.5295868-07:00",
"UserIDCreated": 17,
"UserIDUpdated": 18,
"CompanyCode": "sample string 19",
"IsExcludeDiscount": true
},
{
"Id": 1,
"CorporationCode": "sample string 2",
"WorkLocationCode": "sample string 3",
"WorkLocationName": "sample string 4",
"WorkLocationShortName": "sample string 5",
"COSServiceId": 6,
"IsSelected": true,
"Address1": "sample string 8",
"Suite": "sample string 9",
"City": "sample string 10",
"State": "sample string 11",
"Country": "sample string 12",
"Zip": "sample string 13",
"ValidFlag": true,
"DateCreated": "2025-10-30T10:06:42.5295868-07:00",
"DateUpdated": "2025-10-30T10:06:42.5295868-07:00",
"UserIDCreated": 17,
"UserIDUpdated": 18,
"CompanyCode": "sample string 19",
"IsExcludeDiscount": true
}
]
application/xml, text/xml
Sample:
<ArrayOfCOSServiceWorkLocationDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.BL">
<COSServiceWorkLocationDTO>
<CompanyCode>sample string 19</CompanyCode>
<DateCreated>2025-10-30T10:06:42.5295868-07:00</DateCreated>
<DateUpdated>2025-10-30T10:06:42.5295868-07:00</DateUpdated>
<IsExcludeDiscount>true</IsExcludeDiscount>
<UserIDCreated>17</UserIDCreated>
<UserIDUpdated>18</UserIDUpdated>
<ValidFlag>true</ValidFlag>
<Address1>sample string 8</Address1>
<COSServiceId>6</COSServiceId>
<City>sample string 10</City>
<CorporationCode>sample string 2</CorporationCode>
<Country>sample string 12</Country>
<Id>1</Id>
<IsSelected>true</IsSelected>
<State>sample string 11</State>
<Suite>sample string 9</Suite>
<WorkLocationCode>sample string 3</WorkLocationCode>
<WorkLocationName>sample string 4</WorkLocationName>
<WorkLocationShortName>sample string 5</WorkLocationShortName>
<Zip>sample string 13</Zip>
</COSServiceWorkLocationDTO>
<COSServiceWorkLocationDTO>
<CompanyCode>sample string 19</CompanyCode>
<DateCreated>2025-10-30T10:06:42.5295868-07:00</DateCreated>
<DateUpdated>2025-10-30T10:06:42.5295868-07:00</DateUpdated>
<IsExcludeDiscount>true</IsExcludeDiscount>
<UserIDCreated>17</UserIDCreated>
<UserIDUpdated>18</UserIDUpdated>
<ValidFlag>true</ValidFlag>
<Address1>sample string 8</Address1>
<COSServiceId>6</COSServiceId>
<City>sample string 10</City>
<CorporationCode>sample string 2</CorporationCode>
<Country>sample string 12</Country>
<Id>1</Id>
<IsSelected>true</IsSelected>
<State>sample string 11</State>
<Suite>sample string 9</Suite>
<WorkLocationCode>sample string 3</WorkLocationCode>
<WorkLocationName>sample string 4</WorkLocationName>
<WorkLocationShortName>sample string 5</WorkLocationShortName>
<Zip>sample string 13</Zip>
</COSServiceWorkLocationDTO>
</ArrayOfCOSServiceWorkLocationDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
AsapResponseOfListOfCOSServiceWorkLocationDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| isSuccess | boolean |
None. |
|
| message | string |
None. |
|
| jsonObj | Collection of COSServiceWorkLocationDTO |
None. |
|
| totalCount | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"isSuccess": true,
"message": "sample string 2",
"jsonObj": [
{
"Id": 1,
"CorporationCode": "sample string 2",
"WorkLocationCode": "sample string 3",
"WorkLocationName": "sample string 4",
"WorkLocationShortName": "sample string 5",
"COSServiceId": 6,
"IsSelected": true,
"Address1": "sample string 8",
"Suite": "sample string 9",
"City": "sample string 10",
"State": "sample string 11",
"Country": "sample string 12",
"Zip": "sample string 13",
"ValidFlag": true,
"DateCreated": "2025-10-30T10:06:43.0586818-07:00",
"DateUpdated": "2025-10-30T10:06:43.0586818-07:00",
"UserIDCreated": 17,
"UserIDUpdated": 18,
"CompanyCode": "sample string 19",
"IsExcludeDiscount": true
},
{
"Id": 1,
"CorporationCode": "sample string 2",
"WorkLocationCode": "sample string 3",
"WorkLocationName": "sample string 4",
"WorkLocationShortName": "sample string 5",
"COSServiceId": 6,
"IsSelected": true,
"Address1": "sample string 8",
"Suite": "sample string 9",
"City": "sample string 10",
"State": "sample string 11",
"Country": "sample string 12",
"Zip": "sample string 13",
"ValidFlag": true,
"DateCreated": "2025-10-30T10:06:43.0586818-07:00",
"DateUpdated": "2025-10-30T10:06:43.0586818-07:00",
"UserIDCreated": 17,
"UserIDUpdated": 18,
"CompanyCode": "sample string 19",
"IsExcludeDiscount": true
}
],
"totalCount": 3
}
application/xml, text/xml
Sample:
<AsapResponseOfArrayOfCOSServiceWorkLocationDTO3NYuOdgi 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:COSServiceWorkLocationDTO>
<d2p1:CompanyCode>sample string 19</d2p1:CompanyCode>
<d2p1:DateCreated>2025-10-30T10:06:43.0586818-07:00</d2p1:DateCreated>
<d2p1:DateUpdated>2025-10-30T10:06:43.0586818-07:00</d2p1:DateUpdated>
<d2p1:IsExcludeDiscount>true</d2p1:IsExcludeDiscount>
<d2p1:UserIDCreated>17</d2p1:UserIDCreated>
<d2p1:UserIDUpdated>18</d2p1:UserIDUpdated>
<d2p1:ValidFlag>true</d2p1:ValidFlag>
<d2p1:Address1>sample string 8</d2p1:Address1>
<d2p1:COSServiceId>6</d2p1:COSServiceId>
<d2p1:City>sample string 10</d2p1:City>
<d2p1:CorporationCode>sample string 2</d2p1:CorporationCode>
<d2p1:Country>sample string 12</d2p1:Country>
<d2p1:Id>1</d2p1:Id>
<d2p1:IsSelected>true</d2p1:IsSelected>
<d2p1:State>sample string 11</d2p1:State>
<d2p1:Suite>sample string 9</d2p1:Suite>
<d2p1:WorkLocationCode>sample string 3</d2p1:WorkLocationCode>
<d2p1:WorkLocationName>sample string 4</d2p1:WorkLocationName>
<d2p1:WorkLocationShortName>sample string 5</d2p1:WorkLocationShortName>
<d2p1:Zip>sample string 13</d2p1:Zip>
</d2p1:COSServiceWorkLocationDTO>
<d2p1:COSServiceWorkLocationDTO>
<d2p1:CompanyCode>sample string 19</d2p1:CompanyCode>
<d2p1:DateCreated>2025-10-30T10:06:43.0586818-07:00</d2p1:DateCreated>
<d2p1:DateUpdated>2025-10-30T10:06:43.0586818-07:00</d2p1:DateUpdated>
<d2p1:IsExcludeDiscount>true</d2p1:IsExcludeDiscount>
<d2p1:UserIDCreated>17</d2p1:UserIDCreated>
<d2p1:UserIDUpdated>18</d2p1:UserIDUpdated>
<d2p1:ValidFlag>true</d2p1:ValidFlag>
<d2p1:Address1>sample string 8</d2p1:Address1>
<d2p1:COSServiceId>6</d2p1:COSServiceId>
<d2p1:City>sample string 10</d2p1:City>
<d2p1:CorporationCode>sample string 2</d2p1:CorporationCode>
<d2p1:Country>sample string 12</d2p1:Country>
<d2p1:Id>1</d2p1:Id>
<d2p1:IsSelected>true</d2p1:IsSelected>
<d2p1:State>sample string 11</d2p1:State>
<d2p1:Suite>sample string 9</d2p1:Suite>
<d2p1:WorkLocationCode>sample string 3</d2p1:WorkLocationCode>
<d2p1:WorkLocationName>sample string 4</d2p1:WorkLocationName>
<d2p1:WorkLocationShortName>sample string 5</d2p1:WorkLocationShortName>
<d2p1:Zip>sample string 13</d2p1:Zip>
</d2p1:COSServiceWorkLocationDTO>
</jsonObj>
<message>sample string 2</message>
<totalCount>3</totalCount>
</AsapResponseOfArrayOfCOSServiceWorkLocationDTO3NYuOdgi>