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": [
{}
]
}
'import requests
url = "https://api.replyke.com/api/v6/:projectId/entities/:entityId"
payload = {
"title": "<string>",
"content": "<string>",
"attachments": [{}],
"keywords": [{}],
"location": {
"longitude": 123,
"latitude": 123
},
"metadata": {},
"mentions": [{}]
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
content: '<string>',
attachments: [{}],
keywords: [{}],
location: {longitude: 123, latitude: 123},
metadata: {},
mentions: [{}]
})
};
fetch('https://api.replyke.com/api/v6/:projectId/entities/:entityId', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.replyke.com/api/v6/:projectId/entities/:entityId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'title' => '<string>',
'content' => '<string>',
'attachments' => [
[
]
],
'keywords' => [
[
]
],
'location' => [
'longitude' => 123,
'latitude' => 123
],
'metadata' => [
],
'mentions' => [
[
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.replyke.com/api/v6/:projectId/entities/:entityId"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"content\": \"<string>\",\n \"attachments\": [\n {}\n ],\n \"keywords\": [\n {}\n ],\n \"location\": {\n \"longitude\": 123,\n \"latitude\": 123\n },\n \"metadata\": {},\n \"mentions\": [\n {}\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.replyke.com/api/v6/:projectId/entities/:entityId")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"content\": \"<string>\",\n \"attachments\": [\n {}\n ],\n \"keywords\": [\n {}\n ],\n \"location\": {\n \"longitude\": 123,\n \"latitude\": 123\n },\n \"metadata\": {},\n \"mentions\": [\n {}\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.replyke.com/api/v6/:projectId/entities/:entityId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"<string>\",\n \"content\": \"<string>\",\n \"attachments\": [\n {}\n ],\n \"keywords\": [\n {}\n ],\n \"location\": {\n \"longitude\": 123,\n \"latitude\": 123\n },\n \"metadata\": {},\n \"mentions\": [\n {}\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"title": "<string>",
"content": "<string>",
"keywords": [
{}
],
"metadata": {},
"location": {
"type": "<string>",
"coordinates": [
123
]
},
"updatedAt": "<string>"
}Entity Endpoints
Update Entity
Update an existing entity’s properties
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": [
{}
]
}
'import requests
url = "https://api.replyke.com/api/v6/:projectId/entities/:entityId"
payload = {
"title": "<string>",
"content": "<string>",
"attachments": [{}],
"keywords": [{}],
"location": {
"longitude": 123,
"latitude": 123
},
"metadata": {},
"mentions": [{}]
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
content: '<string>',
attachments: [{}],
keywords: [{}],
location: {longitude: 123, latitude: 123},
metadata: {},
mentions: [{}]
})
};
fetch('https://api.replyke.com/api/v6/:projectId/entities/:entityId', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.replyke.com/api/v6/:projectId/entities/:entityId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'title' => '<string>',
'content' => '<string>',
'attachments' => [
[
]
],
'keywords' => [
[
]
],
'location' => [
'longitude' => 123,
'latitude' => 123
],
'metadata' => [
],
'mentions' => [
[
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.replyke.com/api/v6/:projectId/entities/:entityId"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"content\": \"<string>\",\n \"attachments\": [\n {}\n ],\n \"keywords\": [\n {}\n ],\n \"location\": {\n \"longitude\": 123,\n \"latitude\": 123\n },\n \"metadata\": {},\n \"mentions\": [\n {}\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.replyke.com/api/v6/:projectId/entities/:entityId")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"content\": \"<string>\",\n \"attachments\": [\n {}\n ],\n \"keywords\": [\n {}\n ],\n \"location\": {\n \"longitude\": 123,\n \"latitude\": 123\n },\n \"metadata\": {},\n \"mentions\": [\n {}\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.replyke.com/api/v6/:projectId/entities/:entityId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"<string>\",\n \"content\": \"<string>\",\n \"attachments\": [\n {}\n ],\n \"keywords\": [\n {}\n ],\n \"location\": {\n \"longitude\": 123,\n \"latitude\": 123\n },\n \"metadata\": {},\n \"mentions\": [\n {}\n ]\n}"
response = http.request(request)
puts response.read_body{
"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
The ID of the entity to update
Body Parameters
Updated title of the entity
Updated content
Updated attachments
Updated list of keywords
Updated metadata
Updated mentions list with objects like
{ id: string, username: string }Response
Returns the updated entity object with all fields.Unique entity identifier
Updated entity title
Updated entity content
Updated keywords array
Updated metadata
Last update timestamp in ISO 8601 format
Error Responses
Missing Entity ID - 400 Bad Request
Missing Entity ID - 400 Bad Request
{
"error": "Missing entityId in request.",
"code": "entity/invalid-id"
}
Unauthorized - 403 Forbidden
Unauthorized - 403 Forbidden
{
"error": "User is not authorized to update this entity.",
"code": "entity/unauthorized"
}
Entity Not Found - 404 Not Found
Entity Not Found - 404 Not Found
{
"error": "Entity not found.",
"code": "entity/not-found"
}
Server Error - 500 Internal Server Error
Server Error - 500 Internal Server Error
{
"error": "Internal server error.",
"code": "entity/server-error",
"details": "<Error message>"
}
Notes
- Fields not included in the request body will remain unchanged.
- The
locationfield, if updated, must include bothlongitudeandlatitude. - A webhook
validateEntityUpdatedis triggered before the update is applied.
⌘I

