APIs & Integrations

cives
Contributor

HubDB API Request for location field

SOLVE
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}
0 Upvotes
1 Accepted solution
evaldas
Solution
Key Advisor | Platinum Partner
Key Advisor | Platinum Partner

HubDB API Request for location field

SOLVE

Hey @cives,

 

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

 

{"type": "location", "lat": 41.8372259, "long": -85.6551229}

✔️ Did this post help answer your query? Help the community by marking it as a solution.

View solution in original post

0 Upvotes
1 Reply 1
evaldas
Solution
Key Advisor | Platinum Partner
Key Advisor | Platinum Partner

HubDB API Request for location field

SOLVE

Hey @cives,

 

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

 

{"type": "location", "lat": 41.8372259, "long": -85.6551229}

✔️ Did this post help answer your query? Help the community by marking it as a solution.

0 Upvotes