rt (version 1.0.1)

rt_ticket_attachment: Get a ticket's attachment

Description

Retrieves attachment metadata. To get the attachment itself, see rt_ticket_attachment_content.

Usage

rt_ticket_attachment(ticket_id, attachment_id, ...)

Arguments

ticket_id

(numeric) The ticket identifier

attachment_id

(numeric) The attachment identifier

...

Other arguments passed to rt_GET

Value

(rt_api) An rt_api object with the response

Examples

Run this code
# NOT RUN {
# Before running rt_ticket_attachment, you'll probably want to get a list of
# the attachments for a given ticket, like:
attachments <- rt_ticket_attachments(1) # Ticket ID 1

# And then you can get information about a specific attachment:
rt_ticket_attachment(1, 3) # Attachment 3 on ticket 1
# }

Run the code above in your browser using DataCamp Workspace