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.

Update a Resource

 

This method is used to update an existing floor resource.  Only draft resources (i.e. resources that belong to a draft floor) may be modified via this method.

Method

PUT

URL

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

Headers

X-Auth (see Security)

Request Body

See Mapping API Architecture > PUT Methods & Partial Updates.

Parameter

Value

Description

floorId

integer

The identifier of the floor that this resource belongs to.

pdfUrl

string

The URL for the .pdf file associated with this floor.

svgUrl

string

The URL for the .svg file associated with this floor.

zoomLevel

integer

The zoom level for this floor.

{    
    "floorId": <integer>,
    "pdfUrl": <string>,
    "svgUrl": <string>,
    "zoomLevel": <integer>
}

Example Request

PUT the following request body to: http://map-api.phunware.com/v1.1/resources/71

{    
    "floorId": 17,
    "pdfUrl": "http://image.com/level1.pdf",
    "svgUrl": "http://image.com/level1.svg",
    "zoomLevel": 0
} 

Response

A success response will return a 204 status code with no data in the body of the response. See Mapping API Response Handling for error payloads.

ON THIS PAGE

 

 

  • No labels