POST TimeSaver/PostSites
Request Information
URI Parameters
None.
Body Parameters
Site| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | globally unique identifier |
None. |
|
| RegionID | globally unique identifier |
None. |
|
| ManagerID | globally unique identifier |
None. |
|
| OwnerID | globally unique identifier |
None. |
|
| Name | string |
Required |
|
| Description | string |
None. |
|
| Code | string |
None. |
|
| Latitude | decimal number |
None. |
|
| Longitude | decimal number |
None. |
|
| IsActive | boolean |
Required |
|
| Address | string |
None. |
|
| TypeID | globally unique identifier |
None. |
|
| SiteFinCode | string |
None. |
|
| SecurityGroupID | globally unique identifier |
Required |
|
| IsOvertime | boolean |
Required |
|
| IsSickLeave | boolean |
Required |
|
| IsPublicHolidayOT15 | boolean |
Required |
|
| IsPublicHolidayOT2 | boolean |
Required |
|
| ShortSiteName | string |
None. |
|
| IsBCSickLeave | boolean |
Required |
|
| CompanyCode | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": "421f8616-fd8e-41aa-986e-89868c7a0d5a",
"regionID": "97e2bed8-ad75-4306-8d0c-596798e2e2be",
"managerID": "84042bd5-242a-4ce3-9bf3-f598157c207f",
"ownerID": "411aea3b-37ae-4187-8fe7-f8c8b4e41786",
"name": "sample string 2",
"description": "sample string 3",
"code": "sample string 4",
"latitude": 1.1,
"longitude": 1.1,
"isActive": true,
"address": "sample string 6",
"typeID": "09ff031c-e817-4233-8dfa-c944081c3c98",
"siteFinCode": "sample string 7",
"securityGroupID": "783f6b73-fb41-4fac-88a0-13a04349d45c",
"isOvertime": true,
"isSickLeave": true,
"isPublicHolidayOT15": true,
"isPublicHolidayOT2": true,
"shortSiteName": "sample string 13",
"isBCSickLeave": true,
"companyCode": "sample string 15"
}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ServiceResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| IsSuccess | boolean |
None. |
|
| ErrorMessage | string |
None. |
|
| Code | string |
None. |
|
| Response | ServiceItem |
None. |
|
| LatestDataTimestampUtc | date |
None. |
Response Formats
application/json, text/json
Sample:
Sample not available.