Spoar
Visitor-level reads

Mark a visitor as internal

PATCH
/v2/projects/{project}/visitors/{visitor}

Updates the visitor, their events and their sessions in this project.

Authorization

AuthorizationBearer <token>

An API token from POST /v2/tokens (at_live_...), or a project's secret key (sk_...) for server-side ingest.

In: header

Path Parameters

project*string

The project id, as listed by GET /v2/projects.

Length1 <= length
visitor*string

The visitor id, as listed by the visitors read.

Request Body

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/v2/projects/string/visitors/string" \  -H "Content-Type: application/json" \  -d '{    "isInternal": true  }'
{  "data": {    "id": "8c4e1f0a-2b3c-4d5e-8f60-718293a4b5c6",    "isInternal": true,    "eventsUpdated": 27,    "sessionsUpdated": 6  }}