POST api/timeoff

Add time off

Request Information

URI Parameters

None.

Body Parameters

TimeOff
NameDescriptionTypeAdditional information
UserId

globally unique identifier

None.

TimeOffCategory

globally unique identifier

None.

Start

date

None.

End

date

None.

HoursPerDay

decimal number

None.

Notes

string

None.

Status

TimeOffStatusEnum

None.

Approver

globally unique identifier

None.

DateApproved

date

None.

HourTP

Dictionary of date [key] and decimal number [value]

None.

id

globally unique identifier

None.

ConfigId

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": "567c507a-b55c-40d8-b1da-9c00bd9e2c9e",
  "TimeOffCategory": "a16b02b4-85ae-4e53-90d5-6849c7659408",
  "Start": "2024-10-16T17:29:02.0749431+00:00",
  "End": "2024-10-16T17:29:02.0749431+00:00",
  "HoursPerDay": 5.0,
  "Notes": "sample string 6",
  "Status": 0,
  "Approver": "db8120a4-52b8-416c-b7c7-82dd2a71ff08",
  "DateApproved": "2024-10-16T17:29:02.0749431+00:00",
  "HourTP": {
    "2024-10-16T17:29:02.0905702+00:00": 2.0
  },
  "__app__": "WORKPLANNER",
  "__entity_kind__": "WorkPlanner.Models.TimeOff",
  "id": "6eb0c6fd-e8b9-4a6f-b5b5-207929a80d43",
  "RestoreFromId": "00000000-0000-0000-0000-000000000000",
  "ConfigId": "196db2fe-3f13-4a09-8611-a7808a07fb1d",
  "_ts": 638646965420749431
}

Response Information

Resource Description

TimeOff
NameDescriptionTypeAdditional information
UserId

globally unique identifier

None.

TimeOffCategory

globally unique identifier

None.

Start

date

None.

End

date

None.

HoursPerDay

decimal number

None.

Notes

string

None.

Status

TimeOffStatusEnum

None.

Approver

globally unique identifier

None.

DateApproved

date

None.

HourTP

Dictionary of date [key] and decimal number [value]

None.

id

globally unique identifier

None.

ConfigId

globally unique identifier

None.

Response Formats

application/json, text/json

Sample:
{
  "UserId": "8fddd1ea-01d8-4f80-99e2-087f5a492433",
  "TimeOffCategory": "e6a0ca7f-dd5f-40dc-a7c4-d3bd4dbd940f",
  "Start": "2024-10-16T17:29:02.0905702+00:00",
  "End": "2024-10-16T17:29:02.0905702+00:00",
  "HoursPerDay": 5.0,
  "Notes": "sample string 6",
  "Status": 0,
  "Approver": "ce48b52a-58d5-447d-9c8f-d40adc07b766",
  "DateApproved": "2024-10-16T17:29:02.0905702+00:00",
  "HourTP": {
    "2024-10-16T17:29:02.0905702+00:00": 2.0
  },
  "id": "2f96278b-f70a-4ccd-8dae-97d6c5647c00",
  "ConfigId": "c4e34518-aa45-48d0-8658-7b0d02684baf"
}