The Working Day Object

AccountWorkingDayType Yes String Name of Working Days 25
HoursPerDay Yes Integer Hours Per Day of Working Days 2
MinimumHoursPerDay Yes Integer Minimum Hours Per Day of Working Days 2
MaximumHoursPerDay Yes Integer Maximum Hours Per Day of Working Days 2
MinimumHoursPerWeek Yes Integer Minimum Hours Per Week of Working Days 2
MaximumHoursPerWeek Yes Integer Maximum Hours Per Week of Working Days 2
WeekStartsOn Yes String Week Start day of Working Days 9
WorkingDays Yes String Working Days of Working Days [ coma seperated values (e.g mon,tue,wed) ] 70
AccountWorkingDayTypeId No Guid Id of Working Days 32
IsDisabled No Boolean Disable Status of Working Days 1
EnableBalanceValidationForTimeOff No Boolean Balance Validation For TimeOff Status of Working Days 1
ShowClockStartEndEmployee No Boolean Show Clock Start / End for Employees of Working Days 1
AccountTimesheetPeriodTypeId No Guid Timesheet PeriodType Id of Working Days 32
TimesheetOverdueAfterDays No Integer Timesheet Overdue After Days of Working Days 2
MinimumPercentagePerDay No Integer Minimum Percentage Per Day of Working Days 3
MaximumPercentagePerDay No Integer Maximum Percentage Per Day of Working Days 3
MinimumPercentagePerWeek No Integer Minimum Percentage Per Week of Working Days 3
MaximumPercentagePerWeek No Integer Maximum Percentage Per Week of Working Days 3
LockPreviousTimesheetPeriods No Integer Lock Number of Previous Timesheet Periods of Working Days 2
LockFutureTimsheetPeriods No Integer Lock Number of Future Timsheet Periods of Working Days 2
LockPreviousNextMonthTimesheetOn No Integer Disable edit Timesheet on Specific date of the month of Working Days 2
LockAllPeriodExceptPrevious No Integer Lock All Timesheet Periods Except Previous of Working Days 2
LockAllPeriodExceptNext No Integer Lock All Timesheet Periods Except Next Period of Working Days 2
LockAllPreviousTimesheets No Boolean Allow Timesheet Entry in previous Period of Working Days 1
LockAllFutureTimesheets No Boolean Allow Timesheet Entry in Future Periods of Working Days 1

List All Working Days

Returns a list of your all Working Days in your TimeLive account.

GET /API/WorkingDays

Example Request

curl "https://demo.livetecs.com/api/WorkingDays" \
      -H "APIKey: {Your API Key}" \
      -H "AuthToken: {Your Authentication Token}" \
      -H "Content-Type: application/json" \
      -H "User-Agent: MyApp (yourname@example.com)"

Example Response

[
     {
        "AccountWorkingDayTypeId": "00000000-0000-0000-0000-000000000000",
        "AccountId": 7606,
        "AccountWorkingDayType": "Standard",
        "HoursPerDay": 8,
        "CreatedByEmployeeId": 0,
        "CreatedOn": "2017-11-01T10:55:31.523+00:00",
        "ModifiedByEmployeeId": 0,
        "ModifiedOn": "2017-11-01T10:55:31.523+00:00",
        "MasterWorkingDayTypeId": "00000000-0000-0000-0000-000000000000",
        "MinimumHoursPerDay": 0,
        "MaximumHoursPerDay": 24,
        "MinimumHoursPerWeek": 0,
        "MaximumHoursPerWeek": 60,
        "AccountTimesheetPeriodTypeId": "00000000-0000-0000-0000-000000000000",
        "TimesheetOverdueAfterDays": null,
        "MinimumPercentagePerDay": 0,
        "MaximumPercentagePerDay": 100,
        "MinimumPercentagePerWeek": 0,
        "MaximumPercentagePerWeek": 500,
        "LockPreviousTimesheetPeriods": null,
        "LockFutureTimsheetPeriods": null,
        "LockPreviousNextMonthTimesheetOn": null,
        "LockAllPeriodExceptPrevious": null,
        "LockAllPeriodExceptNext": null,
        "WeekStartsOn": "Monday",
        "WorkingDays": "Monday , Tuesday , Wednesday , Friday , Saturday",
        "IsDisabled": "No",
        "LockAllPreviousTimesheets": null,
        "LockAllFutureTimesheets": null,
        "EnableBalanceValidationForTimeOff": "Yes",
        "ShowClockStartEndEmployee": null
    },
    {
        "AccountWorkingDayTypeId": "00000000-0000-0000-0000-000000000000",
        "AccountId": 7606,
        "AccountWorkingDayType": "demo",
        "HoursPerDay": 8,
        "CreatedByEmployeeId": 17739,
        "CreatedOn": "2018-06-01T16:27:06.043+00:00",
        "ModifiedByEmployeeId": 17739,
        "ModifiedOn": "2018-06-01T16:31:15.98+00:00",
        "MasterWorkingDayTypeId": null,
        "MinimumHoursPerDay": 5,
        "MaximumHoursPerDay": 8,
        "MinimumHoursPerWeek": 25,
        "MaximumHoursPerWeek": 40,
        "AccountTimesheetPeriodTypeId": "00000000-0000-0000-0000-000000000000",
        "TimesheetOverdueAfterDays": 0,
        "MinimumPercentagePerDay": 0,
        "MaximumPercentagePerDay": 100,
        "MinimumPercentagePerWeek": 0,
        "MaximumPercentagePerWeek": 500,
        "LockPreviousTimesheetPeriods": 0,
        "LockFutureTimsheetPeriods": 0,
        "LockPreviousNextMonthTimesheetOn": 0,
        "LockAllPeriodExceptPrevious": 0,
        "LockAllPeriodExceptNext": 0,
        "WeekStartsOn": "Monday",
        "WorkingDays": "Monday , Tuesday , Wednesday",
        "IsDisabled": "No",
        "LockAllPreviousTimesheets": "No",
        "LockAllFutureTimesheets": "No",
        "EnableBalanceValidationForTimeOff": "Yes",
        "ShowClockStartEndEmployee": "No"
    }
]

