Skip to main content
PUT
/
comments
/
subscribers
Update comment subscribers
curl --request PUT \
  --url https://api.surefeedback.com/api/v1/comments/subscribers \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "comment_id": "<string>",
  "user_ids": [
    {}
  ]
}
'
{
  "success": true,
  "message": "Subscribers updated successfully",
  "data": {
    "subscribers": [
      {
        "id": "550e8400-e29b-41d4-a716-446655440000",
        "email": "[email protected]"
      },
      {
        "id": "550e8400-e29b-41d4-a716-446655440111",
        "email": "[email protected]"
      }
    ],
    "count": 2
  }
}
Replaces the current subscriber list for a comment with the provided users.

Request body

comment_id
string
required
UUID of the comment.
user_ids
array
required
Complete replacement list of user IDs.
{
  "success": true,
  "message": "Subscribers updated successfully",
  "data": {
    "subscribers": [
      {
        "id": "550e8400-e29b-41d4-a716-446655440000",
        "email": "[email protected]"
      },
      {
        "id": "550e8400-e29b-41d4-a716-446655440111",
        "email": "[email protected]"
      }
    ],
    "count": 2
  }
}