comments

Restore a soft-deleted Comment.

Clears deleted_at if the row was soft-deleted within the last 30 days. Returns 404 outside the window — the pg_cron purge has already run.

post/comments/{id}/restore

Request

  • Base URL: https://restivity.ai/api/v1
  • URL: https://restivity.ai/api/v1/comments/{id}/restore
  • Auth: OAuth 2 (authorization code, authorization URL https://restivity.ai/oauth/authorize, token URL https://restivity.ai/api/oauth/token, scopes: comments:write)

Path parameters

idstring uuid required

Unique Comment identifier.

Response

The restored Comment.

idstring uuid required
task_idstring uuid required
user_idstring uuid required
content_textstring required
mentionsstring[] required
is_editedboolean required
is_internalboolean required
created_atstring required
updated_atstring required
deleted_atstring nullable required
edited_atstring nullable
author_kind'user' | 'agent' | 'assistant' required

Who wrote it — derived by the server from the credential used, never from the payload: user (the person in the app), agent (an OAuth client over MCP/REST, e.g. Claude or Codex), assistant (the in-app Restivity AI). Read-only.

author_client_idstring nullable required

For agent rows: the OAuth client id the token was issued to. Read-only.

author_client_namestring nullable required

For agent rows: the OAuth client name at write time (e.g. "Claude", "Codex"), shown as "via <name>" in the thread. Read-only.

Changes

No recorded changes to this operation across all 1 revision of this API.