Skip to main content

Close Comment By Comment ID

PUT {{baseUrl}}/comments/close/{commentId}

Description

Close a comment using its unique identifier.

Request

  • Headers:
    • Content-Type: application/json
    • Accept: */*
    • tenantId: <string> (Required)
    • countryCode: <string> (Required)
  • URL:
    • Raw URL: {{baseUrl}}/comments/close/{commentId}
    • Host: {{baseUrl}}
    • Path: /comments/close/{commentId}

Response

  • Status: OK (200)
  • Headers:
    • Content-Type: */*
  • Headers:
    • tenantId: <string>
    • countryCode: <string>
    • Accept: */*

Params

  • commentId: <string> (Required)
  • sale_id: <string> (Required)

Path Variables

  • commentId

Sample Request

curl --location -g --request PUT '{{baseUrl}}/comments/:commentId/close?commentId=%3Cstring%3E&sale_id=%3Cstring%3E' \
--header 'tenantId: <string>' \
--header 'countryCode: <string>' \
--header 'Accept: */*'

Sample Response

{
"message": "<string>",
"data": {
"id": "<long>",
"uuid": "<string>",
"createdAt": "<dateTime>",
"updatedAt": "<dateTime>",
"saleId": "<string>",
"tenantId": "<string>",
"status": "<string>",
"comments": "<string>",
"commentedBy": "<string>",
"commentStatus": "<string>",
"countryCode": "<string>"
},
"meta": {
"currentPage": "<long>",
"from": "<long>",
"to": "<long>",
"perPage": "<long>",
"total": "<long>",
"lastPage": "<long>"
}
}

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request PUT \ 
--url /comments/close/{commentId} \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


Click Try It! to start a request and see the response here!