Skip to main content

Update Place

PATCH 

https://secure.fleetio.com/api/v1/places/:id

Update a Place

Request

Path Parameters

    id stringrequired

    Possible values: Value must match regular expression ^[0-9]+$

    The id of the relevant record

Body

    namestring

    A name for this Place.

    Possible values: <= 255 characters

    descriptionstring

    A description of this Place.

    latitudefloat

    This Place's latitude.

    Example: 33.515
    longitudefloat

    This Place's longitude.

    Example: -86.80761
    radius_in_metersinteger

    The radius around this Place's coordinates within which we will consider this Place to have been visited.

Responses

OK

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: Prefix the value with "Token", for example: "Token 76cbe06c49a64".
You can generate a new API key [here](https://secure.fleetio.com/api_keys).
name: Account-Tokentype: apiKeyin: headerdescription: You can find your Account-Token [here](https://secure.fleetio.com/api_keys)
curl -L -X PATCH 'https://secure.fleetio.com/api/v1/places/:id' \
-H 'Content-Type: application/json' \
-H 'Authorization: Token <Authorization>' \
-H 'Account-Token: <Authorization>' \
-d '{
"name": "string",
"description": "string",
"latitude": 33.515,
"longitude": -86.80761,
"radius_in_meters": 0
}'
Request Collapse all
Base URL
https://secure.fleetio.com/api
Auth
Parameters
— pathrequired
Body
{
  "name": "string",
  "description": "string",
  "latitude": 33.515,
  "longitude": -86.80761,
  "radius_in_meters": 0
}
ResponseClear

Click the Send API Request button above and see the response here!