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 |
Request Formats
application/json, text/json
Sample:
{
"ID": "bbcb461e-9e0f-4244-aa40-3e66d48a6629",
"RegionID": "62af2d73-0ae5-469f-8172-933e1dca73d5",
"ManagerID": "66f8c600-4c80-4d5f-b1e7-64cab766c807",
"OwnerID": "7c65a590-cb0c-41ae-9e98-09ef17498a30",
"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": "1daf1fae-daee-46a8-b624-17fb03e10011",
"SiteFinCode": "sample string 7",
"SecurityGroupID": "9be46ae0-1640-4349-86cb-d1434474c45f",
"IsOvertime": true,
"IsSickLeave": true,
"IsPublicHolidayOT15": true,
"IsPublicHolidayOT2": true
}
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. |
|
| StackTrace | string |
None. |
|
| Response | ServiceItem |
None. |
Response Formats
application/json, text/json
Sample:
Sample not available.