Get the location details.
get
/connectedWorker/clientapi/v2/orgs/{orgId}/projects/{projectId}/locations/{locationId}
This operation retrieves the location details within a specific project.
Request
Path Parameters
-
locationId: string
Location identifier
-
orgId: string
Organization identifier
-
projectId: string
Project identifier
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Location was successfully retrieved.
Root Schema : Location
Type:
Show Source
object
-
description(optional):
string
Description of the locationExample:
Description of the location
-
generated(optional):
boolean
Flag 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:
true
True if the location has been marked as hazardous, false otherwiseExample:false
-
id(optional):
string
Read Only:
true
The unique id of the objectExample:53
-
links(optional):
array links
-
locationPlanId(optional):
string
Id of the location plan, the location is associated withExample:
51
-
maxEmployeeCount(optional):
integer(int64)
Minimum Value:
1
Maximum amount of employees that can be in the location without penalty. Note that both maxEmployeeCount and maxEmployeeTime must be set together to null or not null values. If set to null, there is no restrictionExample:51
-
maxEmployeeTime(optional):
integer(int64)
Minimum Value:
0
The amount of time that the number of employees can be higher than maxEmployeeCount in a location without any penalty. Note that both maxEmployeeCount and maxEmployeeTime must be set together to null or not null values. If set to null, there is no restrictionExample:51
-
name:
string
Minimum Length:
0
Maximum Length:255
Name of the location. It must be unique per project, max length is 255 charactersExample:My location name
-
parentId(optional):
string
Parent location specified by its identifierExample:
51
-
reenterTime(optional):
integer(int64)
Minimum Value:
0
Amount of time that employee must spend outside the location to reenter it again. If set to null, there is no restrictionExample:51
-
restrictedTime(optional):
integer(int64)
Minimum Value:
1
Maximum amount of time that employee can spend in the location in seconds. If set to null, there is no restrictionExample:51
-
tags(optional):
array tags
Unique Items Required:
true
Tags associated with the location -
timeZone(optional):
string
Time zone where of the locationExample:
Europe/Paris
-
type(optional):
string
Read Only:
true
Allowed Values:[ "REGULAR", "ASSET" ]
Type of the location. This field indicates whether the location was created from REST endpoint (REGULAR) or from integration (INTEGRATION). Location(s) of type REGULAR are updatableExample:REGULAR
Nested Schema : Link
Type:
Show Source
object
-
href:
string
The target resource's URI
-
rel:
string
Relation type