Skip to content

Product

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

Product

from xurrent import Product · module xurrent.products · API resource /products · Xurrent API docs

A product (model or type) from which configuration items are created.

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
brand Optional[str] None
model Optional[str] None
category None ProductCategory
rule_set Optional[str] None
disabled Optional[bool] None
depreciation_method None ProductDepreciationMethod (unknown values stay text)
support_team None Team
supplier None Organization
financial_owner None Organization
workflow_manager None Person
service None Service
workflow_template None WorkflowTemplate
ui_extension None UiExtension

Class methods

get_by_id

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

API: GET /products/{id}

get_products

Product.get_products(connection_object: XurrentApiHelper, predefinedFilter: ProductPredefinedFilter = None, queryfilter: dict = None) -> List[T]

API: GET /products · Enums: ProductPredefinedFilter

create

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

API: POST /products

Methods

ref_str

product.ref_str() -> str

update

product.update(data: dict) -> T

API: PATCH /products/{id}

enable

product.enable() -> T

disable

product.disable(prefix: str = '', postfix: str = '') -> T

get_cis

product.get_cis() -> List

API: GET /products/{id}/cis · Uses: ConfigurationItem

Enums

ProductPredefinedFilter

Used by: Product.get_products

Value Description
disabled
enabled
supported_by_my_teams

ProductDepreciationMethod

Used by: Product.depreciation_method

Value Description
not_depreciated
double_declining_balance
reducing_balance
straight_line
sum_of_the_years_digits

Cross references

Uses:

Used by:

Clone this wiki locally