Retrieve a Working Day

Retrieves the Working Day with the given ID. Returns a Working Day object and a 200 OK response code if a valid identifier was provided.

GET /API/WorkingDays/{TimeOffTypes_ID}

Example Request

curl "https://demo.livetecs.com/api/WorkingDays/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

[
     {
        "AccountWorkingDayTypeId": "00000000-0000-0000-0000-000000000000",
        "AccountId": 7606,
        "AccountWorkingDayType": "Standard",
        "HoursPerDay": 8,
        "CreatedByEmployeeId": 0,
        "CreatedOn": "2017-11-01T10:55:31.523+00:00",
        "ModifiedByEmployeeId": 0,
        "ModifiedOn": "2017-11-01T10:55:31.523+00:00",
        "MasterWorkingDayTypeId": "00000000-0000-0000-0000-000000000000",
        "MinimumHoursPerDay": 0,
        "MaximumHoursPerDay": 24,
        "MinimumHoursPerWeek": 0,
        "MaximumHoursPerWeek": 60,
        "AccountTimesheetPeriodTypeId": "00000000-0000-0000-0000-000000000000",
        "TimesheetOverdueAfterDays": null,
        "MinimumPercentagePerDay": 0,
        "MaximumPercentagePerDay": 100,
        "MinimumPercentagePerWeek": 0,
        "MaximumPercentagePerWeek": 500,
        "LockPreviousTimesheetPeriods": null,
        "LockFutureTimsheetPeriods": null,
        "LockPreviousNextMonthTimesheetOn": null,
        "LockAllPeriodExceptPrevious": null,
        "LockAllPeriodExceptNext": null,
        "WeekStartsOn": "Monday",
        "WorkingDays": "Monday , Tuesday , Wednesday , Friday , Saturday",
        "IsDisabled": "No",
        "LockAllPreviousTimesheets": null,
        "LockAllFutureTimesheets": null,
        "EnableBalanceValidationForTimeOff": "Yes",
        "ShowClockStartEndEmployee": null
    }
]

Create a Working Day

Creates a Working Day in your TimeLive account and returns the Response Message.

POST /API/WorkingDays
Object Property Required Object Type Description Max Character Length
AccountWorkingDayType Yes String Name of Working Days 25
HoursPerDay Yes Integer Hours Per Day of Working Days 2
MinimumHoursPerDay Yes Integer Minimum Hours Per Day of Working Days 2
MaximumHoursPerDay Yes Integer Maximum Hours Per Day of Working Days 2
MinimumHoursPerWeek Yes Integer Minimum Hours Per Week of Working Days 2
MaximumHoursPerWeek Yes Integer Maximum Hours Per Week of Working Days 2
WeekStartsOn Yes String Week Start day of Working Days 9
WorkingDays Yes String Working Days of Working Days [ coma seperated values (e.g mon,tue,wed) ] 70

Example Request

curl "https://demo.livetecs.com/api/Working Days" \
      -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 "{'WeekStartsOn':'Monday','WorkingDays':'mon,tue','AccountWorkingDayType':'Demo','MinimumHoursPerDay':1,'MaximumHoursPerDay':5,'MinimumHoursPerWeek':2,'MaximumHoursPerWeek':10,'HoursPerDay':2}"

Example Response

[
    {
        "id": "00000000-0000-0000-0000-000000000000",
        "message": "WorkingDayType Added Successfully"
    }
]

Update a Working Day

Update a Working Day in your TimeLive account and returns the Response Message.

POST /API/WorkingDays/{Working Days_ID}

Example Request

curl "https://demo.livetecs.com/api/WorkingDays/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 "{'IsDisabled': true}"

Example Response

[
    {
        "id": "00000000-0000-0000-0000-000000000000",
        "message": "WorkingDayType Updated Successfully"
    }
]

Delete a Working Day

Delete a Working Day. Returns a 200 OK response code if the call succeeded.

DELETE /API/WorkingDays/{WorkingDays_ID}

Example Request

curl "https://demo.livetecs.com/api/WorkingDays/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": "WorkingDayType Deleted Successfully"
    }
]