how to create internal notes

Answered

6 Comments

  • Ahmed Zaid

    Hi Anggara,

    You should add a "public": false attribute to the ticket payload:

    POST /api/v2/tickets
    {
    "ticket": {
    "comment": {
    "body": "The smoke is very colorful.",
    "public": false
    },
    "subject": "My printer is on fire!"

    }
    }
    0
  • Serge BERTAINA DUBOIS

    Hi Anggara

    Use Update Ticket Api :

    https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/#update-ticket

    And Json : 

    {"ticket": { "comment": { "body": "Internal comment \n Next Line comment", "public": false }}}

    Or  :

    {"ticket": { "comment": { "html_body": "Internal comment <BR> Next line comment", "public": false }}}

     

    "public" : false  do it.

     

     

    Serge.

    0
  • Anggara

    Thx All. 
    I already use public : false.
    But it still display as Public Reply like above.

    This is my request : 


    {
        "ticket": {
            "subject": "[tes] Cancel Order",
            
            "comment": {
                "body": "tes aja ini lagi",
                 "public": false
                
            },
            "custom_fields": [
                {
                    "id": 360027861593,
                    "value": "tes"
                },
                {
                    "id": 360027811414,
                    "value": "seller"
                },
                {
                    "id": 360027866734,
                    "value": "AWB Number"
                },
                {
                    "id": 360027852353,
                    "value": "request_cancel_order"
                }

            ]
        }
    }

    0
  • Ahmed Zaid

    Hi Anggara,

    The screenshot actually shows a private reply (Highlighted in yellowish).

    0
  • Anggara

    Sorry I mean how to make it as internal notes : 

    Thanks.

    0
  • Ahmed Zaid

    Hi Anggara

    I am a bit confused. Did you mean you want to convert an already published comment from public to internal?

    0

Please sign in to leave a comment.

Powered by Zendesk