Skip to main content
PATCH
/
:projectId
/
api
/
v7
/
entities
/
:entityId
/
publish
Publish Entity
curl --request PATCH \
  --url https://api.replyke.com/api/v6/:projectId/api/v7/entities/:entityId/publish
Publishes a draft entity. After publishing, the entity appears in normal feeds and is visible to all users. The entity’s isDraft field is set to false and createdAt is reset to the current time. Authentication required. Only the entity’s author, or a request with a service or master key, can publish a draft.

Path Parameters

entityId
string
required
The UUID of the draft entity to publish.

Response

Returns the published Entity object with isDraft: false.
Publishing resets createdAt to the current time, so the entity appears as “new” in chronological feeds regardless of when the draft was created.
Mention notifications are sent when publishing, not when the draft is created. Users mentioned in the entity receive notifications at publish time.

Error Responses

{ "error": "Draft entity not found", "code": "entity/not-found" }
Returned when no draft with this ID exists (or the entity is not a draft).
{ "error": "Not authorized to publish this draft.", "code": "entity/unauthorized" }