Say where you are pointing
POST
/presence/cursor
const url = 'https://example.com/presence/cursor';const options = { method: 'POST', headers: { cookie: 'bottle.session_token=<bottle.session_token>', 'Content-Type': 'application/json' }, body: '{"tabId":"example","page":"example","latitude":1,"longitude":1,"anchors":[{"id":"example","x":1,"y":1}],"holding":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/presence/cursor \ --header 'Content-Type: application/json' \ --cookie bottle.session_token=<bottle.session_token> \ --data '{ "tabId": "example", "page": "example", "latitude": 1, "longitude": 1, "anchors": [ { "id": "example", "x": 1, "y": 1 } ], "holding": "example" }'Where the pointer is on the rounds map, as a point, so everyone watching sees it in the same place whatever the size of their screen. Not kept: passed straight on to /events as cursor. Send at most a few times a second.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
tabId
required
string
page
required
string
latitude
number | null
longitude
number | null
anchors
Array<object>
object
id
required
string
x
required
number
y
required
number
holding
string | null
Examplegenerated
{ "tabId": "example", "page": "example", "latitude": 1, "longitude": 1, "anchors": [ { "id": "example", "x": 1, "y": 1 } ], "holding": "example"}Responses
Section titled “Responses”Passed on
Not signed in
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Not a member, or without the permission this needs
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Validation failed
Media typeapplication/json
object
error
required
string
message
required
string
issues
required
Array<object>
object
path
required
string
message
required
string
Example
{ "error": "validation", "issues": [ { "path": "email", "message": "Invalid email" } ]}