I am trying to send attachment to a ticket using the API making sure it is sent multipart/form-data however I am not able to do so.The API docs doesn't show an example for syntax it should be sent with so I can't figure it how to do so. How data is sent:
Input::all();
$json = json_encode(
array(
"helpdesk_note" => array(
"body" => Input::get('reply'),
"user_id" => $requester_id,
"private" => true,
"attachments" => array(
Input::get('photo')
)
)
)
);
$this->curlWrap("tickets/".$ticket_id."/conversations/note.json", $json, "POST");