Skip to end of metadata
Go to start of metadata

This documentation is no longer actively supported and may be out of date. Going forward, please visit and bookmark our new site (https://docs.phunware.com/) for up-to-date documentation.

Retrieve a Segment

 

This method is used to retrieve a segment by segment ID.

Method

GET

URL

http://map-api.phunware.com/v1.1/segments/[id]

Headers

X-Auth (see Security)

Query Parameters

Required parameters are underlined.

Parameter

Value

Description

draftStatus

string

Either "LIVE" or "DRAFT". Defaults to "LIVE".

Example Request

GET
http://map-api.phunware.com/v1.1/segments/512

Response

A successful response will have a 200 status code and a body containing an object with segment data:

{
    "id": <integer>,
    "startPointId": <integer>,
    "endPointId": <integer>,
    "floorId": <integer>,
    "externalId": <integer>
}

See Mapping API Response Handling for error payloads.

Example Response

Example body of a successful response:

{
    "id": 512,
    "startPointId": 78757,
    "endPointId": 78758,
    "floorId": 17,
    "externalId": 512
}

ON THIS PAGE

 

 

  • No labels