Description

Add a reply or internal notes on the tickets.

URL

v3/api/thread/reply/{ticketId}

Parameters

 

Name Data Type Required / Optional Description
content String Required The body of your reply
is_internal_note boolean Optional 1 if you want to add a response as an internal note else it will be added as a reply
attachment[] Array Optional Media attachment array containing file objects
to[] Array Optional an array containing integer ids of users to whom reply will be sent
cc[] Array Optional an array containing strings of valid email addresses. Pass an empty array to  remove all existing collaborators from the ticket

Note: Only the Requester of the ticket and agents/admins can remove collaborators from the tickets. Other collaborators and organization members can only add collaborators on the ticket but can not remove them.

Example request

curl -X POST -H "Authorization: Bearer {token}" -i -F ticket_id=1 -F is_internal_note=1 -F "content=This is a reply" -F "attachment[]=@/Users/mverma16/Desktop/test.js" www.faveo.pro/v3/api/thread/reply

API Response

Example success response

{
    "success": true,
    "message": "Successfully replied",
    "data": {
        "ticket_id": 1,
        "body": "testing requester",
        "updated_at": "2020-05-18 07:43:16",
        "created_at": "2020-05-18 07:43:16"
    }
}

 

Example error response

If the user tries to reply on any arbitrary ticket or a requester tries to add an internal note on the ticket.
{"success": false,"message": "You are not authorized to reply on the ticket."}

 

 

 

Leave a Reply

Your email address will not be published.