Add comment api returns 404 Bad request

Add comment api returns 404 Bad request, not able to figure out the error part.

:arrow_forward:Request Headers

Content-Type: application/json

accesstoken: 4657d725211b163408b4793a4e9dac47cb5df305

User-Agent: PostmanRuntime/7.28.4

Accept: /

Cache-Control: no-cache

Postman-Token: 18c6a52a-3e1e-48ea-9505-746357f95239

Host: localhost:8118

Accept-Encoding: gzip, deflate, br

Connection: keep-alive

Content-Length: 120

:arrow_forward:Request Body

{ “ticketId”: “617881dc13efbf1df02a8ad1”, “owner”:“61787ddf13efbf1df02a8ace”, “comment”: “Comment to post” }

:arrow_forward:Response Headers

Access-Control-Allow-Origin: *

Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH, OPTIONS

Access-Control-Allow-Headers: DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,accesstoken,X-RToken,X-Token

Content-Type: application/json; charset=utf-8

Content-Length: 45

ETag: W/“2d-j1DJBWJh1SBnyf9yDBRvvywVbWE”

Date: Tue, 26 Oct 2021 22:36:28 GMT

Connection: keep-alive

Keep-Alive: timeout=5

:arrow_forward:Response Body

{“success”:false,“error”:“Invalid Post Data”}

I think it’s a typo in the docs. Should be ownerId for owner and _id for ticket Id (if this is APIv1)

can give me sample of payload for adding comments

{
“ticketId”: {"_id": “62ab08ef028cb0537d8e52d9”},
“ownerId”: {"_id":“62aab84ba5124eda575f68de”},
“comment”:"Comment to postComment to postComment to postComment to post "
}

api return
{
“success”: false,
“error”: “Invalid Post Data”
}

You don’t need to send the ID as an object. just send the ID as a string.