Skip to main content
PATCH
/
:projectId
/
entities
/
:entityId
/
increment-views
Increment Entity Views
curl --request PATCH \
  --url https://api.replyke.com/api/v6/:projectId/entities/:entityId/increment-views
{
  "id": "<string>",
  "views": 123,
  "title": "<string>",
  "content": "<string>"
}
This endpoint increments the view count of a specific entity by 1. It is typically triggered when a user visits or opens the entity. No authentication is required.

Path Parameters

entityId
string
required
The unique ID of the entity

Response

Returns the updated entity object with the incremented view count.
id
string
Unique entity identifier
views
number
Updated view count
title
string
Entity title
content
string
Entity content

Error Responses

{
  "error": "Invalid entity ID.",
  "code": "entity/invalid-id"
}
{
  "error": "Entity not found.",
  "code": "entity/not-found"
}
{
  "error": "An error occurred while updating entity views.",
  "code": "entity/server-error",
  "details": "<error message>"
}

Notes

  • This endpoint is safe to call multiple times.
  • No authentication is required.
I