You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We successfully executed the curl command which is provided in api.
in ticket.rb
# Allows you to upload attachments to existing ticket updates. Accepts a hash of parameters needed to create the attachment.
def add_attachment(params = {})
if req = client.request('tickets/add_attachment', format_params(params))
true
else
false
end
end
@upload = ticket.add_attachment(:ticket =>"FZ-387470", :update =>"8190628", :file =>"home/abc.jpg") ,
these are params which we are passing.
The text was updated successfully, but these errors were encountered:
We are using sirportly version 1.2.7
While calling sirportly api,
http://sirportly.com/docs/api-specification/tickets/uploading-attachments
we are getting a 400 bad request error.
We successfully executed the curl command which is provided in api.
in ticket.rb
# Allows you to upload attachments to existing ticket updates. Accepts a hash of parameters needed to create the attachment.
def add_attachment(params = {})
if req = client.request('tickets/add_attachment', format_params(params))
true
else
false
end
end
The text was updated successfully, but these errors were encountered: