Skip to content

CustomCollection

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

CustomCollection

from xurrent import CustomCollection · module xurrent.custom_collections · API resource /custom_collections · Xurrent API docs

A custom collection: an account-defined list whose elements can be selected in UI extension fields.

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
reference Optional[str] None
disabled Optional[bool] None
description Optional[str] None

Class methods

get_by_id

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

API: GET /custom_collections/{id}

get_custom_collections

CustomCollection.get_custom_collections(connection_object: XurrentApiHelper, predefinedFilter: CustomCollectionPredefinedFilter = None, queryfilter: dict = None) -> List[T]

API: GET /custom_collections · Enums: CustomCollectionPredefinedFilter

create

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

API: POST /custom_collections

Methods

ref_str

custom_collection.ref_str() -> str

update

custom_collection.update(data: dict) -> T

API: PATCH /custom_collections/{id}

enable

custom_collection.enable() -> T

disable

custom_collection.disable() -> T

get_elements

custom_collection.get_elements(queryfilter: dict = None) -> List

API: GET /custom_collections/{id}/collection_elements · Uses: CustomCollectionElement

Enums

CustomCollectionPredefinedFilter

Used by: CustomCollection.get_custom_collections

Value Description
disabled
enabled

Cross references

Uses:

Used by:

Clone this wiki locally