/
Location/Site Service (python)
NOTE: Trivore ID Documentation has moved to https://trivoreid.com
The content on this site IS OUT OF DATE!
This space has been archived!
Please go ahead to the new site!
Location/Site Service (python)
List of all options:
Manage locations/sites
Manage locations/sites
from trivoreid.models.locationsite import LocationSite, Coordinate
from trivoreid.utils.criteria import Filter
# get page with all location/sites by the defined criteria
f = Filter(Filter.EQUAL, 'country', 'FI')
page = api.locationsites_service.get_all(f,
start_index=0,
count=5,
sortBy='attribute',
ascending=True,
flat=True)
# create
ls = LocationSite()
ls.name = 'ExampleName'
# the function returns location/site object with the generated id
ls = api.locationsites_service.create(ls)
# update
ls.uri = 'exampleUri'
api.locationsites_service.update(ls)
# get
ls = api.locationsites_service.get(ls.id)
# delete
api.locationsites_service.delete(ls.id)
Location/Site Service Models
, multiple selections available,
Related content
Location/Site Service (java)
Location/Site Service (java)
More like this
Target Service (python)
Target Service (python)
More like this
Product Service (python)
Product Service (python)
More like this
Target Service (java)
Target Service (java)
More like this
Data Storage Service (python)
Data Storage Service (python)
More like this
Namespace Service (python)
Namespace Service (python)
More like this