- create_hris_timeoff - Create a timeoff
- get_hris_timeoff - Retrieve a timeoff
- list_hris_timeoffs - List all timeoffs
- patch_hris_timeoff - Update a timeoff
- remove_hris_timeoff - Remove a timeoff
- update_hris_timeoff - Update a timeoff
Create a timeoff
from unified_python_sdk import UnifiedTo
from unified_python_sdk.models import shared
with UnifiedTo(
security=shared.Security(
jwt="<YOUR_API_KEY_HERE>",
),
) as unified_to:
res = unified_to.timeoff.create_hris_timeoff(request={
"hris_timeoff": {
"user_id": "<id>",
},
"connection_id": "<id>",
})
assert res.hris_timeoff is not None
# Handle response
print(res.hris_timeoff)| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.CreateHrisTimeoffRequest | ✔️ | The request object to use for the request. |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
operations.CreateHrisTimeoffResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.SDKError | 4XX, 5XX | */* |
Retrieve a timeoff
from unified_python_sdk import UnifiedTo
from unified_python_sdk.models import shared
with UnifiedTo(
security=shared.Security(
jwt="<YOUR_API_KEY_HERE>",
),
) as unified_to:
res = unified_to.timeoff.get_hris_timeoff(request={
"connection_id": "<id>",
"id": "<id>",
})
assert res.hris_timeoff is not None
# Handle response
print(res.hris_timeoff)| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.GetHrisTimeoffRequest | ✔️ | The request object to use for the request. |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
operations.GetHrisTimeoffResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.SDKError | 4XX, 5XX | */* |
List all timeoffs
from unified_python_sdk import UnifiedTo
from unified_python_sdk.models import shared
with UnifiedTo(
security=shared.Security(
jwt="<YOUR_API_KEY_HERE>",
),
) as unified_to:
res = unified_to.timeoff.list_hris_timeoffs(request={
"connection_id": "<id>",
})
assert res.hris_timeoffs is not None
# Handle response
print(res.hris_timeoffs)| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.ListHrisTimeoffsRequest | ✔️ | The request object to use for the request. |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
operations.ListHrisTimeoffsResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.SDKError | 4XX, 5XX | */* |
Update a timeoff
from unified_python_sdk import UnifiedTo
from unified_python_sdk.models import shared
with UnifiedTo(
security=shared.Security(
jwt="<YOUR_API_KEY_HERE>",
),
) as unified_to:
res = unified_to.timeoff.patch_hris_timeoff(request={
"hris_timeoff": {
"user_id": "<id>",
},
"connection_id": "<id>",
"id": "<id>",
})
assert res.hris_timeoff is not None
# Handle response
print(res.hris_timeoff)| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.PatchHrisTimeoffRequest | ✔️ | The request object to use for the request. |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
operations.PatchHrisTimeoffResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.SDKError | 4XX, 5XX | */* |
Remove a timeoff
from unified_python_sdk import UnifiedTo
from unified_python_sdk.models import shared
with UnifiedTo(
security=shared.Security(
jwt="<YOUR_API_KEY_HERE>",
),
) as unified_to:
res = unified_to.timeoff.remove_hris_timeoff(request={
"connection_id": "<id>",
"id": "<id>",
})
assert res is not None
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.RemoveHrisTimeoffRequest | ✔️ | The request object to use for the request. |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
operations.RemoveHrisTimeoffResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.SDKError | 4XX, 5XX | */* |
Update a timeoff
from unified_python_sdk import UnifiedTo
from unified_python_sdk.models import shared
with UnifiedTo(
security=shared.Security(
jwt="<YOUR_API_KEY_HERE>",
),
) as unified_to:
res = unified_to.timeoff.update_hris_timeoff(request={
"hris_timeoff": {
"user_id": "<id>",
},
"connection_id": "<id>",
"id": "<id>",
})
assert res.hris_timeoff is not None
# Handle response
print(res.hris_timeoff)| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.UpdateHrisTimeoffRequest | ✔️ | The request object to use for the request. |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
operations.UpdateHrisTimeoffResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.SDKError | 4XX, 5XX | */* |