v1

latestOpenAPI 3.0.32026-07-24156161.2 MB
Comments

Create mass comments

Add Mass Comments

The Add Mass Comments method enables you to add multiple comments at once. You should the following data in the request body:

Request Body

  • The request should be sent as an array of objects in the raw format.

    • creator_user_id (Number): The ID of the user creating the comment.

    • campaign_lead_id (String): The ID of the campaign lead.

    • body (String): The content of the comment.

Response

The response will contain an array of comments, each with the following properties:

  • id (String): The ID of the comment.

  • campaign_lead_id (String): The ID of the campaign lead.

  • creator_user_id (String): The ID of the user who created the comment.

  • body (String): The content of the comment.

  • created_at (String): The timestamp of when the comment was created.

  • success (Boolean): Indicates if the comment was added successfully.

post/comments/mass-comments

Request body

bodystring
campaign_lead_idstring
creator_user_idnumber

Example request

[
  {
    "body": "",
    "campaign_lead_id": "123",
    "creator_user_id": 1
  },
  {
    "body": "test 2",
    "campaign_lead_id": "124",
    "creator_user_id": 1
  }
]

Response

Successful operation / Error

Example response

{
  "comments": [
    {
      "body": "test 1",
      "campaign_lead_id": "123",
      "created_at": "2024-04-20 19:22:24",
      "creator_user_id": "1",
      "id": "194",
      "success": true
    },
    {
      "body": "test 2",
      "campaign_lead_id": "124",
      "created_at": "2024-04-20 19:22:24",
      "creator_user_id": "1",
      "id": "195",
      "success": true
    }
  ]
}