Skip to content
SibiSibi Developers
Esc
↑↓navigate↵open⌘Jpreview
On this page

Edit or Delete a Project Comment

Edit or remove a comment you posted on a project

These endpoints let you edit or delete a comment you previously posted with Post a Project Comment. Only the comment’s original author may edit or delete it — you cannot act on a comment posted by Sibi staff, the pro, or another integration.

Typical flow

  1. You post a comment and get back a projectPhaseCommentId (or receive one via the project-phase.comment.created webhook).
  2. To correct it, call edit with the new body.
  3. To remove it, call delete. The comment is soft-deleted — it disappears from every viewer immediately, but this cannot be undone via the API.

Edit a comment

Endpoint: https://api.sibipro.com/projects/v1/phases/{projectPhaseId}/comments/{projectPhaseCommentId}

Authentication: Bearer token with the write:phase-comments scope (Authorization: Bearer {accessToken})

Replaces the body of a comment you authored. Channel, images, and threading cannot be changed after creation — to change those, delete the comment and post a new one.

Path parameters

projectPhaseId

string — Required. ID of the project phase the comment belongs to.

projectPhaseCommentId

string — Required. ID of the comment to edit (returned from Post a Project Comment or a project-phase.comment.created webhook).

Request body

{
  "body": "Correction: the install window is 6/16, not 6/15."
}

body

string — Required. Replacement comment text (1–4000 characters after trimming).

Response 200

{
  "projectPhaseCommentId": "ppc_abc123",
  "projectPhaseId": "phase_xyz",
  "channel": "PUBLIC",
  "body": "Correction: the install window is 6/16, not 6/15.",
  "updatedAt": "2026-06-23T18:35:00.000Z"
}

channel is the channel the comment was created in. A comment you posted through the Sibi app rather than this API can be in a channel other than PUBLIC or SIBI_MANAGER.

Webhooks

Emits project-phase.comment.updated to organizations entitled to the comment’s channel. Sending the body the comment already has changes nothing and emits no event.


Delete a comment

Endpoint: https://api.sibipro.com/projects/v1/phases/{projectPhaseId}/comments/{projectPhaseCommentId}

Authentication: Bearer token with the write:phase-comments scope (Authorization: Bearer {accessToken})

Soft-deletes a comment you authored, hiding it from every viewer. This cannot be undone.

Path parameters

projectPhaseId

string — Required. ID of the project phase the comment belongs to.

projectPhaseCommentId

string — Required. ID of the comment to delete.

Response 200

{
  "deleted": true
}

Webhooks

Emits project-phase.comment.deleted to organizations entitled to the comment’s channel.


Error responses

Both endpoints share the same error shape and codes, except edit’s additional body validation:

HTTP code When Endpoint
400 VALIDATION_ERROR Invalid JSON or schema (e.g. body empty or over 4000 characters) Edit only
401 UNAUTHORIZED Missing or invalid bearer token Both
403 INSUFFICIENT_SCOPE The token does not carry write:phase-comments Both
403 FORBIDDEN The caller cannot view the comment’s channel, or is not the comment’s author Both
404 NOT_FOUND Unknown comment, or the comment does not belong to projectPhaseId Both
500 INTERNAL_ERROR Unexpected server error Both
503 AUTH_UNAVAILABLE The authentication service is temporarily unavailable. Retry shortly Both

Deleting an already-deleted comment, or editing a deleted comment, returns 404 — soft-deleted comments are treated as not found.

Was this page helpful?