# HubDB API Request for location field

**URL:** <https://community.hubspot.com/t/hubdb-api-request-for-location-field/133720>\
**Category:** APIs & Integrations\
**Tags:** timeline-and-extensions-apis\
**Created:** [June 2, 2025, 2:06pm UTC](https://community.hubspot.com/t/hubdb-api-request-for-location-field/133720 "2025-06-02T14:06:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cives](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cives/32/57633_2.png) [@cives](https://community.hubspot.com/u/cives)\
**Post date:** [June 2, 2025, 2:06pm UTC](https://community.hubspot.com/t/hubdb-api-request-for-location-field/133720/1 "2025-06-02T14:06:38Z")

</div>

Is this the correct format for a HubDB API request to add a table row, particularly a location field?

I’m getting an error: “message”: “Invalid input JSON on line -1, column -1: Cannot construct instance of `com.hubspot.hubdb.model.types.Location`, problem: lon is required\n at [Source: UNKNOWN; byte offset: #UNKNOWN]”,  
Neither LNG nor LON seems to work, and there isn’t a lot of documentation on this sort of request.

geo": {“type”: “location”, “lat”: 41.8372259, “lng”: -85.6551229}

---

<div class="post-metadata">

**Author:** ![evaldas](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/evaldas/32/69160_2.png) [@evaldas](https://community.hubspot.com/u/evaldas)\
**Post date:** [June 2, 2025, 3:00pm UTC](https://community.hubspot.com/t/hubdb-api-request-for-location-field/133720/2 "2025-06-02T15:00:22Z")

</div>

Hey @cives,

Looks like you are close - just need to update the “lng” to “long”:

{“type”: “location”, “lat”: 41.8372259, “long”: -85.6551229}
