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

Site

from xurrent import Site · module xurrent.sites · API resource /sites · Xurrent API docs

A site (location) of people and configuration items.

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
city Optional[str] None
country Optional[str] None
time_zone Optional[str] None
disabled Optional[bool] None

Class methods

get_by_id

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

API: GET /sites/{id}

get_sites

Site.get_sites(connection_object: XurrentApiHelper, predefinedFilter: SitePredefinedFilter = None, queryfilter: dict = None) -> List[T]

API: GET /sites · Enums: SitePredefinedFilter

create

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

API: POST /sites

Methods

ref_str

site.ref_str() -> str

update

site.update(data: dict) -> T

API: PATCH /sites/{id}

enable

site.enable() -> T

disable

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

archive

site.archive() -> T

API: POST /sites/{id}/archive

trash

site.trash() -> T

API: POST /sites/{id}/trash

restore

site.restore() -> T

API: POST /sites/{id}/restore

Enums

SitePredefinedFilter

Used by: Site.get_sites

Value Description
disabled
enabled
directory
support_domain

Cross references

Used by:

Clone this wiki locally