APIs & Integrations

cives
Contributeur

HubDB API Request for location field

Résolue
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 Votes
1 Solution acceptée
evaldas
Solution
Conseiller clé | Partenaire solutions Platinum
Conseiller clé | Partenaire solutions Platinum

HubDB API Request for location field

Résolue

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.

Voir la solution dans l'envoi d'origine

0 Votes
1 Réponse
evaldas
Solution
Conseiller clé | Partenaire solutions Platinum
Conseiller clé | Partenaire solutions Platinum

HubDB API Request for location field

Résolue

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 Votes