Skip to main content

Create Comment

POST {{baseUrl}}/comments/create

Description

Create a new comment.

Request

  • Headers:
    • Content-Type: application/json
    • Accept: */*
  • URL:
    • Raw URL: {{baseUrl}}/comments/create
    • Host: {{baseUrl}}
    • Path: /comments/create
  • Body:
{
"comment": "<string>",
"commentStatus": "<string>",
"commentedBy": "<string>",
"saleId": "<string>",
"status": "<string>"
}

Sample Request

curl --location -g '{{baseUrl}}/comments' \
--header 'tenantId: <string>' \
--header 'countryCode: <string>' \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--data '{
"comment": "<string>",
"commentStatus": "OPEN",
"commentedBy": "<string>",
"saleId": "<string>",
"status": "REJECTED"
}'

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 POST \ 
--url /comments/create \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


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