Skip to main content
PUT
/
comments
/
{id}
/
page-url
Update comment page URL
curl --request PUT \
  --url https://api.surefeedback.com/api/v1/comments/{id}/page-url \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "new_page_url": "<string>",
  "update_all_comments": true,
  "old_page_url": "<string>"
}
'
{
  "success": true,
  "message": "Page URL updated successfully",
  "data": {
    "comment": {
      "id": "990e8400-e29b-41d4-a716-446655440004",
      "page_url": "https://example.com/new-home"
    }
  }
}
Updates the page URL for a single comment, or optionally for all comments on the same old page URL.

Path parameters

id
string
required
UUID of the comment.

Request body

new_page_url
string
required
New full page URL for the comment.
update_all_comments
boolean
When true, updates all comments from the old page URL.
old_page_url
string
Required when update_all_comments is true.
{
  "success": true,
  "message": "Page URL updated successfully",
  "data": {
    "comment": {
      "id": "990e8400-e29b-41d4-a716-446655440004",
      "page_url": "https://example.com/new-home"
    }
  }
}