Skip to content

Sirportly uploading attachment  #3

@arunmv

Description

@arunmv

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

@upload = ticket.add_attachment(:ticket =>"FZ-387470", :update =>"8190628", :file =>"home/abc.jpg") ,

 these are params which we are passing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions