Locations¶
Manage storage locations, including nested hierarchies and location trees.
LocationsClient
¶
Sub-client for location management endpoints.
Accessed via HomeboxClient.locations.
Source code in homebox/client.py
921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 | |
__init__
¶
get_all_locations
¶
Return all locations in the group.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filterChildren
|
bool | None
|
When |
None
|
Returns:
| Type | Description |
|---|---|
list[LocationOutCount]
|
list[LocationOutCount]: Each location summary includes an
|
Source code in homebox/client.py
create_location
¶
Create a new location.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
LocationCreate
|
Location creation payload. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
LocationSummary |
LocationSummary
|
Summary representation of the newly created location. |
Source code in homebox/client.py
get_locations_tree
¶
Return all locations as a nested tree structure.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
withItems
|
bool | None
|
When |
None
|
Returns:
| Type | Description |
|---|---|
list[TreeItem]
|
list[TreeItem]: Root-level tree nodes; each node may have a
|
Source code in homebox/client.py
get_location
¶
Return the details of a single location.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
id
|
str
|
UUID of the location. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
LocationOut |
LocationOut
|
Full location representation including parent summary, child summaries, and total item price. |
Source code in homebox/client.py
update_location
¶
Replace a location's fields with the provided data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
id
|
str
|
UUID of the location to update. |
required |
data
|
LocationUpdate
|
Updated location payload (name, description, parentId). |
required |
Returns:
| Name | Type | Description |
|---|---|---|
LocationOut |
LocationOut
|
Updated full location representation. |
Source code in homebox/client.py
delete_location
¶
Permanently delete a location.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
id
|
str
|
UUID of the location to delete. |
required |