POST messages/gps

POST /messages/gps

Updates a persona's GPS coordinates

This is important if social media messages from the persona should come for a specific location

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Request Body

{
"persona_id":"3-850",
"lng":-0.096969,
"lat":51.501658,
"location":"Lambeth, London, GB",
"team_id":123456, // team_id of the Session team
"type":"team"
}
Name
Type
Description

persona

string

persona_id of the persona to update

lng

number

longitude

lat

number

latitude

location

string

any text will work here - there's no match of the string location to the action lon,lat. This allows fictional location "Merril Bay, Goldland"

type

string

must be "team"

Asset object

Name
Type
Description

type

string

image I video I audio I document

assetUrl

string

must be URL to the hosted asset

alt

string

description of asset

Response

Last updated

Was this helpful?