Skip to main content

Create Place

POST 

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

Creates a new Place

Request

Body

    namestringrequired

    A name for this Place.

    Possible values: <= 255 characters

    descriptionstring

    A description of this Place.

    latitudefloatrequired

    This Place's latitude.

    Example: 33.515
    longitudefloatrequired

    This Place's longitude.

    Example: -86.80761
    radius_in_metersintegerrequired

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

Responses

OK

Response Headers
    Schema
      idId (integer)required

      Possible values: >= 1

      created_atdate-time

      The date and time at which this record was created.

      Example: 2023-03-14T13:46:27-06:00
      updated_atdate-time

      The date and time at which this record was most recently updated.

      Example: 2023-03-14T13:46:27-06:00
      account_idId (integer)required

      Possible values: >= 1

      namestringrequired

      A name for this Place.

      addressstringnullablerequired

      This Place's address.

      address_componentsobjectrequired
      descriptionstringnullablerequired

      A description of this Place.

      place_visits_countintegernullablerequired

      The number of times this Place has been visited.

      radius_in_metersintegerrequired

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

      latitudefloatrequired

      This Place's latitude.

      Example: 33.515
      longitudefloatrequired

      This Place's longitude.

      Example: -86.80761
      is_samplebooleanrequired

      Whether this Place is part of Sample Data.

      locationstringrequired

      The location of this Place.

    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 'https://secure.fleetio.com/api/v1/places' \
    -H 'Content-Type: application/json' \
    -H 'Accept: 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
    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!