Skip to main content

POST /visits/{id}/kpivalue

Changes the value of KPI in visit.

Address: POST https://instance_name/api/data/v1.3/visits/{id}/kpivalue/

Content-type: application/json

Path parameters


id integer

Required. Visit ID.

Request body parameters

kpi number

Required. KPI ID.

value number

Required. New value of KPI.

target_value number

KPI target value.


category string


Request example

curl –i –X POST
https://test.inspector-cloud.com/api/data/v1.3/visits/98495168681/kpivalue/
-H ‘Authorization: Token <<your_token>>
–F "kpi=86" \
–F "value=90" \
–F "value=80" \
–F "category=tea" \

Response example

Response code: 200 Visit KPI value changed