Skip to main content
Increment Entity Views
Increments an entity’s views counter and returns the updated entity.
This endpoint requires a service key and cannot be called with an end-user token. It always acts as your app: sending actingUserId returns 400 entity/unsupported-param. Count views from your own backend rather than from the client, so a browser cannot inflate the number.

Path Parameters

string
required
UUID of the entity.

Body Parameters

number
How much to add to the counter: a JSON integer of at least 1. Defaults to 1 (an empty body or no body increments by one). A string such as "3", a fraction or 0 returns 400 entity/invalid-body. Pass a batch total to record views your backend has buffered rather than calling the endpoint once per view.
Example body

Response

Returns the full updated Entity, with views reflecting the increment.
string
UUID of the entity.
number
The view count after the increment.

Error Responses

Returned when count is not a JSON integer of at least 1 (a string, a fraction or 0).
Returned when count is sent in the query string. On this endpoint it goes in the request body.
The request sent actingUserId. This endpoint always acts as the app, so no caller may name a user.