Skip to main content

Hey Guys!


I have been trying to implement API calls to create tickets instead of emails and I would like to have the ability to add a tag during the creation of the ticket.

However, I just can't seem to get it to work.


This is my ticket payload.


$ticket_payload = array(

        "email" => $email,

        "subject" => $subject,

        "description" => $body,

        "priority" => 1,

        "status" => 2,

        "tags" => array("A Block")

    );


I have also attempted - without success:

 "tags" => "A Block"

 "tags" => k"A Block"]


The response I get back is 400.


When I remove the "tags" attribute, it will create the ticket for me.


Anyone have any ideas?