Skip to content

ProductCategory

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

ProductCategory

from xurrent import ProductCategory · module xurrent.product_categories · API resource /product_categories · Xurrent API docs

A product category that groups products and sets their rule set (e.g. physical asset or software).

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
rule_set None ProductCategoryRuleSet (unknown values stay text)
reference Optional[str] None
disabled Optional[bool] None
picture_uri Optional[str] None
ui_extension None UiExtension

Class methods

get_by_id

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

API: GET /product_categories/{id}

get_product_categories

ProductCategory.get_product_categories(connection_object: XurrentApiHelper, queryfilter: dict = None) -> List[T]

API: GET /product_categories

create

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

API: POST /product_categories

Methods

ref_str

product_category.ref_str() -> str

update

product_category.update(data: dict) -> T

API: PATCH /product_categories/{id}

enable

product_category.enable() -> T

disable

product_category.disable() -> T

Enums

ProductCategoryRuleSet

Used by: ProductCategory.rule_set

Value Description
physical_asset
logical_asset_with_financial_data
logical_asset_without_financial_data
server
software
software_distribution_package

Cross references

Uses:

Used by:

Clone this wiki locally