Get location metadata

GET/projects/{projectId}/entities/{entityId}/location

Base URL: https://api.tinkermode.com

Get the location metadata.

Authentication

Send an Authorization header of the form ModeCloud <AUTH_CODE>.

Must contain a user API key of a user with permission to read the entity location, a service account token with the same permission, or a project API key.

Path parameters

NameTypeRequiredConstraintsDescription
projectIdintegerYesThe unique ID for a specified project.
entityIdstringYesEntity ID (unique within project)

Responses

200 Successful retrieval of location metadata.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
attributeSchemaarrayNoread-only (server-generated)A schema used for visualizing the attributes of location.
collectionIdstringYesread-only (server-generated)A collection ID that the location belongs to.
collectionKeystringYesread-only (server-generated); one of: ancestor, parent, self, homeA type of location collection management pattern.
dataStoreConfigurationobjectYesread-only (server-generated)Data store configuration of location.
Properties of dataStoreConfiguration
PropertyTypeRequiredConstraintsDescription
bulkDataLabelstringNoBulk data label of the module instance.
moduleInstanceIdstringNoModule instance ID for GeoTSDB.
moduleTypestringNoModule type. Must be geotsdb.

401 Authorization is required to access this resource.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

403 Request failed because of denied permission.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

404 The requested location does not exist or is not accessible.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

429 Request failed because of rate limit.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

500 An unexpected error has occurred.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

503 The service is temporarily unavailable.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.