Skip to content

TimeAllocation

Fabian Steiner edited this page Nov 4, 2026 · 2 revisions

TimeAllocation

from xurrent import TimeAllocation · module xurrent.time_allocations · API resource /time_allocations · Xurrent API docs

A time allocation: an activity (e.g. a meeting or training) for which people register time spent.

Back to the overview

Fields

The named arguments of the constructor. Every other field of the API response is set as an attribute as well.

Field Type Default Converted to
id int
name Optional[str] None
group Optional[str] None
disabled Optional[bool] None
customer_category None TimeAllocationCustomerCategory (unknown values stay text)
service_category None TimeAllocationServiceCategory (unknown values stay text)
description_category None TimeAllocationDescriptionCategory (unknown values stay text)
effort_class None EffortClass

Class methods

get_by_id

TimeAllocation.get_by_id(connection_object: XurrentApiHelper, id: int) -> T

API: GET /time_allocations/{id}

get_time_allocations

TimeAllocation.get_time_allocations(connection_object: XurrentApiHelper, predefinedFilter: TimeAllocationPredefinedFilter = None, queryfilter: dict = None) -> List[T]

API: GET /time_allocations · Enums: TimeAllocationPredefinedFilter

create

TimeAllocation.create(connection_object: XurrentApiHelper, data: dict) -> T

API: POST /time_allocations

Methods

ref_str

time_allocation.ref_str() -> str

update

time_allocation.update(data: dict) -> T

API: PATCH /time_allocations/{id}

enable

time_allocation.enable() -> T

disable

time_allocation.disable() -> T

Enums

TimeAllocationPredefinedFilter

Used by: TimeAllocation.get_time_allocations

Value Description
enabled
disabled

TimeAllocationCustomerCategory

Used by: TimeAllocation.customer_category

Value Description
none
selected
any

TimeAllocationServiceCategory

Used by: TimeAllocation.service_category

Value Description
none
selected
any

TimeAllocationDescriptionCategory

Used by: TimeAllocation.description_category

Value Description
hidden
optional
required

Cross references

Uses:

Used by:

Clone this wiki locally