Skip to main content
PATCH
/
:projectId
/
entities
/
:entityId
Update Entity
curl --request PATCH \
  --url https://api.replyke.com/api/v6/:projectId/entities/:entityId \
  --header 'Content-Type: application/json' \
  --data '{
  "title": "<string>",
  "content": "<string>",
  "attachments": [
    {}
  ],
  "keywords": [
    {}
  ],
  "location": {
    "longitude": 123,
    "latitude": 123
  },
  "metadata": {},
  "mentions": [
    {}
  ]
}'
{
  "id": "<string>",
  "title": "<string>",
  "content": "<string>",
  "keywords": [
    {}
  ],
  "metadata": {},
  "location": {
    "type": "<string>",
    "coordinates": [
      123
    ]
  },
  "updatedAt": "<string>"
}
Updates an existing entity. Only the entity’s creator or a master-level user can perform this action.

Path Parameters

entityId
string
required
The ID of the entity to update

Body Parameters

title
string
Updated title of the entity
content
string
Updated content
attachments
array
Updated attachments
keywords
array
Updated list of keywords
location
object
metadata
object
Updated metadata
mentions
array
Updated mentions list with objects like { id: string, username: string }

Response

Returns the updated entity object with all fields.
id
string
Unique entity identifier
title
string
Updated entity title
content
string
Updated entity content
keywords
array
Updated keywords array
metadata
object
Updated metadata
location
object
updatedAt
string
Last update timestamp in ISO 8601 format

Error Responses

{
  "error": "Missing entityId in request.",
  "code": "entity/invalid-id"
}
{
  "error": "User is not authorized to update this entity.",
  "code": "entity/unauthorized"
}
{
  "error": "Entity not found.",
  "code": "entity/not-found"
}
{
  "error": "Internal server error.",
  "code": "entity/server-error",
  "details": "<Error message>"
}

Notes

  • Fields not included in the request body will remain unchanged.
  • The location field, if updated, must include both longitude and latitude.
  • A webhook validateEntityUpdated is triggered before the update is applied.
I