Attach files via API Follow

Overview

You can attach files to tickets using our API. For example, attach a photo to a ticket. 

Conditions

When a file is attached to a ticket, its visibility becomes restricted to only users with access to the ticket. Until the attachment is associated with a ticket, any authenticated user can view an attachment using its content_URL. Tokens expire after three days.

Procedure

1. Use our Uploading files API, which returns a token.

2. Include the token in a ticket comment while creating or updating a ticket.

Example:

{
  "ticket": {
    "comment":  { "body": "See screenshot.", "uploads":  ["vz7ll9ud8oofowy"] }
  }
}
Have more questions? Submit a request

Comments

Please sign in to leave a comment.

Powered by Zendesk