Get all top level locations
get
/connectedWorker/clientapi/v2/projects/{projectId}/locations
This operation retrieves all those locations that do not have a parent location.
Request
Path Parameters
-
projectId: integer(int64)
Project identifier
Response
Supported Media Types
- application/json
200 Response
Locations were successfully updated
Nested Schema : Location
Type:
Show Source
object-
description(optional):
string
Description of the locationExample:
Description of the location -
generated(optional):
boolean
Default Value:
falseFlag describing the origin of a location. If false, location is part of the project view and can be created only by IoTCWProjectManager or IoTCWAdministrator. Otherwise, it describes a custom location, not displayable in project view. Generated location can be created by any employee.Example:false -
geoFenceId(optional):
string
Geofence identifier associated with the locationExample:
828EDB09-A516-4485-AB60-CE1CFF5D8D8E -
hazardous(optional):
boolean
Read Only:
trueDefault Value:falseTrue if the location has been marked as hazardous, false otherwiseExample:false -
id(optional):
integer(int64)
Read Only:
trueThe unique id of the objectExample:53 -
links(optional):
array links
-
locationPlanId(optional):
integer(int64)
Id of the location plan, the location is associated withExample:
51 -
name:
string
Minimum Length:
0Maximum Length:255Name of the location. It must be unique per project, max length is 255 charactersExample:My location name -
parentId(optional):
integer(int64)
Parent location specified by its identifierExample:
51 -
tags(optional):
array tags
Unique Items Required:
trueTags associated with the location
Nested Schema : Link
Type:
Show Source
object-
href:
string
The target resource's URI
-
rel:
string
Relation type