The HolidayType Object
Object Property | Required | Object Type | Description | Max Character Length |
---|
AccountHolidayType | Yes | String | Holiday type of Billing | 50 |
AccountHolidayTypeId | No | Integer | Holiday Type Id of Billing | 10 |
IsDisabled | No | Boolean | Disabled Status of Billing | 1 |
List All HolidayTypes
Returns a list of your all HolidayTypes in your UNItekTIME account.
GET /API/HolidayTypes
Example Request
curl "https://demo.unitektime.com/api/HolidayTypes" \
-H "APIKey: {Your API Key}" \
-H "AuthToken: {Your Authentication Token}" \
-H "Content-Type: application/json" \
-H "User-Agent: MyApp (yourname@example.com)"
Example Response
[
{
"AccountHolidayTypeId": "00000000-0000-0000-0000-000000000000",
"AccountHolidayType": "Demo",
"IsDeleted": null,
"IsDisabled": "No"
},
{
"AccountHolidayTypeId": "00000000-0000-0000-0000-000000000000",
"AccountHolidayType": "Demo 2",
"IsDeleted": null,
"IsDisabled": "No"
}
]
Retrieve a HolidayType
Retrieves the HolidayType with the given ID. Returns a HolidayType object and a 200 OK response code if a valid identifier was provided.
GET /API/HolidayTypes/{HolidayType_ID}
Example Request
curl "https://demo.unitektime.com/api/HolidayTypes/00000000-0000-0000-0000-000000000000" \
-H "APIKey: {Your API Key}" \
-H "AuthToken: {Your Authentication Token}" \
-H "Content-Type: application/json" \
-H "User-Agent: MyApp (yourname@example.com)"
Example Response
[
{
"AccountHolidayTypeId": "00000000-0000-0000-0000-000000000000",
"AccountHolidayType": "Demo",
"IsDeleted": null,
"IsDisabled": "No"
}
]
Create a HolidayType
Creates a HolidayType in your UNItekTIME account and returns the Response Message.
POST /API/HolidayTypes
Object Property | Required | Object Type | Description | Max Character Length |
---|
AccountHolidayType | Yes | String | HolidayType type of Billing | 50 |
Example Request
curl "https://demo.unitektime.com/api/HolidayTypes" \
-H "APIKey: {Your API Key}" \
-H "AuthToken: {Your Authentication Token}" \
-H "User-Agent: MyApp (yourname@example.com)" \
-X POST \
-H "Content-Type: application/json" \
-d "{'AccountHolidayType': 'Sample'}"
Example Response
[
{
"id": "0",
"message": "HolidayType Added Successfully"
}
]
Update a HolidayType
Update an HolidayType in your UNItekTIME account and returns the Response Message.
POST /API/HolidayTypes/{HolidayType_ID}
Example Request
curl "https://demo.unitektime.com/api/HolidayTypes/00000000-0000-0000-0000-000000000000" \
-H "APIKey: {Your API Key}" \
-H "AuthToken: {Your Authentication Token}" \
-H "User-Agent: MyApp (yourname@example.com)" \
-X POST \
-H "Content-Type: application/json" \
-d "{'AccountHolidayType': 'Demo'}"
Example Response
[
{
"id": "00000000-0000-0000-0000-000000000000",
"message": "HolidayType Update Successfully"
}
]
Delete a HolidayType
Delete a HolidayType. Returns a 200 OK response code if the call succeeded.
DELETE /API/HolidayType/{HolidayType_ID}
Example Request
curl "https://demo.unitektime.com/api/HolidayTypes/00000000-0000-0000-0000-000000000000" \
-H "APIKey: {Your API Key}" \
-H "AuthToken: {Your Authentication Token}" \
-H "User-Agent: MyApp (yourname@example.com)" \
-X DELETE \
-H "Content-Type: application/json"
Example Response
[
{
"id": "00000000-0000-0000-0000-000000000000",
"message": "HolidayType Deleted successfully"
}
]